pub struct ShutdownAsReadByBms(/* private fields */);Implementations§
Source§impl ShutdownAsReadByBms
impl ShutdownAsReadByBms
Sourcepub const fn shutdown_state(&self) -> bool
pub const fn shutdown_state(&self) -> bool
Current shutdown state
0=TS ON, 1=TS OFF
Bits: 0..1
Sourcepub const fn with_shutdown_state_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_shutdown_state_checked(self, value: bool) -> Result<Self, ()>
Current shutdown state
0=TS ON, 1=TS OFF
Bits: 0..1
Sourcepub const fn with_shutdown_state(self, value: bool) -> Self
pub const fn with_shutdown_state(self, value: bool) -> Self
Current shutdown state
0=TS ON, 1=TS OFF
Bits: 0..1
Sourcepub const fn set_shutdown_state(&mut self, value: bool)
pub const fn set_shutdown_state(&mut self, value: bool)
Current shutdown state
0=TS ON, 1=TS OFF
Bits: 0..1
Sourcepub const fn set_shutdown_state_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_shutdown_state_checked( &mut self, value: bool, ) -> Result<(), ()>
Current shutdown state
0=TS ON, 1=TS OFF
Bits: 0..1
Sourcepub const fn shutdown_ts_minus_sense(&self) -> bool
pub const fn shutdown_ts_minus_sense(&self) -> bool
Bits: 1..2
Sourcepub const fn with_shutdown_ts_minus_sense_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_shutdown_ts_minus_sense_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_shutdown_ts_minus_sense(self, value: bool) -> Self
pub const fn with_shutdown_ts_minus_sense(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_shutdown_ts_minus_sense(&mut self, value: bool)
pub const fn set_shutdown_ts_minus_sense(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn set_shutdown_ts_minus_sense_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_shutdown_ts_minus_sense_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 1..2
Sourcepub const fn shutdown_ts_plus_sense(&self) -> bool
pub const fn shutdown_ts_plus_sense(&self) -> bool
Bits: 2..3
Sourcepub const fn with_shutdown_ts_plus_sense_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_shutdown_ts_plus_sense_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_shutdown_ts_plus_sense(self, value: bool) -> Self
pub const fn with_shutdown_ts_plus_sense(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_shutdown_ts_plus_sense(&mut self, value: bool)
pub const fn set_shutdown_ts_plus_sense(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn set_shutdown_ts_plus_sense_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_shutdown_ts_plus_sense_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 2..3
Sourcepub const fn shutdown_acc_sense(&self) -> bool
pub const fn shutdown_acc_sense(&self) -> bool
Bits: 3..4
Sourcepub const fn with_shutdown_acc_sense_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_shutdown_acc_sense_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_shutdown_acc_sense(self, value: bool) -> Self
pub const fn with_shutdown_acc_sense(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_shutdown_acc_sense(&mut self, value: bool)
pub const fn set_shutdown_acc_sense(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn set_shutdown_acc_sense_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_shutdown_acc_sense_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 3..4
Sourcepub const fn shutdown_tsip_sense(&self) -> bool
pub const fn shutdown_tsip_sense(&self) -> bool
Bits: 4..5
Sourcepub const fn with_shutdown_tsip_sense_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_shutdown_tsip_sense_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_shutdown_tsip_sense(self, value: bool) -> Self
pub const fn with_shutdown_tsip_sense(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_shutdown_tsip_sense(&mut self, value: bool)
pub const fn set_shutdown_tsip_sense(&mut self, value: bool)
Bits: 4..5
Trait Implementations§
Source§impl Clone for ShutdownAsReadByBms
impl Clone for ShutdownAsReadByBms
Source§fn clone(&self) -> ShutdownAsReadByBms
fn clone(&self) -> ShutdownAsReadByBms
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 ShutdownAsReadByBms
impl Debug for ShutdownAsReadByBms
Source§impl Default for ShutdownAsReadByBms
impl Default for ShutdownAsReadByBms
Source§impl From<ShutdownAsReadByBms> for u8
impl From<ShutdownAsReadByBms> for u8
Source§fn from(v: ShutdownAsReadByBms) -> Self
fn from(v: ShutdownAsReadByBms) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ShutdownAsReadByBms
impl From<u8> for ShutdownAsReadByBms
Source§impl ToCanFrame for ShutdownAsReadByBms
impl ToCanFrame for ShutdownAsReadByBms
impl Copy for ShutdownAsReadByBms
Auto Trait Implementations§
impl Freeze for ShutdownAsReadByBms
impl RefUnwindSafe for ShutdownAsReadByBms
impl Send for ShutdownAsReadByBms
impl Sync for ShutdownAsReadByBms
impl Unpin for ShutdownAsReadByBms
impl UnwindSafe for ShutdownAsReadByBms
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