atsaml21e18b/rtc/
mode2.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct MODE2 {
4    #[doc = "0x00 - MODE2 Control A"]
5    pub ctrla: CTRLA,
6    _reserved1: [u8; 0x02],
7    #[doc = "0x04 - MODE2 Event Control"]
8    pub evctrl: EVCTRL,
9    #[doc = "0x08 - MODE2 Interrupt Enable Clear"]
10    pub intenclr: INTENCLR,
11    #[doc = "0x0a - MODE2 Interrupt Enable Set"]
12    pub intenset: INTENSET,
13    #[doc = "0x0c - MODE2 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 - MODE2 Synchronization Busy Status"]
19    pub syncbusy: SYNCBUSY,
20    #[doc = "0x14 - Frequency Correction"]
21    pub freqcorr: FREQCORR,
22    _reserved8: [u8; 0x03],
23    #[doc = "0x18 - MODE2 Clock Value"]
24    pub clock: CLOCK,
25    _reserved9: [u8; 0x04],
26    #[doc = "0x20 - MODE2 Alarm n Value"]
27    pub alarm: [ALARM; 1],
28    #[doc = "0x24 - MODE2 Alarm n Mask"]
29    pub mask: [MASK; 1],
30    _reserved11: [u8; 0x1b],
31    #[doc = "0x40..0x50 - General Purpose"]
32    pub gp: [GP; 4],
33}
34#[doc = "CTRLA (rw) register accessor: an alias for `Reg<CTRLA_SPEC>`"]
35pub type CTRLA = crate::Reg<ctrla::CTRLA_SPEC>;
36#[doc = "MODE2 Control A"]
37pub mod ctrla;
38#[doc = "EVCTRL (rw) register accessor: an alias for `Reg<EVCTRL_SPEC>`"]
39pub type EVCTRL = crate::Reg<evctrl::EVCTRL_SPEC>;
40#[doc = "MODE2 Event Control"]
41pub mod evctrl;
42#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
43pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
44#[doc = "MODE2 Interrupt Enable Clear"]
45pub mod intenclr;
46#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
47pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
48#[doc = "MODE2 Interrupt Enable Set"]
49pub mod intenset;
50#[doc = "INTFLAG (rw) register accessor: an alias for `Reg<INTFLAG_SPEC>`"]
51pub type INTFLAG = crate::Reg<intflag::INTFLAG_SPEC>;
52#[doc = "MODE2 Interrupt Flag Status and Clear"]
53pub mod intflag;
54#[doc = "DBGCTRL (rw) register accessor: an alias for `Reg<DBGCTRL_SPEC>`"]
55pub type DBGCTRL = crate::Reg<dbgctrl::DBGCTRL_SPEC>;
56#[doc = "Debug Control"]
57pub mod dbgctrl;
58#[doc = "SYNCBUSY (r) register accessor: an alias for `Reg<SYNCBUSY_SPEC>`"]
59pub type SYNCBUSY = crate::Reg<syncbusy::SYNCBUSY_SPEC>;
60#[doc = "MODE2 Synchronization Busy Status"]
61pub mod syncbusy;
62#[doc = "FREQCORR (rw) register accessor: an alias for `Reg<FREQCORR_SPEC>`"]
63pub type FREQCORR = crate::Reg<freqcorr::FREQCORR_SPEC>;
64#[doc = "Frequency Correction"]
65pub mod freqcorr;
66#[doc = "CLOCK (rw) register accessor: an alias for `Reg<CLOCK_SPEC>`"]
67pub type CLOCK = crate::Reg<clock::CLOCK_SPEC>;
68#[doc = "MODE2 Clock Value"]
69pub mod clock;
70#[doc = "ALARM (rw) register accessor: an alias for `Reg<ALARM_SPEC>`"]
71pub type ALARM = crate::Reg<alarm::ALARM_SPEC>;
72#[doc = "MODE2 Alarm n Value"]
73pub mod alarm;
74#[doc = "MASK (rw) register accessor: an alias for `Reg<MASK_SPEC>`"]
75pub type MASK = crate::Reg<mask::MASK_SPEC>;
76#[doc = "MODE2 Alarm n Mask"]
77pub mod mask;
78#[doc = "GP (rw) register accessor: an alias for `Reg<GP_SPEC>`"]
79pub type GP = crate::Reg<gp::GP_SPEC>;
80#[doc = "General Purpose"]
81pub mod gp;