pub struct ShutdownPins(/* private fields */);Implementations§
Source§impl ShutdownPins
impl ShutdownPins
Sourcepub const fn with_bms_gpio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_bms_gpio_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_bms_gpio(self, value: bool) -> Self
pub const fn with_bms_gpio(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn set_bms_gpio(&mut self, value: bool)
pub const fn set_bms_gpio(&mut self, value: bool)
Bits: 0..1
Sourcepub const fn with_bots_gpio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_bots_gpio_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_bots_gpio(self, value: bool) -> Self
pub const fn with_bots_gpio(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_bots_gpio(&mut self, value: bool)
pub const fn set_bots_gpio(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn with_bspd_gpio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_bspd_gpio_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_bspd_gpio(self, value: bool) -> Self
pub const fn with_bspd_gpio(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_bspd_gpio(&mut self, value: bool)
pub const fn set_bspd_gpio(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn with_hv_c_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_hv_c_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_hvd_gpio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_hvd_gpio_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_hvd_gpio(self, value: bool) -> Self
pub const fn with_hvd_gpio(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_hvd_gpio(&mut self, value: bool)
pub const fn set_hvd_gpio(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn with_imd_gpio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_imd_gpio_checked(self, value: bool) -> Result<Self, ()>
Bits: 5..6
Sourcepub const fn with_imd_gpio(self, value: bool) -> Self
pub const fn with_imd_gpio(self, value: bool) -> Self
Bits: 5..6
Sourcepub const fn set_imd_gpio(&mut self, value: bool)
pub const fn set_imd_gpio(&mut self, value: bool)
Bits: 5..6
Sourcepub const fn with_ckpt_gpio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ckpt_gpio_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_ckpt_gpio(self, value: bool) -> Self
pub const fn with_ckpt_gpio(self, value: bool) -> Self
Bits: 6..7
Sourcepub const fn set_ckpt_gpio(&mut self, value: bool)
pub const fn set_ckpt_gpio(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn inertia_sw_gpio(&self) -> bool
pub const fn inertia_sw_gpio(&self) -> bool
Bits: 7..8
Sourcepub const fn with_inertia_sw_gpio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_inertia_sw_gpio_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_inertia_sw_gpio(self, value: bool) -> Self
pub const fn with_inertia_sw_gpio(self, value: bool) -> Self
Bits: 7..8
Sourcepub const fn set_inertia_sw_gpio(&mut self, value: bool)
pub const fn set_inertia_sw_gpio(&mut self, value: bool)
Bits: 7..8
Sourcepub const fn set_inertia_sw_gpio_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_inertia_sw_gpio_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 7..8
Sourcepub const fn with_tsms_gpio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_tsms_gpio_checked(self, value: bool) -> Result<Self, ()>
Bits: 8..9
Sourcepub const fn with_tsms_gpio(self, value: bool) -> Self
pub const fn with_tsms_gpio(self, value: bool) -> Self
Bits: 8..9
Sourcepub const fn set_tsms_gpio(&mut self, value: bool)
pub const fn set_tsms_gpio(&mut self, value: bool)
Bits: 8..9
Trait Implementations§
Source§impl Clone for ShutdownPins
impl Clone for ShutdownPins
Source§fn clone(&self) -> ShutdownPins
fn clone(&self) -> ShutdownPins
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 ShutdownPins
impl Debug for ShutdownPins
Source§impl Default for ShutdownPins
impl Default for ShutdownPins
Source§impl From<ShutdownPins> for u16
impl From<ShutdownPins> for u16
Source§fn from(v: ShutdownPins) -> Self
fn from(v: ShutdownPins) -> Self
Converts to this type from the input type.
Source§impl From<u16> for ShutdownPins
impl From<u16> for ShutdownPins
Source§impl ToCanFrame for ShutdownPins
impl ToCanFrame for ShutdownPins
impl Copy for ShutdownPins
Auto Trait Implementations§
impl Freeze for ShutdownPins
impl RefUnwindSafe for ShutdownPins
impl Send for ShutdownPins
impl Sync for ShutdownPins
impl Unpin for ShutdownPins
impl UnwindSafe for ShutdownPins
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