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
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
)