ra6m2/
etherc0.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - ETHERC Mode Register"]
5    pub ecmr: ECMR,
6    _reserved1: [u8; 0x04],
7    #[doc = "0x08 - Receive Frame Maximum Length Register"]
8    pub rflr: RFLR,
9    _reserved2: [u8; 0x04],
10    #[doc = "0x10 - ETHERC Status Register"]
11    pub ecsr: ECSR,
12    _reserved3: [u8; 0x04],
13    #[doc = "0x18 - ETHERC Interrupt Enable Register"]
14    pub ecsipr: ECSIPR,
15    _reserved4: [u8; 0x04],
16    #[doc = "0x20 - PHY Interface Register"]
17    pub pir: PIR,
18    _reserved5: [u8; 0x04],
19    #[doc = "0x28 - PHY Status Register"]
20    pub psr: PSR,
21    _reserved6: [u8; 0x14],
22    #[doc = "0x40 - Random Number Generation Counter Upper Limit Setting Register"]
23    pub rdmlr: RDMLR,
24    _reserved7: [u8; 0x0c],
25    #[doc = "0x50 - IPG Register"]
26    pub ipgr: IPGR,
27    #[doc = "0x54 - Automatic PAUSE Frame Register"]
28    pub apr: APR,
29    #[doc = "0x58 - Manual PAUSE Frame Register"]
30    pub mpr: MPR,
31    _reserved10: [u8; 0x04],
32    #[doc = "0x60 - Received PAUSE Frame Counter"]
33    pub rfcf: RFCF,
34    #[doc = "0x64 - PAUSE Frame Retransmit Count Setting Register"]
35    pub tpauser: TPAUSER,
36    #[doc = "0x68 - PAUSE Frame Retransmit Counter"]
37    pub tpausecr: TPAUSECR,
38    #[doc = "0x6c - Broadcast Frame Receive Count Setting Register"]
39    pub bcfrr: BCFRR,
40    _reserved14: [u8; 0x50],
41    #[doc = "0xc0 - MAC Address Upper Bit Register"]
42    pub mahr: MAHR,
43    _reserved15: [u8; 0x04],
44    #[doc = "0xc8 - MAC Address Lower Bit Register"]
45    pub malr: MALR,
46    _reserved16: [u8; 0x04],
47    #[doc = "0xd0 - Transmit Retry Over Counter Register"]
48    pub trocr: TROCR,
49    #[doc = "0xd4 - Late Collision Detect Counter Register"]
50    pub cdcr: CDCR,
51    #[doc = "0xd8 - Lost Carrier Counter Register"]
52    pub lccr: LCCR,
53    #[doc = "0xdc - Carrier Not Detect Counter Register"]
54    pub cndcr: CNDCR,
55    _reserved20: [u8; 0x04],
56    #[doc = "0xe4 - CRC Error Frame Receive Counter Register"]
57    pub cefcr: CEFCR,
58    #[doc = "0xe8 - Frame Receive Error Counter Register"]
59    pub frecr: FRECR,
60    #[doc = "0xec - Too-Short Frame Receive Counter Register"]
61    pub tsfrcr: TSFRCR,
62    #[doc = "0xf0 - Too-Long Frame Receive Counter Register"]
63    pub tlfrcr: TLFRCR,
64    #[doc = "0xf4 - Received Alignment Error Frame Counter Register"]
65    pub rfcr: RFCR,
66    #[doc = "0xf8 - Multicast Address Frame Receive Counter Register"]
67    pub mafcr: MAFCR,
68}
69#[doc = "ECMR (rw) register accessor: an alias for `Reg<ECMR_SPEC>`"]
70pub type ECMR = crate::Reg<ecmr::ECMR_SPEC>;
71#[doc = "ETHERC Mode Register"]
72pub mod ecmr;
73#[doc = "RFLR (rw) register accessor: an alias for `Reg<RFLR_SPEC>`"]
74pub type RFLR = crate::Reg<rflr::RFLR_SPEC>;
75#[doc = "Receive Frame Maximum Length Register"]
76pub mod rflr;
77#[doc = "ECSR (rw) register accessor: an alias for `Reg<ECSR_SPEC>`"]
78pub type ECSR = crate::Reg<ecsr::ECSR_SPEC>;
79#[doc = "ETHERC Status Register"]
80pub mod ecsr;
81#[doc = "ECSIPR (rw) register accessor: an alias for `Reg<ECSIPR_SPEC>`"]
82pub type ECSIPR = crate::Reg<ecsipr::ECSIPR_SPEC>;
83#[doc = "ETHERC Interrupt Enable Register"]
84pub mod ecsipr;
85#[doc = "PIR (rw) register accessor: an alias for `Reg<PIR_SPEC>`"]
86pub type PIR = crate::Reg<pir::PIR_SPEC>;
87#[doc = "PHY Interface Register"]
88pub mod pir;
89#[doc = "PSR (r) register accessor: an alias for `Reg<PSR_SPEC>`"]
90pub type PSR = crate::Reg<psr::PSR_SPEC>;
91#[doc = "PHY Status Register"]
92pub mod psr;
93#[doc = "RDMLR (rw) register accessor: an alias for `Reg<RDMLR_SPEC>`"]
94pub type RDMLR = crate::Reg<rdmlr::RDMLR_SPEC>;
95#[doc = "Random Number Generation Counter Upper Limit Setting Register"]
96pub mod rdmlr;
97#[doc = "IPGR (rw) register accessor: an alias for `Reg<IPGR_SPEC>`"]
98pub type IPGR = crate::Reg<ipgr::IPGR_SPEC>;
99#[doc = "IPG Register"]
100pub mod ipgr;
101#[doc = "APR (rw) register accessor: an alias for `Reg<APR_SPEC>`"]
102pub type APR = crate::Reg<apr::APR_SPEC>;
103#[doc = "Automatic PAUSE Frame Register"]
104pub mod apr;
105#[doc = "MPR (w) register accessor: an alias for `Reg<MPR_SPEC>`"]
106pub type MPR = crate::Reg<mpr::MPR_SPEC>;
107#[doc = "Manual PAUSE Frame Register"]
108pub mod mpr;
109#[doc = "RFCF (r) register accessor: an alias for `Reg<RFCF_SPEC>`"]
110pub type RFCF = crate::Reg<rfcf::RFCF_SPEC>;
111#[doc = "Received PAUSE Frame Counter"]
112pub mod rfcf;
113#[doc = "TPAUSER (rw) register accessor: an alias for `Reg<TPAUSER_SPEC>`"]
114pub type TPAUSER = crate::Reg<tpauser::TPAUSER_SPEC>;
115#[doc = "PAUSE Frame Retransmit Count Setting Register"]
116pub mod tpauser;
117#[doc = "TPAUSECR (r) register accessor: an alias for `Reg<TPAUSECR_SPEC>`"]
118pub type TPAUSECR = crate::Reg<tpausecr::TPAUSECR_SPEC>;
119#[doc = "PAUSE Frame Retransmit Counter"]
120pub mod tpausecr;
121#[doc = "BCFRR (rw) register accessor: an alias for `Reg<BCFRR_SPEC>`"]
122pub type BCFRR = crate::Reg<bcfrr::BCFRR_SPEC>;
123#[doc = "Broadcast Frame Receive Count Setting Register"]
124pub mod bcfrr;
125#[doc = "MAHR (rw) register accessor: an alias for `Reg<MAHR_SPEC>`"]
126pub type MAHR = crate::Reg<mahr::MAHR_SPEC>;
127#[doc = "MAC Address Upper Bit Register"]
128pub mod mahr;
129#[doc = "MALR (rw) register accessor: an alias for `Reg<MALR_SPEC>`"]
130pub type MALR = crate::Reg<malr::MALR_SPEC>;
131#[doc = "MAC Address Lower Bit Register"]
132pub mod malr;
133#[doc = "TROCR (rw) register accessor: an alias for `Reg<TROCR_SPEC>`"]
134pub type TROCR = crate::Reg<trocr::TROCR_SPEC>;
135#[doc = "Transmit Retry Over Counter Register"]
136pub mod trocr;
137#[doc = "CDCR (rw) register accessor: an alias for `Reg<CDCR_SPEC>`"]
138pub type CDCR = crate::Reg<cdcr::CDCR_SPEC>;
139#[doc = "Late Collision Detect Counter Register"]
140pub mod cdcr;
141#[doc = "LCCR (rw) register accessor: an alias for `Reg<LCCR_SPEC>`"]
142pub type LCCR = crate::Reg<lccr::LCCR_SPEC>;
143#[doc = "Lost Carrier Counter Register"]
144pub mod lccr;
145#[doc = "CNDCR (rw) register accessor: an alias for `Reg<CNDCR_SPEC>`"]
146pub type CNDCR = crate::Reg<cndcr::CNDCR_SPEC>;
147#[doc = "Carrier Not Detect Counter Register"]
148pub mod cndcr;
149#[doc = "CEFCR (rw) register accessor: an alias for `Reg<CEFCR_SPEC>`"]
150pub type CEFCR = crate::Reg<cefcr::CEFCR_SPEC>;
151#[doc = "CRC Error Frame Receive Counter Register"]
152pub mod cefcr;
153#[doc = "FRECR (rw) register accessor: an alias for `Reg<FRECR_SPEC>`"]
154pub type FRECR = crate::Reg<frecr::FRECR_SPEC>;
155#[doc = "Frame Receive Error Counter Register"]
156pub mod frecr;
157#[doc = "TSFRCR (rw) register accessor: an alias for `Reg<TSFRCR_SPEC>`"]
158pub type TSFRCR = crate::Reg<tsfrcr::TSFRCR_SPEC>;
159#[doc = "Too-Short Frame Receive Counter Register"]
160pub mod tsfrcr;
161#[doc = "TLFRCR (rw) register accessor: an alias for `Reg<TLFRCR_SPEC>`"]
162pub type TLFRCR = crate::Reg<tlfrcr::TLFRCR_SPEC>;
163#[doc = "Too-Long Frame Receive Counter Register"]
164pub mod tlfrcr;
165#[doc = "RFCR (rw) register accessor: an alias for `Reg<RFCR_SPEC>`"]
166pub type RFCR = crate::Reg<rfcr::RFCR_SPEC>;
167#[doc = "Received Alignment Error Frame Counter Register"]
168pub mod rfcr;
169#[doc = "MAFCR (rw) register accessor: an alias for `Reg<MAFCR_SPEC>`"]
170pub type MAFCR = crate::Reg<mafcr::MAFCR_SPEC>;
171#[doc = "Multicast Address Frame Receive Counter Register"]
172pub mod mafcr;