pub struct BitTiming {
pub segment1: u8,
pub segment2: u8,
pub propagation: u8,
pub sync_jump_width: u32,
pub baud_rate_prescaler: u32,
}
Expand description
This structure defines the parameters for the timing mode
Fields§
§segment1: u8
A value that defines the location of the sample point (between 1 and 16 time quanta)
segment2: u8
A value that defines the location of the transmit point (between 1 and 8 time quanta)
propagation: u8
A value used for compensating the delay on the bus lines
sync_jump_width: u32
A value that represents the maximum time by which the bit sampling period may lengthen or shorten each cycle to perform the resynchronization. It is measured in time quanta.
baud_rate_prescaler: u32
A value that represents the sampling clock period. A period is reffered to as a time quanta.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BitTiming
impl RefUnwindSafe for BitTiming
impl Send for BitTiming
impl Sync for BitTiming
impl Unpin for BitTiming
impl UnwindSafe for BitTiming
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)