atsaml21e17b/tc0/
count32.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct COUNT32 {
4    #[doc = "0x00 - Control A"]
5    pub ctrla: CTRLA,
6    #[doc = "0x04 - Control B Clear"]
7    pub ctrlbclr: CTRLBCLR,
8    #[doc = "0x05 - Control B Set"]
9    pub ctrlbset: CTRLBSET,
10    #[doc = "0x06 - Event Control"]
11    pub evctrl: EVCTRL,
12    #[doc = "0x08 - Interrupt Enable Clear"]
13    pub intenclr: INTENCLR,
14    #[doc = "0x09 - Interrupt Enable Set"]
15    pub intenset: INTENSET,
16    #[doc = "0x0a - Interrupt Flag Status and Clear"]
17    pub intflag: INTFLAG,
18    #[doc = "0x0b - Status"]
19    pub status: STATUS,
20    #[doc = "0x0c - Waveform Generation Control"]
21    pub wave: WAVE,
22    #[doc = "0x0d - Control C"]
23    pub drvctrl: DRVCTRL,
24    _reserved10: [u8; 0x01],
25    #[doc = "0x0f - Debug Control"]
26    pub dbgctrl: DBGCTRL,
27    #[doc = "0x10 - Synchronization Status"]
28    pub syncbusy: SYNCBUSY,
29    #[doc = "0x14 - COUNT32 Count"]
30    pub count: COUNT,
31    _reserved13: [u8; 0x04],
32    #[doc = "0x1c..0x24 - COUNT32 Compare and Capture"]
33    pub cc: [CC; 2],
34    _reserved14: [u8; 0x0c],
35    #[doc = "0x30..0x38 - COUNT32 Compare and Capture Buffer"]
36    pub ccbuf: [CCBUF; 2],
37}
38#[doc = "CTRLA (rw) register accessor: an alias for `Reg<CTRLA_SPEC>`"]
39pub type CTRLA = crate::Reg<ctrla::CTRLA_SPEC>;
40#[doc = "Control A"]
41pub mod ctrla;
42#[doc = "CTRLBCLR (rw) register accessor: an alias for `Reg<CTRLBCLR_SPEC>`"]
43pub type CTRLBCLR = crate::Reg<ctrlbclr::CTRLBCLR_SPEC>;
44#[doc = "Control B Clear"]
45pub mod ctrlbclr;
46#[doc = "CTRLBSET (rw) register accessor: an alias for `Reg<CTRLBSET_SPEC>`"]
47pub type CTRLBSET = crate::Reg<ctrlbset::CTRLBSET_SPEC>;
48#[doc = "Control B Set"]
49pub mod ctrlbset;
50#[doc = "EVCTRL (rw) register accessor: an alias for `Reg<EVCTRL_SPEC>`"]
51pub type EVCTRL = crate::Reg<evctrl::EVCTRL_SPEC>;
52#[doc = "Event Control"]
53pub mod evctrl;
54#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
55pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
56#[doc = "Interrupt Enable Clear"]
57pub mod intenclr;
58#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
59pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
60#[doc = "Interrupt Enable Set"]
61pub mod intenset;
62#[doc = "INTFLAG (rw) register accessor: an alias for `Reg<INTFLAG_SPEC>`"]
63pub type INTFLAG = crate::Reg<intflag::INTFLAG_SPEC>;
64#[doc = "Interrupt Flag Status and Clear"]
65pub mod intflag;
66#[doc = "STATUS (rw) register accessor: an alias for `Reg<STATUS_SPEC>`"]
67pub type STATUS = crate::Reg<status::STATUS_SPEC>;
68#[doc = "Status"]
69pub mod status;
70#[doc = "WAVE (rw) register accessor: an alias for `Reg<WAVE_SPEC>`"]
71pub type WAVE = crate::Reg<wave::WAVE_SPEC>;
72#[doc = "Waveform Generation Control"]
73pub mod wave;
74#[doc = "DRVCTRL (rw) register accessor: an alias for `Reg<DRVCTRL_SPEC>`"]
75pub type DRVCTRL = crate::Reg<drvctrl::DRVCTRL_SPEC>;
76#[doc = "Control C"]
77pub mod drvctrl;
78#[doc = "DBGCTRL (rw) register accessor: an alias for `Reg<DBGCTRL_SPEC>`"]
79pub type DBGCTRL = crate::Reg<dbgctrl::DBGCTRL_SPEC>;
80#[doc = "Debug Control"]
81pub mod dbgctrl;
82#[doc = "SYNCBUSY (r) register accessor: an alias for `Reg<SYNCBUSY_SPEC>`"]
83pub type SYNCBUSY = crate::Reg<syncbusy::SYNCBUSY_SPEC>;
84#[doc = "Synchronization Status"]
85pub mod syncbusy;
86#[doc = "COUNT (rw) register accessor: an alias for `Reg<COUNT_SPEC>`"]
87pub type COUNT = crate::Reg<count::COUNT_SPEC>;
88#[doc = "COUNT32 Count"]
89pub mod count;
90#[doc = "CC (rw) register accessor: an alias for `Reg<CC_SPEC>`"]
91pub type CC = crate::Reg<cc::CC_SPEC>;
92#[doc = "COUNT32 Compare and Capture"]
93pub mod cc;
94#[doc = "CCBUF (rw) register accessor: an alias for `Reg<CCBUF_SPEC>`"]
95pub type CCBUF = crate::Reg<ccbuf::CCBUF_SPEC>;
96#[doc = "COUNT32 Compare and Capture Buffer"]
97pub mod ccbuf;