Struct stm32_metapac::can::regs::Ckdiv
#[repr(transparent)]pub struct Ckdiv(pub u32);
Expand description
FDCAN CFG clock divider register
Tuple Fields§
§0: u32
Implementations§
§impl Ckdiv
impl Ckdiv
pub const fn pdiv(&self) -> Pdiv
pub const fn pdiv(&self) -> Pdiv
input clock divider. The APB clock could be divided prior to be used by the CAN sub system. The rate must be computed using the divider output clock. 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_pdiv(&mut self, val: Pdiv)
pub fn set_pdiv(&mut self, val: Pdiv)
input clock divider. The APB clock could be divided prior to be used by the CAN sub system. The rate must be computed using the divider output clock. 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 Ckdiv
impl Eq for Ckdiv
impl StructuralPartialEq for Ckdiv
Auto Trait Implementations§
impl Freeze for Ckdiv
impl RefUnwindSafe for Ckdiv
impl Send for Ckdiv
impl Sync for Ckdiv
impl Unpin for Ckdiv
impl UnwindSafe for Ckdiv
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
)