pub enum AutomaticSelfCalibration {
Active = 1,
Inactive = 0,
}
Expand description
Arguments for configuring the automatic self calibration.
Variants§
Implementations§
Source§impl AutomaticSelfCalibration
impl AutomaticSelfCalibration
Sourcepub fn to_be_bytes(&self) -> [u8; 2]
pub fn to_be_bytes(&self) -> [u8; 2]
Returns a big endian byte representation of the automatic self calibration value.
Trait Implementations§
Source§impl Clone for AutomaticSelfCalibration
impl Clone for AutomaticSelfCalibration
Source§fn clone(&self) -> AutomaticSelfCalibration
fn clone(&self) -> AutomaticSelfCalibration
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 AutomaticSelfCalibration
impl Debug for AutomaticSelfCalibration
Source§impl PartialEq for AutomaticSelfCalibration
impl PartialEq for AutomaticSelfCalibration
Source§impl TryFrom<&[u8]> for AutomaticSelfCalibration
impl TryFrom<&[u8]> for AutomaticSelfCalibration
Source§fn try_from(data: &[u8]) -> Result<Self, Self::Error>
fn try_from(data: &[u8]) -> Result<Self, Self::Error>
Converts buffered data to an AutomaticSelfCalibration value. If Active
if a 1
is
received, Inactive
if a 0
is received.
§Errors
- ReceivedBufferWrongSize if the
data
buffer is not big enough for the data that should have been received. - CrcFailed if the CRC of the received data does not match.
- UnexpectedValueReceived if the received value is not
0
or1
.
impl Copy for AutomaticSelfCalibration
impl StructuralPartialEq for AutomaticSelfCalibration
Auto Trait Implementations§
impl Freeze for AutomaticSelfCalibration
impl RefUnwindSafe for AutomaticSelfCalibration
impl Send for AutomaticSelfCalibration
impl Sync for AutomaticSelfCalibration
impl Unpin for AutomaticSelfCalibration
impl UnwindSafe for AutomaticSelfCalibration
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