swm341_pac/
can0.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - CR register"]
5    pub cr: CR,
6    #[doc = "0x04 - CMD register"]
7    pub cmd: CMD,
8    #[doc = "0x08 - SR register"]
9    pub sr: SR,
10    #[doc = "0x0c - IF register"]
11    pub if_: IF,
12    #[doc = "0x10 - IE register"]
13    pub ie: IE,
14    #[doc = "0x14 - BT2 register"]
15    pub bt2: BT2,
16    #[doc = "0x18 - BT0 register"]
17    pub bt0: BT0,
18    #[doc = "0x1c - BT1 register"]
19    pub bt1: BT1,
20    _reserved8: [u8; 0x04],
21    #[doc = "0x24 - AFM register"]
22    pub afm: AFM,
23    #[doc = "0x28 - AFE register"]
24    pub afe: AFE,
25    #[doc = "0x2c - ALC register"]
26    pub alc: ALC,
27    #[doc = "0x30 - ECC register"]
28    pub ecc: ECC,
29    #[doc = "0x34 - EWLIM register"]
30    pub ewlim: EWLIM,
31    #[doc = "0x38 - RXERR register"]
32    pub rxerr: RXERR,
33    #[doc = "0x3c - TXERR register"]
34    pub txerr: TXERR,
35    #[doc = "0x40..0x74 - register cluster"]
36    pub frame: FRAME,
37    #[doc = "0x74 - RMCNT register"]
38    pub rmcnt: RMCNT,
39    _reserved17: [u8; 0x0288],
40    #[doc = "0x300..0x340 - ACR register"]
41    pub acr: [ACR; 16],
42    _reserved18: [u8; 0x40],
43    #[doc = "0x380..0x3c0 - AMR register"]
44    pub amr: [AMR; 16],
45}
46#[doc = "CR (rw) register accessor: an alias for `Reg<CR_SPEC>`"]
47pub type CR = crate::Reg<cr::CR_SPEC>;
48#[doc = "CR register"]
49pub mod cr;
50#[doc = "CMD (w) register accessor: an alias for `Reg<CMD_SPEC>`"]
51pub type CMD = crate::Reg<cmd::CMD_SPEC>;
52#[doc = "CMD register"]
53pub mod cmd;
54#[doc = "SR (r) register accessor: an alias for `Reg<SR_SPEC>`"]
55pub type SR = crate::Reg<sr::SR_SPEC>;
56#[doc = "SR register"]
57pub mod sr;
58#[doc = "IF (rw) register accessor: an alias for `Reg<IF_SPEC>`"]
59pub type IF = crate::Reg<if_::IF_SPEC>;
60#[doc = "IF register"]
61pub mod if_;
62#[doc = "IE (rw) register accessor: an alias for `Reg<IE_SPEC>`"]
63pub type IE = crate::Reg<ie::IE_SPEC>;
64#[doc = "IE register"]
65pub mod ie;
66#[doc = "BT2 (rw) register accessor: an alias for `Reg<BT2_SPEC>`"]
67pub type BT2 = crate::Reg<bt2::BT2_SPEC>;
68#[doc = "BT2 register"]
69pub mod bt2;
70#[doc = "BT0 (rw) register accessor: an alias for `Reg<BT0_SPEC>`"]
71pub type BT0 = crate::Reg<bt0::BT0_SPEC>;
72#[doc = "BT0 register"]
73pub mod bt0;
74#[doc = "BT1 (rw) register accessor: an alias for `Reg<BT1_SPEC>`"]
75pub type BT1 = crate::Reg<bt1::BT1_SPEC>;
76#[doc = "BT1 register"]
77pub mod bt1;
78#[doc = "AFM (rw) register accessor: an alias for `Reg<AFM_SPEC>`"]
79pub type AFM = crate::Reg<afm::AFM_SPEC>;
80#[doc = "AFM register"]
81pub mod afm;
82#[doc = "AFE (rw) register accessor: an alias for `Reg<AFE_SPEC>`"]
83pub type AFE = crate::Reg<afe::AFE_SPEC>;
84#[doc = "AFE register"]
85pub mod afe;
86#[doc = "ALC (r) register accessor: an alias for `Reg<ALC_SPEC>`"]
87pub type ALC = crate::Reg<alc::ALC_SPEC>;
88#[doc = "ALC register"]
89pub mod alc;
90#[doc = "ECC (r) register accessor: an alias for `Reg<ECC_SPEC>`"]
91pub type ECC = crate::Reg<ecc::ECC_SPEC>;
92#[doc = "ECC register"]
93pub mod ecc;
94#[doc = "EWLIM (rw) register accessor: an alias for `Reg<EWLIM_SPEC>`"]
95pub type EWLIM = crate::Reg<ewlim::EWLIM_SPEC>;
96#[doc = "EWLIM register"]
97pub mod ewlim;
98#[doc = "RXERR (rw) register accessor: an alias for `Reg<RXERR_SPEC>`"]
99pub type RXERR = crate::Reg<rxerr::RXERR_SPEC>;
100#[doc = "RXERR register"]
101pub mod rxerr;
102#[doc = "TXERR (rw) register accessor: an alias for `Reg<TXERR_SPEC>`"]
103pub type TXERR = crate::Reg<txerr::TXERR_SPEC>;
104#[doc = "TXERR register"]
105pub mod txerr;
106#[doc = "register cluster"]
107pub use frame::FRAME;
108#[doc = r"Cluster"]
109#[doc = "register cluster"]
110pub mod frame;
111#[doc = "RMCNT (r) register accessor: an alias for `Reg<RMCNT_SPEC>`"]
112pub type RMCNT = crate::Reg<rmcnt::RMCNT_SPEC>;
113#[doc = "RMCNT register"]
114pub mod rmcnt;
115#[doc = "ACR (rw) register accessor: an alias for `Reg<ACR_SPEC>`"]
116pub type ACR = crate::Reg<acr::ACR_SPEC>;
117#[doc = "ACR register"]
118pub mod acr;
119#[doc = "AMR (rw) register accessor: an alias for `Reg<AMR_SPEC>`"]
120pub type AMR = crate::Reg<amr::AMR_SPEC>;
121#[doc = "AMR register"]
122pub mod amr;