Enum ecu_diagnostics::uds::ScalingByteHigh
source · #[repr(u8)]pub enum ScalingByteHigh {
UnsignedNumeric = 0,
SignedNumeric = 16,
BitMappingWithoutMask = 32,
BitMappingWithMask = 48,
Bcd = 64,
StateEncodedVariable = 80,
Ascii = 96,
SignedFloatingPoint = 112,
Packet = 128,
Formula = 144,
UnitOrFormat = 160,
StateAndConnectionType = 176,
}
Expand description
FIXME: Use ScalingType instead
Note: #[deprecated]
doesn’t work here due to https://github.com/rust-lang/rust/issues/30827
Scaling high nibble, representing the type of data without its size. The size is given by the low nibble.
Variants§
UnsignedNumeric = 0
Unsigned numeric integer. Must be followed by 1..4 bytes, given as a low nibble of the byte.
SignedNumeric = 16
Signed numeric integer. Must be followed by 1..4 bytes, given as a low nibble of the byte.
BitMappingWithoutMask = 32
Bit mapping encoding to set statuses, without mask
BitMappingWithMask = 48
Bit mapping encoding to set statuses, with mask
Bcd = 64
Binary coded decimal encoding
StateEncodedVariable = 80
State encoded variable (Enum)
Ascii = 96
ASCII Text. Must be followed by 1..15 bytes, given as a low nibble of the byte.
SignedFloatingPoint = 112
ANSI 754 signed floating point
Packet = 128
Multiple values data packet
Formula = 144
Conversion formula
UnitOrFormat = 160
Unit of presentation format
StateAndConnectionType = 176
Input / Output state encoding
Trait Implementations§
source§impl Clone for ScalingType
impl Clone for ScalingType
source§fn clone(&self) -> ScalingType
fn clone(&self) -> ScalingType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScalingType
impl Debug for ScalingType
source§impl Display for ScalingType
impl Display for ScalingType
source§impl Ord for ScalingType
impl Ord for ScalingType
source§fn cmp(&self, other: &ScalingType) -> Ordering
fn cmp(&self, other: &ScalingType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ScalingType
impl PartialEq for ScalingType
source§fn eq(&self, other: &ScalingType) -> bool
fn eq(&self, other: &ScalingType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ScalingType
impl PartialOrd for ScalingType
source§fn partial_cmp(&self, other: &ScalingType) -> Option<Ordering>
fn partial_cmp(&self, other: &ScalingType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more