pub enum AD7124CoreError {
Show 16 variants
InvalidParameter,
InvalidConfiguration,
DeviceNotResponding,
InvalidDeviceId,
UnsupportedOperation,
DataCorruption,
BufferOverflow,
ValueOutOfRange,
NotInitialized,
Timeout,
CrcError,
CalibrationFailed,
ConversionError,
ChannelNotEnabled,
ReferenceVoltageError,
PowerSupplyFault,
}
Expand description
Core AD7124 errors (transport-layer independent)
Variants§
InvalidParameter
Invalid parameter provided
InvalidConfiguration
Invalid configuration
DeviceNotResponding
Device not responding
InvalidDeviceId
Invalid device ID
UnsupportedOperation
Unsupported operation for this device variant
DataCorruption
Data corruption detected
BufferOverflow
Buffer overflow in command sequence
ValueOutOfRange
Value out of valid range
NotInitialized
Device not initialized
Timeout
Communication timeout
CrcError
CRC validation failed
CalibrationFailed
ADC calibration failed
ConversionError
ADC conversion error
ChannelNotEnabled
Channel not enabled
ReferenceVoltageError
Reference voltage error
PowerSupplyFault
Power supply fault
Trait Implementations§
Source§impl Clone for AD7124CoreError
impl Clone for AD7124CoreError
Source§fn clone(&self) -> AD7124CoreError
fn clone(&self) -> AD7124CoreError
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 AD7124CoreError
impl Debug for AD7124CoreError
Source§impl<TransportE, PinE> From<AD7124CoreError> for AD7124Error<TransportE, PinE>
impl<TransportE, PinE> From<AD7124CoreError> for AD7124Error<TransportE, PinE>
Source§fn from(err: AD7124CoreError) -> Self
fn from(err: AD7124CoreError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AD7124CoreError
impl PartialEq for AD7124CoreError
impl Copy for AD7124CoreError
impl Eq for AD7124CoreError
impl StructuralPartialEq for AD7124CoreError
Auto Trait Implementations§
impl Freeze for AD7124CoreError
impl RefUnwindSafe for AD7124CoreError
impl Send for AD7124CoreError
impl Sync for AD7124CoreError
impl Unpin for AD7124CoreError
impl UnwindSafe for AD7124CoreError
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