Menu Toggle
v2.3.1 (RP2350)
Toggle main menu visibility
Loading...
Searching...
No Matches
pll.h
1
// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
8
#ifndef _HARDWARE_STRUCTS_PLL_H
9
#define _HARDWARE_STRUCTS_PLL_H
10
14
15
#include "
hardware/address_mapped.h
"
16
#include "hardware/regs/pll.h"
17
18
// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_pll
19
//
20
// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
21
// _REG_(x) will link to the corresponding register in hardware/regs/pll.h.
22
//
23
// Bit-field descriptions are of the form:
24
// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
25
27
typedef
struct
{
28
_REG_(PLL_CS_OFFSET)
// PLL_CS
29
// Control and Status
30
// 0x80000000 [31] LOCK (0) PLL is locked
31
// 0x40000000 [30] LOCK_N (0) PLL is not locked +
32
// 0x00000100 [8] BYPASS (0) Passes the reference clock to the output instead of the...
33
// 0x0000003f [5:0] REFDIV (0x01) Divides the PLL input reference clock
34
io_rw_32 cs;
35
36
_REG_(PLL_PWR_OFFSET)
// PLL_PWR
37
// Controls the PLL power modes
38
// 0x00000020 [5] VCOPD (1) PLL VCO powerdown +
39
// 0x00000008 [3] POSTDIVPD (1) PLL post divider powerdown +
40
// 0x00000004 [2] DSMPD (1) PLL DSM powerdown +
41
// 0x00000001 [0] PD (1) PLL powerdown +
42
io_rw_32 pwr;
43
44
_REG_(PLL_FBDIV_INT_OFFSET)
// PLL_FBDIV_INT
45
// Feedback divisor
46
// 0x00000fff [11:0] FBDIV_INT (0x000) see ctrl reg description for constraints
47
io_rw_32 fbdiv_int;
48
49
_REG_(PLL_PRIM_OFFSET)
// PLL_PRIM
50
// Controls the PLL post dividers for the primary output
51
// 0x00070000 [18:16] POSTDIV1 (0x7) divide by 1-7
52
// 0x00007000 [14:12] POSTDIV2 (0x7) divide by 1-7
53
io_rw_32 prim;
54
55
_REG_(PLL_INTR_OFFSET)
// PLL_INTR
56
// Raw Interrupts
57
// 0x00000001 [0] LOCK_N_STICKY (0)
58
io_rw_32 intr;
59
60
_REG_(PLL_INTE_OFFSET)
// PLL_INTE
61
// Interrupt Enable
62
// 0x00000001 [0] LOCK_N_STICKY (0)
63
io_rw_32 inte;
64
65
_REG_(PLL_INTF_OFFSET)
// PLL_INTF
66
// Interrupt Force
67
// 0x00000001 [0] LOCK_N_STICKY (0)
68
io_rw_32 intf;
69
70
_REG_(PLL_INTS_OFFSET)
// PLL_INTS
71
// Interrupt status after masking & forcing
72
// 0x00000001 [0] LOCK_N_STICKY (0)
73
io_ro_32 ints;
74
}
pll_hw_t
;
75
76
77
#define pll_sys_hw ((pll_hw_t *)PLL_SYS_BASE)
78
#define pll_usb_hw ((pll_hw_t *)PLL_USB_BASE)
79
static_assert
(
sizeof
(
pll_hw_t
) == 0x0020,
""
);
80
81
#endif
// _HARDWARE_STRUCTS_PLL_H
address_mapped.h
pll_hw_t
Definition
pll.h:27