pub struct DriveLockStates(/* private fields */);Implementations§
Source§impl DriveLockStates
impl DriveLockStates
Sourcepub const fn with_BRAKE_OC_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_BRAKE_OC_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_BRAKE_OC(self, value: bool) -> Self
pub const fn with_BRAKE_OC(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn set_BRAKE_OC(&mut self, value: bool)
pub const fn set_BRAKE_OC(&mut self, value: bool)
Bits: 0..1
Sourcepub const fn with_BRAKE_SC_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_BRAKE_SC_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_BRAKE_SC(self, value: bool) -> Self
pub const fn with_BRAKE_SC(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_BRAKE_SC(&mut self, value: bool)
pub const fn set_BRAKE_SC(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn with_ACCEL_OC_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ACCEL_OC_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_ACCEL_OC(self, value: bool) -> Self
pub const fn with_ACCEL_OC(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_ACCEL_OC(&mut self, value: bool)
pub const fn set_ACCEL_OC(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn with_ACCEL_SC_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ACCEL_SC_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_ACCEL_SC(self, value: bool) -> Self
pub const fn with_ACCEL_SC(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_ACCEL_SC(&mut self, value: bool)
pub const fn set_ACCEL_SC(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn ACCEL_DIFF(&self) -> bool
pub const fn ACCEL_DIFF(&self) -> bool
Bits: 4..5
Sourcepub const fn with_ACCEL_DIFF_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ACCEL_DIFF_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_ACCEL_DIFF(self, value: bool) -> Self
pub const fn with_ACCEL_DIFF(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_ACCEL_DIFF(&mut self, value: bool)
pub const fn set_ACCEL_DIFF(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn with_BSPD_PREF_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_BSPD_PREF_checked(self, value: bool) -> Result<Self, ()>
Bits: 5..6
Sourcepub const fn with_BSPD_PREF(self, value: bool) -> Self
pub const fn with_BSPD_PREF(self, value: bool) -> Self
Bits: 5..6
Sourcepub const fn set_BSPD_PREF(&mut self, value: bool)
pub const fn set_BSPD_PREF(&mut self, value: bool)
Bits: 5..6
Sourcepub const fn BMS_NOT_PRECHARGED_YET(&self) -> bool
pub const fn BMS_NOT_PRECHARGED_YET(&self) -> bool
Bits: 6..7
Sourcepub const fn with_BMS_NOT_PRECHARGED_YET_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_BMS_NOT_PRECHARGED_YET_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_BMS_NOT_PRECHARGED_YET(self, value: bool) -> Self
pub const fn with_BMS_NOT_PRECHARGED_YET(self, value: bool) -> Self
Bits: 6..7
Sourcepub const fn set_BMS_NOT_PRECHARGED_YET(&mut self, value: bool)
pub const fn set_BMS_NOT_PRECHARGED_YET(&mut self, value: bool)
Bits: 6..7
Trait Implementations§
Source§impl Clone for DriveLockStates
impl Clone for DriveLockStates
Source§fn clone(&self) -> DriveLockStates
fn clone(&self) -> DriveLockStates
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 DriveLockStates
impl Debug for DriveLockStates
Source§impl Default for DriveLockStates
impl Default for DriveLockStates
Source§impl From<DriveLockStates> for u8
impl From<DriveLockStates> for u8
Source§fn from(v: DriveLockStates) -> Self
fn from(v: DriveLockStates) -> Self
Converts to this type from the input type.
Source§impl From<u8> for DriveLockStates
impl From<u8> for DriveLockStates
Source§impl ToCanFrame for DriveLockStates
impl ToCanFrame for DriveLockStates
impl Copy for DriveLockStates
Auto Trait Implementations§
impl Freeze for DriveLockStates
impl RefUnwindSafe for DriveLockStates
impl Send for DriveLockStates
impl Sync for DriveLockStates
impl Unpin for DriveLockStates
impl UnwindSafe for DriveLockStates
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