#[repr(u8)]
pub enum Type {
Show 18 variants
I8,
U8,
Char,
F64,
F32,
FourCC,
U128,
I64,
U64,
I32,
U32,
Fixed32,
Fixed64,
I16,
U16,
Date,
Complex,
Nested,
}Expand description
The data type of the sensor data
Variants§
I8
| b | single byte signed integer | int8_t | -128 to 127 |
U8
| B | single byte unsigned integer | uint8_t | 0 to 255 |
Char
| c | single byte 'c' style ASCII character string | char | Optionally NULL terminated - size/repeat sets the length |
F64
| d | 64-bit double precision (IEEE 754) | double | |
F32
| f | 32-bit float (IEEE 754) | float | |
FourCC
| F | 32-bit four character key – FourCC | char fourcc[4] | |
U128
| G | 128-bit ID (like UUID) | uint8_t guid[16] | |
I64
| j | 64-bit signed unsigned number | int64_t | |
U64
| J | 64-bit unsigned unsigned number | uint64_t | |
I32
| l | 32-bit signed integer | int32_t | |
U32
| L | 32-bit unsigned integer | uint32_t | |
Fixed32
| q | 32-bit Q Number Q15.16 | uint32_t | 16-bit integer (A) with 16-bit fixed point (B) for A.B value (range -32768.0 to 32767.99998) |
Fixed64
| Q | 64-bit Q Number Q31.32 | uint64_t | 32-bit integer (A) with 32-bit fixed point (B) for A.B value. |
I16
| s | 16-bit signed integer | int16_t | -32768 to 32768 |
U16
| S | 16-bit unsigned integer | uint16_t | 0 to 65536 |
Date
| U | UTC Date and Time string | char utcdate[16] | Date + UTC Time format yymmddhhmmss.sss - (years 20xx covered) |
Complex
| ? | data structure is complex | TYPE | Structure is defined with a preceding TYPE |
Nested
| null | Nested metadata | uint32_t | The data within is GPMF structured KLV data |