avr_device/devices/atmega32u4/
cpu.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - General Purpose IO Register 0"]
5    pub gpior0: GPIOR0,
6    _reserved1: [u8; 0x0b],
7    #[doc = "0x0c - General Purpose IO Register 1"]
8    pub gpior1: GPIOR1,
9    #[doc = "0x0d - General Purpose IO Register 2"]
10    pub gpior2: GPIOR2,
11    _reserved3: [u8; 0x07],
12    #[doc = "0x15 - Sleep Mode Control Register"]
13    pub smcr: SMCR,
14    #[doc = "0x16 - MCU Status Register"]
15    pub mcusr: MCUSR,
16    #[doc = "0x17 - MCU Control Register"]
17    pub mcucr: MCUCR,
18    _reserved6: [u8; 0x05],
19    #[doc = "0x1d - Extended Z-pointer Register for ELPM/SPM"]
20    pub rampz: RAMPZ,
21    #[doc = "0x1e - Extended Indirect Register"]
22    pub eind: EIND,
23    _reserved8: [u8; 0x04],
24    #[doc = "0x23 - No Description."]
25    pub clkpr: CLKPR,
26    _reserved9: [u8; 0x02],
27    #[doc = "0x26 - Power Reduction Register0"]
28    pub prr0: PRR0,
29    #[doc = "0x27 - Power Reduction Register1"]
30    pub prr1: PRR1,
31    #[doc = "0x28 - Oscillator Calibration Value"]
32    pub osccal: OSCCAL,
33    #[doc = "0x29 - Oscillator Control Register"]
34    pub rcctrl: RCCTRL,
35    _reserved13: [u8; 0x5d],
36    #[doc = "0x87 - No Description."]
37    pub clksel0: CLKSEL0,
38    #[doc = "0x88 - No Description."]
39    pub clksel1: CLKSEL1,
40    #[doc = "0x89 - No Description."]
41    pub clksta: CLKSTA,
42}
43#[doc = "CLKPR (rw) register accessor: an alias for `Reg<CLKPR_SPEC>`"]
44pub type CLKPR = crate::Reg<clkpr::CLKPR_SPEC>;
45#[doc = "No Description."]
46pub mod clkpr;
47#[doc = "CLKSEL0 (rw) register accessor: an alias for `Reg<CLKSEL0_SPEC>`"]
48pub type CLKSEL0 = crate::Reg<clksel0::CLKSEL0_SPEC>;
49#[doc = "No Description."]
50pub mod clksel0;
51#[doc = "CLKSEL1 (rw) register accessor: an alias for `Reg<CLKSEL1_SPEC>`"]
52pub type CLKSEL1 = crate::Reg<clksel1::CLKSEL1_SPEC>;
53#[doc = "No Description."]
54pub mod clksel1;
55#[doc = "CLKSTA (rw) register accessor: an alias for `Reg<CLKSTA_SPEC>`"]
56pub type CLKSTA = crate::Reg<clksta::CLKSTA_SPEC>;
57#[doc = "No Description."]
58pub mod clksta;
59#[doc = "EIND (rw) register accessor: an alias for `Reg<EIND_SPEC>`"]
60pub type EIND = crate::Reg<eind::EIND_SPEC>;
61#[doc = "Extended Indirect Register"]
62pub mod eind;
63#[doc = "GPIOR0 (rw) register accessor: an alias for `Reg<GPIOR0_SPEC>`"]
64pub type GPIOR0 = crate::Reg<gpior0::GPIOR0_SPEC>;
65#[doc = "General Purpose IO Register 0"]
66pub mod gpior0;
67#[doc = "GPIOR1 (rw) register accessor: an alias for `Reg<GPIOR1_SPEC>`"]
68pub type GPIOR1 = crate::Reg<gpior1::GPIOR1_SPEC>;
69#[doc = "General Purpose IO Register 1"]
70pub mod gpior1;
71#[doc = "GPIOR2 (rw) register accessor: an alias for `Reg<GPIOR2_SPEC>`"]
72pub type GPIOR2 = crate::Reg<gpior2::GPIOR2_SPEC>;
73#[doc = "General Purpose IO Register 2"]
74pub mod gpior2;
75#[doc = "MCUCR (rw) register accessor: an alias for `Reg<MCUCR_SPEC>`"]
76pub type MCUCR = crate::Reg<mcucr::MCUCR_SPEC>;
77#[doc = "MCU Control Register"]
78pub mod mcucr;
79#[doc = "MCUSR (rw) register accessor: an alias for `Reg<MCUSR_SPEC>`"]
80pub type MCUSR = crate::Reg<mcusr::MCUSR_SPEC>;
81#[doc = "MCU Status Register"]
82pub mod mcusr;
83#[doc = "OSCCAL (rw) register accessor: an alias for `Reg<OSCCAL_SPEC>`"]
84pub type OSCCAL = crate::Reg<osccal::OSCCAL_SPEC>;
85#[doc = "Oscillator Calibration Value"]
86pub mod osccal;
87#[doc = "PRR0 (rw) register accessor: an alias for `Reg<PRR0_SPEC>`"]
88pub type PRR0 = crate::Reg<prr0::PRR0_SPEC>;
89#[doc = "Power Reduction Register0"]
90pub mod prr0;
91#[doc = "PRR1 (rw) register accessor: an alias for `Reg<PRR1_SPEC>`"]
92pub type PRR1 = crate::Reg<prr1::PRR1_SPEC>;
93#[doc = "Power Reduction Register1"]
94pub mod prr1;
95#[doc = "RAMPZ (rw) register accessor: an alias for `Reg<RAMPZ_SPEC>`"]
96pub type RAMPZ = crate::Reg<rampz::RAMPZ_SPEC>;
97#[doc = "Extended Z-pointer Register for ELPM/SPM"]
98pub mod rampz;
99#[doc = "RCCTRL (rw) register accessor: an alias for `Reg<RCCTRL_SPEC>`"]
100pub type RCCTRL = crate::Reg<rcctrl::RCCTRL_SPEC>;
101#[doc = "Oscillator Control Register"]
102pub mod rcctrl;
103#[doc = "SMCR (rw) register accessor: an alias for `Reg<SMCR_SPEC>`"]
104pub type SMCR = crate::Reg<smcr::SMCR_SPEC>;
105#[doc = "Sleep Mode Control Register"]
106pub mod smcr;