Struct stm32_metapac::can::regs::Tocv
#[repr(transparent)]pub struct Tocv(pub u32);
Expand description
FDCAN timeout counter value register
Tuple Fields§
§0: u32
Implementations§
§impl Tocv
impl Tocv
pub const fn toc(&self) -> u16
pub const fn toc(&self) -> u16
Timeout counter. The timeout counter is decremented in multiples of CAN bit times [1 … 16] depending on the configuration of TSCC.TCP. When decremented to 0, interrupt flag IR.TOO is set and the timeout counter is stopped. Start and reset/restart conditions are configured via TOCC.TOS
pub fn set_toc(&mut self, val: u16)
pub fn set_toc(&mut self, val: u16)
Timeout counter. The timeout counter is decremented in multiples of CAN bit times [1 … 16] depending on the configuration of TSCC.TCP. When decremented to 0, interrupt flag IR.TOO is set and the timeout counter is stopped. Start and reset/restart conditions are configured via TOCC.TOS
Trait Implementations§
impl Copy for Tocv
impl Eq for Tocv
impl StructuralPartialEq for Tocv
Auto Trait Implementations§
impl Freeze for Tocv
impl RefUnwindSafe for Tocv
impl Send for Tocv
impl Sync for Tocv
impl Unpin for Tocv
impl UnwindSafe for Tocv
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)