pub struct DataBitTiming {
pub transceiver_delay_compensation: bool,
pub prescaler: NonZeroU16,
pub seg1: NonZeroU8,
pub seg2: NonZeroU8,
pub sync_jump_width: NonZeroU8,
}
Expand description
Configures the data bit timings for the FdCan Variable Bitrates. This is not used when frame_transmit is set to anything other than AllowFdCanAndBRS.
Fields§
§transceiver_delay_compensation: bool
Tranceiver Delay Compensation
prescaler: NonZeroU16
The value by which the oscillator frequency is divided to generate the bit time quanta. The bit time is built up from a multiple of this quanta. Valid values for the Baud Rate Prescaler are 1 to 31.
seg1: NonZeroU8
Valid values are 1 to 31.
seg2: NonZeroU8
Valid values are 1 to 15.
sync_jump_width: NonZeroU8
Must always be smaller than DTSEG2, valid values are 1 to 15.
Trait Implementations§
Source§impl Clone for DataBitTiming
impl Clone for DataBitTiming
Source§fn clone(&self) -> DataBitTiming
fn clone(&self) -> DataBitTiming
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DataBitTiming
impl Debug for DataBitTiming
Source§impl Default for DataBitTiming
impl Default for DataBitTiming
impl Copy for DataBitTiming
Auto Trait Implementations§
impl Freeze for DataBitTiming
impl RefUnwindSafe for DataBitTiming
impl Send for DataBitTiming
impl Sync for DataBitTiming
impl Unpin for DataBitTiming
impl UnwindSafe for DataBitTiming
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