avr_device/devices/atmega328p/
cpu.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - General Purpose I/O Register 0"]
5 pub gpior0: GPIOR0,
6 _reserved1: [u8; 0x0b],
7 #[doc = "0x0c - General Purpose I/O Register 1"]
8 pub gpior1: GPIOR1,
9 #[doc = "0x0d - General Purpose I/O 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; 0x01],
19 #[doc = "0x19 - Store Program Memory Control and Status Register"]
20 pub spmcsr: SPMCSR,
21 _reserved7: [u8; 0x09],
22 #[doc = "0x23 - Clock Prescale Register"]
23 pub clkpr: CLKPR,
24 _reserved8: [u8; 0x02],
25 #[doc = "0x26 - Power Reduction Register"]
26 pub prr: PRR,
27 _reserved9: [u8; 0x01],
28 #[doc = "0x28 - Oscillator Calibration Value"]
29 pub osccal: OSCCAL,
30}
31#[doc = "CLKPR (rw) register accessor: an alias for `Reg<CLKPR_SPEC>`"]
32pub type CLKPR = crate::Reg<clkpr::CLKPR_SPEC>;
33#[doc = "Clock Prescale Register"]
34pub mod clkpr;
35#[doc = "GPIOR0 (rw) register accessor: an alias for `Reg<GPIOR0_SPEC>`"]
36pub type GPIOR0 = crate::Reg<gpior0::GPIOR0_SPEC>;
37#[doc = "General Purpose I/O Register 0"]
38pub mod gpior0;
39#[doc = "GPIOR1 (rw) register accessor: an alias for `Reg<GPIOR1_SPEC>`"]
40pub type GPIOR1 = crate::Reg<gpior1::GPIOR1_SPEC>;
41#[doc = "General Purpose I/O Register 1"]
42pub mod gpior1;
43#[doc = "GPIOR2 (rw) register accessor: an alias for `Reg<GPIOR2_SPEC>`"]
44pub type GPIOR2 = crate::Reg<gpior2::GPIOR2_SPEC>;
45#[doc = "General Purpose I/O Register 2"]
46pub mod gpior2;
47#[doc = "MCUCR (rw) register accessor: an alias for `Reg<MCUCR_SPEC>`"]
48pub type MCUCR = crate::Reg<mcucr::MCUCR_SPEC>;
49#[doc = "MCU Control Register"]
50pub mod mcucr;
51#[doc = "MCUSR (rw) register accessor: an alias for `Reg<MCUSR_SPEC>`"]
52pub type MCUSR = crate::Reg<mcusr::MCUSR_SPEC>;
53#[doc = "MCU Status Register"]
54pub mod mcusr;
55#[doc = "OSCCAL (rw) register accessor: an alias for `Reg<OSCCAL_SPEC>`"]
56pub type OSCCAL = crate::Reg<osccal::OSCCAL_SPEC>;
57#[doc = "Oscillator Calibration Value"]
58pub mod osccal;
59#[doc = "PRR (rw) register accessor: an alias for `Reg<PRR_SPEC>`"]
60pub type PRR = crate::Reg<prr::PRR_SPEC>;
61#[doc = "Power Reduction Register"]
62pub mod prr;
63#[doc = "SMCR (rw) register accessor: an alias for `Reg<SMCR_SPEC>`"]
64pub type SMCR = crate::Reg<smcr::SMCR_SPEC>;
65#[doc = "Sleep Mode Control Register"]
66pub mod smcr;
67#[doc = "SPMCSR (rw) register accessor: an alias for `Reg<SPMCSR_SPEC>`"]
68pub type SPMCSR = crate::Reg<spmcsr::SPMCSR_SPEC>;
69#[doc = "Store Program Memory Control and Status Register"]
70pub mod spmcsr;