#[repr(u8)]pub enum ValueType {
Show 17 variants
UInt8 = 1,
SInt8 = 2,
UInt16 = 3,
SInt16 = 4,
UInt32 = 5,
SInt32 = 6,
UInt64 = 7,
SInt64 = 8,
UInt128 = 9,
SInt128 = 10,
Float32 = 11,
Float64 = 12,
Q8_8 = 13,
Q16_16 = 14,
Q32_32 = 15,
LinearRange = 254,
Identifier = 255,
}
Expand description
Sensor type tags.
Variants§
UInt8 = 1
Unsigned 8-bit integer per component
SInt8 = 2
Signed 8-bit integer per component
UInt16 = 3
Unsigned 16-bit integer per component
SInt16 = 4
Signed 16-bit integer per component
UInt32 = 5
Unsigned 32-bit integer per component
SInt32 = 6
Signed 32-bit integer per component
UInt64 = 7
Unsigned 32-bit integer per component
SInt64 = 8
Signed 32-bit integer per component
UInt128 = 9
Unsigned 32-bit integer per component
SInt128 = 10
Signed 32-bit integer per component
Float32 = 11
32-bit floating point per component
Float64 = 12
64-bit floating point per component
Q8_8 = 13
16-bit fixed-point format, Q8.8 (I8F8)
Q16_16 = 14
32-bit fixed-point format, Q16.16 (I16F16)
Q32_32 = 15
64-bit fixed-point format, Q32.32 (I32F32)
LinearRange = 254
A value range description.
Identifier = 255
An identifier.
Trait Implementations§
Source§impl<'de> BorrowDecode<'de> for ValueType
impl<'de> BorrowDecode<'de> for ValueType
Source§fn borrow_decode<D: BorrowDecoder<'de>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Ord for ValueType
impl Ord for ValueType
Source§impl PartialOrd for ValueType
impl PartialOrd for ValueType
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
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