Struct stm32_metapac::can::regs::Xidam
#[repr(transparent)]pub struct Xidam(pub u32);
Expand description
FDCAN extended ID and mask register
Tuple Fields§
§0: u32
Implementations§
§impl Xidam
impl Xidam
pub const fn eidm(&self) -> u32
pub const fn eidm(&self) -> u32
Extended ID mask. For acceptance filtering of extended frames the Extended ID AND Mask is AND-ed with the Message ID of a received frame. Intended for masking of 29-bit IDs in SAE J1939. With the reset value of all bits set to 1 the mask is not active. These are protected write (P) bits, which means that write access by the bits is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1
pub fn set_eidm(&mut self, val: u32)
pub fn set_eidm(&mut self, val: u32)
Extended ID mask. For acceptance filtering of extended frames the Extended ID AND Mask is AND-ed with the Message ID of a received frame. Intended for masking of 29-bit IDs in SAE J1939. With the reset value of all bits set to 1 the mask is not active. These are protected write (P) bits, which means that write access by the bits is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1