pub enum AscState {
Enabled,
Disabled,
}Expand description
Indicates whether automatic self calibration (ASC) is enabled.
Variants§
Trait Implementations§
Source§impl TryFrom<&[u8]> for AscState
impl TryFrom<&[u8]> for AscState
Source§fn try_from(data: &[u8]) -> Result<Self, Self::Error>
fn try_from(data: &[u8]) -> Result<Self, Self::Error>
Parse the ASC state from the received data.
§Errors
CrcFailed: If the received data CRC indicates corruption.ReceivedBufferWrongSize: If the received data buffer is not the expected size.- UnexpectedValueReceived if the
received value is not
0or1.
impl StructuralPartialEq for AscState
Auto Trait Implementations§
impl Freeze for AscState
impl RefUnwindSafe for AscState
impl Send for AscState
impl Sync for AscState
impl Unpin for AscState
impl UnwindSafe for AscState
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