atsaml21e18b/rtc/
mode1.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct MODE1 {
4 #[doc = "0x00 - MODE1 Control A"]
5 pub ctrla: CTRLA,
6 _reserved1: [u8; 0x02],
7 #[doc = "0x04 - MODE1 Event Control"]
8 pub evctrl: EVCTRL,
9 #[doc = "0x08 - MODE1 Interrupt Enable Clear"]
10 pub intenclr: INTENCLR,
11 #[doc = "0x0a - MODE1 Interrupt Enable Set"]
12 pub intenset: INTENSET,
13 #[doc = "0x0c - MODE1 Interrupt Flag Status and Clear"]
14 pub intflag: INTFLAG,
15 #[doc = "0x0e - Debug Control"]
16 pub dbgctrl: DBGCTRL,
17 _reserved6: [u8; 0x01],
18 #[doc = "0x10 - MODE1 Synchronization Busy Status"]
19 pub syncbusy: SYNCBUSY,
20 #[doc = "0x14 - Frequency Correction"]
21 pub freqcorr: FREQCORR,
22 _reserved8: [u8; 0x03],
23 #[doc = "0x18 - MODE1 Counter Value"]
24 pub count: COUNT,
25 _reserved9: [u8; 0x02],
26 #[doc = "0x1c - MODE1 Counter Period"]
27 pub per: PER,
28 _reserved10: [u8; 0x02],
29 #[doc = "0x20 - MODE1 Compare n Value"]
30 pub comp: [COMP; 2],
31 _reserved11: [u8; 0x1c],
32 #[doc = "0x40..0x50 - General Purpose"]
33 pub gp: [GP; 4],
34}
35#[doc = "CTRLA (rw) register accessor: an alias for `Reg<CTRLA_SPEC>`"]
36pub type CTRLA = crate::Reg<ctrla::CTRLA_SPEC>;
37#[doc = "MODE1 Control A"]
38pub mod ctrla;
39#[doc = "EVCTRL (rw) register accessor: an alias for `Reg<EVCTRL_SPEC>`"]
40pub type EVCTRL = crate::Reg<evctrl::EVCTRL_SPEC>;
41#[doc = "MODE1 Event Control"]
42pub mod evctrl;
43#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
44pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
45#[doc = "MODE1 Interrupt Enable Clear"]
46pub mod intenclr;
47#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
48pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
49#[doc = "MODE1 Interrupt Enable Set"]
50pub mod intenset;
51#[doc = "INTFLAG (rw) register accessor: an alias for `Reg<INTFLAG_SPEC>`"]
52pub type INTFLAG = crate::Reg<intflag::INTFLAG_SPEC>;
53#[doc = "MODE1 Interrupt Flag Status and Clear"]
54pub mod intflag;
55#[doc = "DBGCTRL (rw) register accessor: an alias for `Reg<DBGCTRL_SPEC>`"]
56pub type DBGCTRL = crate::Reg<dbgctrl::DBGCTRL_SPEC>;
57#[doc = "Debug Control"]
58pub mod dbgctrl;
59#[doc = "SYNCBUSY (r) register accessor: an alias for `Reg<SYNCBUSY_SPEC>`"]
60pub type SYNCBUSY = crate::Reg<syncbusy::SYNCBUSY_SPEC>;
61#[doc = "MODE1 Synchronization Busy Status"]
62pub mod syncbusy;
63#[doc = "FREQCORR (rw) register accessor: an alias for `Reg<FREQCORR_SPEC>`"]
64pub type FREQCORR = crate::Reg<freqcorr::FREQCORR_SPEC>;
65#[doc = "Frequency Correction"]
66pub mod freqcorr;
67#[doc = "COUNT (rw) register accessor: an alias for `Reg<COUNT_SPEC>`"]
68pub type COUNT = crate::Reg<count::COUNT_SPEC>;
69#[doc = "MODE1 Counter Value"]
70pub mod count;
71#[doc = "PER (rw) register accessor: an alias for `Reg<PER_SPEC>`"]
72pub type PER = crate::Reg<per::PER_SPEC>;
73#[doc = "MODE1 Counter Period"]
74pub mod per;
75#[doc = "COMP (rw) register accessor: an alias for `Reg<COMP_SPEC>`"]
76pub type COMP = crate::Reg<comp::COMP_SPEC>;
77#[doc = "MODE1 Compare n Value"]
78pub mod comp;
79#[doc = "GP (rw) register accessor: an alias for `Reg<GP_SPEC>`"]
80pub type GP = crate::Reg<gp::GP_SPEC>;
81#[doc = "General Purpose"]
82pub mod gp;