pub struct BmsFaultTimers(/* private fields */);Implementations§
Source§impl BmsFaultTimers
impl BmsFaultTimers
Sourcepub const fn start_stop(&self) -> u8
pub const fn start_stop(&self) -> u8
Whether the timer is starting or stopping
0=TIMER_STOPPED,1=TIMER_STARTED,2=TIMER_EXPIRED
Bits: 0..8
Sourcepub const fn with_start_stop_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_start_stop_checked(self, value: u8) -> Result<Self, ()>
Whether the timer is starting or stopping
0=TIMER_STOPPED,1=TIMER_STARTED,2=TIMER_EXPIRED
Bits: 0..8
Sourcepub const fn with_start_stop(self, value: u8) -> Self
pub const fn with_start_stop(self, value: u8) -> Self
Whether the timer is starting or stopping
0=TIMER_STOPPED,1=TIMER_STARTED,2=TIMER_EXPIRED
Bits: 0..8
Sourcepub const fn set_start_stop(&mut self, value: u8)
pub const fn set_start_stop(&mut self, value: u8)
Whether the timer is starting or stopping
0=TIMER_STOPPED,1=TIMER_STARTED,2=TIMER_EXPIRED
Bits: 0..8
Sourcepub const fn set_start_stop_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_start_stop_checked(&mut self, value: u8) -> Result<(), ()>
Whether the timer is starting or stopping
0=TIMER_STOPPED,1=TIMER_STARTED,2=TIMER_EXPIRED
Bits: 0..8
Sourcepub const fn with_code_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_code_checked(self, value: u8) -> Result<Self, ()>
The fault code timer began for
Bits: 8..16
Sourcepub const fn set_code_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_code_checked(&mut self, value: u8) -> Result<(), ()>
The fault code timer began for
Bits: 8..16
Sourcepub const fn with_value_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_value_checked(self, value: f32) -> Result<Self, ()>
The value evaluated to trigger fault
Bits: 16..48
Sourcepub const fn with_value(self, value: f32) -> Self
pub const fn with_value(self, value: f32) -> Self
The value evaluated to trigger fault
Bits: 16..48
Trait Implementations§
Source§impl Clone for BmsFaultTimers
impl Clone for BmsFaultTimers
Source§fn clone(&self) -> BmsFaultTimers
fn clone(&self) -> BmsFaultTimers
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 BmsFaultTimers
impl Debug for BmsFaultTimers
Source§impl Default for BmsFaultTimers
impl Default for BmsFaultTimers
Source§impl From<BmsFaultTimers> for u64
impl From<BmsFaultTimers> for u64
Source§fn from(v: BmsFaultTimers) -> Self
fn from(v: BmsFaultTimers) -> Self
Converts to this type from the input type.
Source§impl From<u64> for BmsFaultTimers
impl From<u64> for BmsFaultTimers
Source§impl ToCanFrame for BmsFaultTimers
impl ToCanFrame for BmsFaultTimers
impl Copy for BmsFaultTimers
Auto Trait Implementations§
impl Freeze for BmsFaultTimers
impl RefUnwindSafe for BmsFaultTimers
impl Send for BmsFaultTimers
impl Sync for BmsFaultTimers
impl Unpin for BmsFaultTimers
impl UnwindSafe for BmsFaultTimers
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