Struct stm32_metapac::can::regs::Tdcr
#[repr(transparent)]pub struct Tdcr(pub u32);
Expand description
FDCAN transmitter delay compensation register
Tuple Fields§
§0: u32
Implementations§
§impl Tdcr
impl Tdcr
pub const fn tdcf(&self) -> u8
pub const fn tdcf(&self) -> u8
Transmitter delay compensation filter window length. Defines the minimum value for the SSP position, dominant edges on FDCAN_RX that would result in an earlier SSP position are ignored for transmitter delay measurements. 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_tdcf(&mut self, val: u8)
pub fn set_tdcf(&mut self, val: u8)
Transmitter delay compensation filter window length. Defines the minimum value for the SSP position, dominant edges on FDCAN_RX that would result in an earlier SSP position are ignored for transmitter delay measurements. 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 const fn tdco(&self) -> u8
pub const fn tdco(&self) -> u8
Transmitter delay compensation offset. Offset value defining the distance between the measured delay from FDCAN_TX to FDCAN_RX and the secondary sample point. Valid values are 0 to 127 mtq. 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_tdco(&mut self, val: u8)
pub fn set_tdco(&mut self, val: u8)
Transmitter delay compensation offset. Offset value defining the distance between the measured delay from FDCAN_TX to FDCAN_RX and the secondary sample point. Valid values are 0 to 127 mtq. 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