Struct stm32_metapac::can::regs::Tscv
#[repr(transparent)]pub struct Tscv(pub u32);
Expand description
FDCAN timestamp counter value register
Tuple Fields§
§0: u32
Implementations§
§impl Tscv
impl Tscv
pub const fn tsc(&self) -> u16
pub const fn tsc(&self) -> u16
Timestamp counter. The internal/external timestamp counter value is captured on start of frame (both Rx and Tx). When TSCC[TSS] = 01, the timestamp counter is incremented in multiples of CAN bit times [1 … 16] depending on the configuration of TSCC[TCP]. A wrap around sets interrupt flag IR[TSW]. Write access resets the counter to 0. When TSCC.TSS = 10, TSC reflects the external timestamp counter value. A write access has no impact
pub fn set_tsc(&mut self, val: u16)
pub fn set_tsc(&mut self, val: u16)
Timestamp counter. The internal/external timestamp counter value is captured on start of frame (both Rx and Tx). When TSCC[TSS] = 01, the timestamp counter is incremented in multiples of CAN bit times [1 … 16] depending on the configuration of TSCC[TCP]. A wrap around sets interrupt flag IR[TSW]. Write access resets the counter to 0. When TSCC.TSS = 10, TSC reflects the external timestamp counter value. A write access has no impact