Struct Dbtp
#[repr(transparent)]pub struct Dbtp(pub u32);
Expand description
This register is only writable if bits CCCR.CCE and CCCR.INIT are set. The CAN bit time may be programed in the range of 4 to 25 time quanta. The CAN time quantum may be programmed in the range of 1 to 1024 FDCAN clock periods. tq = (DBRP + 1) FDCAN clock period. DTSEG1 is the sum of Prop_Seg and Phase_Seg1. DTSEG2 is Phase_Seg2. Therefore the length of the bit time is (programmed values) [DTSEG1 + DTSEG2 + 3] tq or (functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] tq. The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the first clock edge after the sample point.
Tuple Fields§
§0: u32
Implementations§
§impl Dbtp
impl Dbtp
pub fn set_dtseg2(&mut self, val: u8)
pub fn set_dtseg2(&mut self, val: u8)
DTSEG2
pub fn set_dtseg1(&mut self, val: u8)
pub fn set_dtseg1(&mut self, val: u8)
DTSEG1
Trait Implementations§
impl Copy for Dbtp
impl Eq for Dbtp
impl StructuralPartialEq for Dbtp
Auto Trait Implementations§
impl Freeze for Dbtp
impl RefUnwindSafe for Dbtp
impl Send for Dbtp
impl Sync for Dbtp
impl Unpin for Dbtp
impl UnwindSafe for Dbtp
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