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
Trait Implementations§
impl Copy for Tdcr
impl Eq for Tdcr
impl StructuralPartialEq for Tdcr
Auto Trait Implementations§
impl Freeze for Tdcr
impl RefUnwindSafe for Tdcr
impl Send for Tdcr
impl Sync for Tdcr
impl Unpin for Tdcr
impl UnwindSafe for Tdcr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)