1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - control register 0"]
5 pub ctl0: CTL0,
6 _reserved1: [u8; 0x02],
7 #[doc = "0x04 - control register 1"]
8 pub ctl1: CTL1,
9 _reserved2: [u8; 0x06],
10 #[doc = "0x0c - DMA/Interrupt enable register"]
11 pub dmainten: DMAINTEN,
12 _reserved3: [u8; 0x02],
13 #[doc = "0x10 - Interrupt flag register"]
14 pub intf: INTF,
15 _reserved4: [u8; 0x02],
16 #[doc = "0x14 - event generation register"]
17 pub swevg: SWEVG,
18 _reserved5: [u8; 0x0e],
19 #[doc = "0x24 - Counter register"]
20 pub cnt: CNT,
21 _reserved6: [u8; 0x02],
22 #[doc = "0x28 - Prescaler register"]
23 pub psc: PSC,
24 _reserved7: [u8; 0x02],
25 #[doc = "0x2c - Counter auto reload register"]
26 pub car: CAR,
27}
28#[doc = "CTL0 (rw) register accessor: an alias for `Reg<CTL0_SPEC>`"]
29pub type CTL0 = crate::Reg<ctl0::CTL0_SPEC>;
30#[doc = "control register 0"]
31pub mod ctl0;
32#[doc = "CTL1 (rw) register accessor: an alias for `Reg<CTL1_SPEC>`"]
33pub type CTL1 = crate::Reg<ctl1::CTL1_SPEC>;
34#[doc = "control register 1"]
35pub mod ctl1;
36#[doc = "DMAINTEN (rw) register accessor: an alias for `Reg<DMAINTEN_SPEC>`"]
37pub type DMAINTEN = crate::Reg<dmainten::DMAINTEN_SPEC>;
38#[doc = "DMA/Interrupt enable register"]
39pub mod dmainten;
40#[doc = "INTF (rw) register accessor: an alias for `Reg<INTF_SPEC>`"]
41pub type INTF = crate::Reg<intf::INTF_SPEC>;
42#[doc = "Interrupt flag register"]
43pub mod intf;
44#[doc = "SWEVG (w) register accessor: an alias for `Reg<SWEVG_SPEC>`"]
45pub type SWEVG = crate::Reg<swevg::SWEVG_SPEC>;
46#[doc = "event generation register"]
47pub mod swevg;
48#[doc = "CNT (rw) register accessor: an alias for `Reg<CNT_SPEC>`"]
49pub type CNT = crate::Reg<cnt::CNT_SPEC>;
50#[doc = "Counter register"]
51pub mod cnt;
52#[doc = "PSC (rw) register accessor: an alias for `Reg<PSC_SPEC>`"]
53pub type PSC = crate::Reg<psc::PSC_SPEC>;
54#[doc = "Prescaler register"]
55pub mod psc;
56#[doc = "CAR (rw) register accessor: an alias for `Reg<CAR_SPEC>`"]
57pub type CAR = crate::Reg<car::CAR_SPEC>;
58#[doc = "Counter auto reload register"]
59pub mod car;