Struct mcxn947_pac::CAN0
source · pub struct CAN0 { /* private fields */ }
Expand description
CAN
Implementations§
source§impl CAN0
impl CAN0
sourcepub const PTR: *const RegisterBlock = {0x400d4000 as *const can0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x400d4000 as *const can0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn mb(&self, n: usize) -> &MB
pub fn mb(&self, n: usize) -> &MB
0x80..0x280 - Cluster MB%s, containing CS?,CS??, ID?,ID??, WORD0?,WORD0??, WORD1?,WORD1??
sourcepub fn mb_iter(&self) -> impl Iterator<Item = &MB>
pub fn mb_iter(&self) -> impl Iterator<Item = &MB>
Iterator for array of: 0x80..0x280 - Cluster MB%s, containing CS?,CS??, ID?,ID??, WORD0?,WORD0??, WORD1?,WORD1??
sourcepub fn rximr_iter(&self) -> impl Iterator<Item = &RXIMR>
pub fn rximr_iter(&self) -> impl Iterator<Item = &RXIMR>
Iterator for array of: 0x880..0x900 - Rx Individual Mask Registers
sourcepub fn flt_id2_idmask(&self) -> &FLT_ID2_IDMASK
pub fn flt_id2_idmask(&self) -> &FLT_ID2_IDMASK
0xb1c - Pretended Networking ID Filter 2 Register / ID Mask Register
sourcepub fn pl2_plmask_lo(&self) -> &PL2_PLMASK_LO
pub fn pl2_plmask_lo(&self) -> &PL2_PLMASK_LO
0xb20 - Pretended Networking Payload Low Filter 2 Register / Payload Low Mask register
sourcepub fn pl2_plmask_hi(&self) -> &PL2_PLMASK_HI
pub fn pl2_plmask_hi(&self) -> &PL2_PLMASK_HI
0xb24 - Pretended Networking Payload High Filter 2 low order bits / Payload High Mask register
sourcepub fn wmb_iter(&self) -> impl Iterator<Item = &WMB>
pub fn wmb_iter(&self) -> impl Iterator<Item = &WMB>
Iterator for array of: 0xb40..0xb80 - no description available
sourcepub fn erffel_iter(&self) -> impl Iterator<Item = &ERFFEL>
pub fn erffel_iter(&self) -> impl Iterator<Item = &ERFFEL>
Iterator for array of: 0x3000..0x3080 - Enhanced Rx FIFO Filter Element