s32k142w_pac/
can1.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Module Configuration register"]
5    pub mcr: crate::Reg<mcr::MCR_SPEC>,
6    #[doc = "0x04 - Control 1 register"]
7    pub ctrl1: crate::Reg<ctrl1::CTRL1_SPEC>,
8    #[doc = "0x08 - Free Running Timer"]
9    pub timer: crate::Reg<timer::TIMER_SPEC>,
10    _reserved3: [u8; 0x04],
11    #[doc = "0x10 - Rx Mailboxes Global Mask register"]
12    pub rxmgmask: crate::Reg<rxmgmask::RXMGMASK_SPEC>,
13    #[doc = "0x14 - Rx 14 Mask register"]
14    pub rx14mask: crate::Reg<rx14mask::RX14MASK_SPEC>,
15    #[doc = "0x18 - Rx 15 Mask register"]
16    pub rx15mask: crate::Reg<rx15mask::RX15MASK_SPEC>,
17    #[doc = "0x1c - Error Counter"]
18    pub ecr: crate::Reg<ecr::ECR_SPEC>,
19    #[doc = "0x20 - Error and Status 1 register"]
20    pub esr1: crate::Reg<esr1::ESR1_SPEC>,
21    #[doc = "0x24 - Interrupt Masks 2 register"]
22    pub imask2: crate::Reg<imask2::IMASK2_SPEC>,
23    #[doc = "0x28 - Interrupt Masks 1 register"]
24    pub imask1: crate::Reg<imask1::IMASK1_SPEC>,
25    #[doc = "0x2c - Interrupt Flags 2 register"]
26    pub iflag2: crate::Reg<iflag2::IFLAG2_SPEC>,
27    #[doc = "0x30 - Interrupt Flags 1 register"]
28    pub iflag1: crate::Reg<iflag1::IFLAG1_SPEC>,
29    #[doc = "0x34 - Control 2 register"]
30    pub ctrl2: crate::Reg<ctrl2::CTRL2_SPEC>,
31    #[doc = "0x38 - Error and Status 2 register"]
32    pub esr2: crate::Reg<esr2::ESR2_SPEC>,
33    _reserved14: [u8; 0x08],
34    #[doc = "0x44 - CRC register"]
35    pub crcr: crate::Reg<crcr::CRCR_SPEC>,
36    #[doc = "0x48 - Rx FIFO Global Mask register"]
37    pub rxfgmask: crate::Reg<rxfgmask::RXFGMASK_SPEC>,
38    #[doc = "0x4c - Rx FIFO Information register"]
39    pub rxfir: crate::Reg<rxfir::RXFIR_SPEC>,
40    #[doc = "0x50 - CAN Bit Timing register"]
41    pub cbt: crate::Reg<cbt::CBT_SPEC>,
42    _reserved18: [u8; 0x2c],
43    #[doc = "0x80..0x480 - Embedded RAM"]
44    pub ramn: [crate::Reg<ramn::RAMN_SPEC>; 256],
45    _reserved19: [u8; 0x0400],
46    #[doc = "0x880..0x980 - Rx Individual Mask registers"]
47    pub rximr: [crate::Reg<rximr::RXIMR_SPEC>; 64],
48    _reserved20: [u8; 0x0280],
49    #[doc = "0xc00 - CAN FD Control register"]
50    pub fdctrl: crate::Reg<fdctrl::FDCTRL_SPEC>,
51    #[doc = "0xc04 - CAN FD Bit Timing register"]
52    pub fdcbt: crate::Reg<fdcbt::FDCBT_SPEC>,
53    #[doc = "0xc08 - CAN FD CRC register"]
54    pub fdcrc: crate::Reg<fdcrc::FDCRC_SPEC>,
55}
56#[doc = "MCR register accessor: an alias for `Reg<MCR_SPEC>`"]
57pub type MCR = crate::Reg<mcr::MCR_SPEC>;
58#[doc = "Module Configuration register"]
59pub mod mcr;
60#[doc = "CTRL1 register accessor: an alias for `Reg<CTRL1_SPEC>`"]
61pub type CTRL1 = crate::Reg<ctrl1::CTRL1_SPEC>;
62#[doc = "Control 1 register"]
63pub mod ctrl1;
64#[doc = "TIMER register accessor: an alias for `Reg<TIMER_SPEC>`"]
65pub type TIMER = crate::Reg<timer::TIMER_SPEC>;
66#[doc = "Free Running Timer"]
67pub mod timer;
68#[doc = "RXMGMASK register accessor: an alias for `Reg<RXMGMASK_SPEC>`"]
69pub type RXMGMASK = crate::Reg<rxmgmask::RXMGMASK_SPEC>;
70#[doc = "Rx Mailboxes Global Mask register"]
71pub mod rxmgmask;
72#[doc = "RX14MASK register accessor: an alias for `Reg<RX14MASK_SPEC>`"]
73pub type RX14MASK = crate::Reg<rx14mask::RX14MASK_SPEC>;
74#[doc = "Rx 14 Mask register"]
75pub mod rx14mask;
76#[doc = "RX15MASK register accessor: an alias for `Reg<RX15MASK_SPEC>`"]
77pub type RX15MASK = crate::Reg<rx15mask::RX15MASK_SPEC>;
78#[doc = "Rx 15 Mask register"]
79pub mod rx15mask;
80#[doc = "ECR register accessor: an alias for `Reg<ECR_SPEC>`"]
81pub type ECR = crate::Reg<ecr::ECR_SPEC>;
82#[doc = "Error Counter"]
83pub mod ecr;
84#[doc = "ESR1 register accessor: an alias for `Reg<ESR1_SPEC>`"]
85pub type ESR1 = crate::Reg<esr1::ESR1_SPEC>;
86#[doc = "Error and Status 1 register"]
87pub mod esr1;
88#[doc = "IMASK2 register accessor: an alias for `Reg<IMASK2_SPEC>`"]
89pub type IMASK2 = crate::Reg<imask2::IMASK2_SPEC>;
90#[doc = "Interrupt Masks 2 register"]
91pub mod imask2;
92#[doc = "IMASK1 register accessor: an alias for `Reg<IMASK1_SPEC>`"]
93pub type IMASK1 = crate::Reg<imask1::IMASK1_SPEC>;
94#[doc = "Interrupt Masks 1 register"]
95pub mod imask1;
96#[doc = "IFLAG2 register accessor: an alias for `Reg<IFLAG2_SPEC>`"]
97pub type IFLAG2 = crate::Reg<iflag2::IFLAG2_SPEC>;
98#[doc = "Interrupt Flags 2 register"]
99pub mod iflag2;
100#[doc = "IFLAG1 register accessor: an alias for `Reg<IFLAG1_SPEC>`"]
101pub type IFLAG1 = crate::Reg<iflag1::IFLAG1_SPEC>;
102#[doc = "Interrupt Flags 1 register"]
103pub mod iflag1;
104#[doc = "CTRL2 register accessor: an alias for `Reg<CTRL2_SPEC>`"]
105pub type CTRL2 = crate::Reg<ctrl2::CTRL2_SPEC>;
106#[doc = "Control 2 register"]
107pub mod ctrl2;
108#[doc = "ESR2 register accessor: an alias for `Reg<ESR2_SPEC>`"]
109pub type ESR2 = crate::Reg<esr2::ESR2_SPEC>;
110#[doc = "Error and Status 2 register"]
111pub mod esr2;
112#[doc = "CRCR register accessor: an alias for `Reg<CRCR_SPEC>`"]
113pub type CRCR = crate::Reg<crcr::CRCR_SPEC>;
114#[doc = "CRC register"]
115pub mod crcr;
116#[doc = "RXFGMASK register accessor: an alias for `Reg<RXFGMASK_SPEC>`"]
117pub type RXFGMASK = crate::Reg<rxfgmask::RXFGMASK_SPEC>;
118#[doc = "Rx FIFO Global Mask register"]
119pub mod rxfgmask;
120#[doc = "RXFIR register accessor: an alias for `Reg<RXFIR_SPEC>`"]
121pub type RXFIR = crate::Reg<rxfir::RXFIR_SPEC>;
122#[doc = "Rx FIFO Information register"]
123pub mod rxfir;
124#[doc = "CBT register accessor: an alias for `Reg<CBT_SPEC>`"]
125pub type CBT = crate::Reg<cbt::CBT_SPEC>;
126#[doc = "CAN Bit Timing register"]
127pub mod cbt;
128#[doc = "RAMn register accessor: an alias for `Reg<RAMN_SPEC>`"]
129pub type RAMN = crate::Reg<ramn::RAMN_SPEC>;
130#[doc = "Embedded RAM"]
131pub mod ramn;
132#[doc = "RXIMR register accessor: an alias for `Reg<RXIMR_SPEC>`"]
133pub type RXIMR = crate::Reg<rximr::RXIMR_SPEC>;
134#[doc = "Rx Individual Mask registers"]
135pub mod rximr;
136#[doc = "FDCTRL register accessor: an alias for `Reg<FDCTRL_SPEC>`"]
137pub type FDCTRL = crate::Reg<fdctrl::FDCTRL_SPEC>;
138#[doc = "CAN FD Control register"]
139pub mod fdctrl;
140#[doc = "FDCBT register accessor: an alias for `Reg<FDCBT_SPEC>`"]
141pub type FDCBT = crate::Reg<fdcbt::FDCBT_SPEC>;
142#[doc = "CAN FD Bit Timing register"]
143pub mod fdcbt;
144#[doc = "FDCRC register accessor: an alias for `Reg<FDCRC_SPEC>`"]
145pub type FDCRC = crate::Reg<fdcrc::FDCRC_SPEC>;
146#[doc = "CAN FD CRC register"]
147pub mod fdcrc;