pub struct InterfaceCanParams {
pub bit_timing: Option<CanBitTiming>,
pub bit_timing_const: Option<CanBitTimingConst>,
pub clock: Option<CanClock>,
pub state: Option<CanState>,
pub restart_ms: Option<u32>,
pub berr_counter: Option<CanBerrCounter>,
pub ctrl_mode: Option<CanCtrlModes>,
pub data_bit_timing: Option<CanBitTiming>,
pub data_bit_timing_const: Option<CanBitTimingConst>,
pub termination: Option<u16>,
}
Expand description
The CAN-specific parameters for the interface.
Fields§
§bit_timing: Option<CanBitTiming>
The CAN bit timing parameters
bit_timing_const: Option<CanBitTimingConst>
The bit timing const parameters
clock: Option<CanClock>
The CAN clock parameters (read only)
state: Option<CanState>
The CAN bus state (read-only)
restart_ms: Option<u32>
The automatic restart time (in millisec) Zero means auto-restart is disabled.
berr_counter: Option<CanBerrCounter>
The bit error counter (read-only)
ctrl_mode: Option<CanCtrlModes>
The control mode bits
data_bit_timing: Option<CanBitTiming>
The FD data bit timing
data_bit_timing_const: Option<CanBitTimingConst>
The FD data bit timing const parameters
termination: Option<u16>
The CANbus termination resistance
Trait Implementations§
Source§impl Clone for InterfaceCanParams
impl Clone for InterfaceCanParams
Source§fn clone(&self) -> InterfaceCanParams
fn clone(&self) -> InterfaceCanParams
Returns a duplicate 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 InterfaceCanParams
impl Debug for InterfaceCanParams
Source§impl Default for InterfaceCanParams
impl Default for InterfaceCanParams
Source§fn default() -> InterfaceCanParams
fn default() -> InterfaceCanParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InterfaceCanParams
impl RefUnwindSafe for InterfaceCanParams
impl Send for InterfaceCanParams
impl Sync for InterfaceCanParams
impl Unpin for InterfaceCanParams
impl UnwindSafe for InterfaceCanParams
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more