#[repr(C)]pub struct twai_timing_config_t {
pub clk_src: twai_clock_source_t,
pub quanta_resolution_hz: u32,
pub brp: u32,
pub prop_seg: u8,
pub tseg_1: u8,
pub tseg_2: u8,
pub sjw: u8,
pub ssp_offset: u8,
pub triple_sampling: bool,
}Expand description
@brief TWAI bitrate timing config advanced mode
@note Setting one of quanta_resolution_hz and brp is enough, otherwise, brp is not used.
Fields§
§clk_src: twai_clock_source_t< Optional, clock source, remain 0 to using TWAI_CLK_SRC_DEFAULT by default
quanta_resolution_hz: u32< The resolution of one timing quanta, in Hz. If setting, brp will be ignored
brp: u32< Bit rate pre-divider, clock_source_freq / brp = quanta_resolution_hz
prop_seg: u8< Prop_seg length, in quanta time
tseg_1: u8< Seg_1 length, in quanta time
tseg_2: u8< Seg_2 length, in quanta time
sjw: u8< Sync jump width, in quanta time
ssp_offset: u8< Secondary sample point offset refet to Sync seg, in quanta time, set 0 to disable ssp
triple_sampling: bool< Deprecated, in favor of ssp_offset
Trait Implementations§
Source§impl Clone for twai_timing_config_t
impl Clone for twai_timing_config_t
Source§fn clone(&self) -> twai_timing_config_t
fn clone(&self) -> twai_timing_config_t
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for twai_timing_config_t
impl Debug for twai_timing_config_t
Source§impl Default for twai_timing_config_t
impl Default for twai_timing_config_t
impl Copy for twai_timing_config_t
Auto Trait Implementations§
impl Freeze for twai_timing_config_t
impl RefUnwindSafe for twai_timing_config_t
impl Send for twai_timing_config_t
impl Sync for twai_timing_config_t
impl Unpin for twai_timing_config_t
impl UnsafeUnpin for twai_timing_config_t
impl UnwindSafe for twai_timing_config_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)