#[repr(C)]pub struct RegisterBlock {Show 15 fields
pub mcr: Reg<MCR_SPEC>,
pub msr: Reg<MSR_SPEC>,
pub tsr: Reg<TSR_SPEC>,
pub rfr: [Reg<RFR_SPEC>; 2],
pub ier: Reg<IER_SPEC>,
pub esr: Reg<ESR_SPEC>,
pub btr: Reg<BTR_SPEC>,
pub tx: [TX; 3],
pub rx: [RX; 2],
pub fmr: Reg<FMR_SPEC>,
pub fm1r: Reg<FM1R_SPEC>,
pub fs1r: Reg<FS1R_SPEC>,
pub ffa1r: Reg<FFA1R_SPEC>,
pub fa1r: Reg<FA1R_SPEC>,
pub fb: [FB; 28],
/* private fields */
}
Expand description
Register block
Fields§
§mcr: Reg<MCR_SPEC>
0x00 - CAN_MCR
msr: Reg<MSR_SPEC>
0x04 - CAN_MSR
tsr: Reg<TSR_SPEC>
0x08 - CAN_TSR
rfr: [Reg<RFR_SPEC>; 2]
0x0c..0x14 - CAN_RF%sR
ier: Reg<IER_SPEC>
0x14 - CAN_IER
esr: Reg<ESR_SPEC>
0x18 - CAN_ESR
btr: Reg<BTR_SPEC>
0x1c - CAN BTR
tx: [TX; 3]
0x180..0x1b0 - CAN Transmit cluster
rx: [RX; 2]
0x1b0..0x1d0 - CAN Receive cluster
fmr: Reg<FMR_SPEC>
0x200 - CAN_FMR
fm1r: Reg<FM1R_SPEC>
0x204 - CAN_FM1R
fs1r: Reg<FS1R_SPEC>
0x20c - CAN_FS1R
ffa1r: Reg<FFA1R_SPEC>
0x214 - CAN_FFA1R
fa1r: Reg<FA1R_SPEC>
0x21c - CAN_FA1R
fb: [FB; 28]
0x240..0x320 - CAN Filter Bank cluster
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more