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
Trait Implementations§
impl Copy for Tscv
impl Eq for Tscv
impl StructuralPartialEq for Tscv
Auto Trait Implementations§
impl Freeze for Tscv
impl RefUnwindSafe for Tscv
impl Send for Tscv
impl Sync for Tscv
impl Unpin for Tscv
impl UnwindSafe for Tscv
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
)