avr_device/devices/atmega328p/
tc2.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Timer/Counter Interrupt Flag Register"]
5 pub tifr2: TIFR2,
6 _reserved1: [u8; 0x0b],
7 #[doc = "0x0c - General Timer Counter Control register"]
8 pub gtccr: GTCCR,
9 _reserved2: [u8; 0x2c],
10 #[doc = "0x39 - Timer/Counter Interrupt Mask register"]
11 pub timsk2: TIMSK2,
12 _reserved3: [u8; 0x3f],
13 #[doc = "0x79 - Timer/Counter2 Control Register A"]
14 pub tccr2a: TCCR2A,
15 #[doc = "0x7a - Timer/Counter2 Control Register B"]
16 pub tccr2b: TCCR2B,
17 #[doc = "0x7b - Timer/Counter2"]
18 pub tcnt2: TCNT2,
19 #[doc = "0x7c - Timer/Counter2 Output Compare Register A"]
20 pub ocr2a: OCR2A,
21 #[doc = "0x7d - Timer/Counter2 Output Compare Register B"]
22 pub ocr2b: OCR2B,
23 _reserved8: [u8; 0x01],
24 #[doc = "0x7f - Asynchronous Status Register"]
25 pub assr: ASSR,
26}
27#[doc = "ASSR (rw) register accessor: an alias for `Reg<ASSR_SPEC>`"]
28pub type ASSR = crate::Reg<assr::ASSR_SPEC>;
29#[doc = "Asynchronous Status Register"]
30pub mod assr;
31#[doc = "GTCCR (rw) register accessor: an alias for `Reg<GTCCR_SPEC>`"]
32pub type GTCCR = crate::Reg<gtccr::GTCCR_SPEC>;
33#[doc = "General Timer Counter Control register"]
34pub mod gtccr;
35#[doc = "OCR2A (rw) register accessor: an alias for `Reg<OCR2A_SPEC>`"]
36pub type OCR2A = crate::Reg<ocr2a::OCR2A_SPEC>;
37#[doc = "Timer/Counter2 Output Compare Register A"]
38pub mod ocr2a;
39#[doc = "OCR2B (rw) register accessor: an alias for `Reg<OCR2B_SPEC>`"]
40pub type OCR2B = crate::Reg<ocr2b::OCR2B_SPEC>;
41#[doc = "Timer/Counter2 Output Compare Register B"]
42pub mod ocr2b;
43#[doc = "TCCR2A (rw) register accessor: an alias for `Reg<TCCR2A_SPEC>`"]
44pub type TCCR2A = crate::Reg<tccr2a::TCCR2A_SPEC>;
45#[doc = "Timer/Counter2 Control Register A"]
46pub mod tccr2a;
47#[doc = "TCCR2B (rw) register accessor: an alias for `Reg<TCCR2B_SPEC>`"]
48pub type TCCR2B = crate::Reg<tccr2b::TCCR2B_SPEC>;
49#[doc = "Timer/Counter2 Control Register B"]
50pub mod tccr2b;
51#[doc = "TCNT2 (rw) register accessor: an alias for `Reg<TCNT2_SPEC>`"]
52pub type TCNT2 = crate::Reg<tcnt2::TCNT2_SPEC>;
53#[doc = "Timer/Counter2"]
54pub mod tcnt2;
55#[doc = "TIFR2 (rw) register accessor: an alias for `Reg<TIFR2_SPEC>`"]
56pub type TIFR2 = crate::Reg<tifr2::TIFR2_SPEC>;
57#[doc = "Timer/Counter Interrupt Flag Register"]
58pub mod tifr2;
59#[doc = "TIMSK2 (rw) register accessor: an alias for `Reg<TIMSK2_SPEC>`"]
60pub type TIMSK2 = crate::Reg<timsk2::TIMSK2_SPEC>;
61#[doc = "Timer/Counter Interrupt Mask register"]
62pub mod timsk2;