pub enum AccelerometerData {
Show 13 variants Timestamp(Field<DateTime>), TimestampMs(Field<Uint16>), SampleTimeOffset(Field<Uint16>), AccelX(Field<Uint16>), AccelY(Field<Uint16>), AccelZ(Field<Uint16>), CalibratedAccelX(Field<Float32>), CalibratedAccelY(Field<Float32>), CalibratedAccelZ(Field<Float32>), CompressedCalibratedAccelX(Field<Sint16>), CompressedCalibratedAccelY(Field<Sint16>), CompressedCalibratedAccelZ(Field<Sint16>), Unknown { data: Vec<u8>, field_def_num: u8, },
}

Variants

Timestamp(Field<DateTime>)

Whole second part of the timestamp

TimestampMs(Field<Uint16>)

Millisecond part of the timestamp.

SampleTimeOffset(Field<Uint16>)

Each time in the array describes the time at which the accelerometer sample with the corrosponding index was taken. Limited to 30 samples in each message. The samples may span across seconds. Array size must match the number of samples in accel_x and accel_y and accel_z

AccelX(Field<Uint16>)

These are the raw ADC reading. Maximum number of samples is 30 in each message. The samples may span across seconds. A conversion will need to be done on this data once read.

AccelY(Field<Uint16>)

These are the raw ADC reading. Maximum number of samples is 30 in each message. The samples may span across seconds. A conversion will need to be done on this data once read.

AccelZ(Field<Uint16>)

These are the raw ADC reading. Maximum number of samples is 30 in each message. The samples may span across seconds. A conversion will need to be done on this data once read.

CalibratedAccelX(Field<Float32>)

Calibrated accel reading

CalibratedAccelY(Field<Float32>)

Calibrated accel reading

CalibratedAccelZ(Field<Float32>)

Calibrated accel reading

CompressedCalibratedAccelX(Field<Sint16>)

Calibrated accel reading

CompressedCalibratedAccelY(Field<Sint16>)

Calibrated accel reading

CompressedCalibratedAccelZ(Field<Sint16>)

Calibrated accel reading

Unknown

Fields

data: Vec<u8>
field_def_num: u8

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.