Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,7 @@ enum class ImuType : uint16_t {
ICM45686 = 16,
ICM45605 = 17,
ADC_RESISTANCE = 18,
ICM55686 = 19,
DEV_RESERVED = 250,
MIN = Other,
MAX = DEV_RESERVED
Expand All @@ -1054,6 +1055,7 @@ inline const ImuType (&EnumValuesImuType())[20] {
ImuType::ICM45686,
ImuType::ICM45605,
ImuType::ADC_RESISTANCE,
ImuType::ICM55686,
ImuType::DEV_RESERVED
};
return values;
Expand All @@ -1080,6 +1082,7 @@ inline const char *EnumNameImuType(ImuType e) {
case ImuType::ICM45686: return "ICM45686";
case ImuType::ICM45605: return "ICM45605";
case ImuType::ADC_RESISTANCE: return "ADC_RESISTANCE";
case ImuType::ICM55686: return "ICM55686";
case ImuType::DEV_RESERVED: return "DEV_RESERVED";
default: return "";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ private ImuType() { }
public static final int ICM45686 = 16;
public static final int ICM45605 = 17;
public static final int ADC_RESISTANCE = 18;
public static final int ICM55686 = 19;
public static final int DEV_RESERVED = 250;
}

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ImuType private constructor() {
const val ICM45686: UShort = 16u
const val ICM45605: UShort = 17u
const val ADCRESISTANCE: UShort = 18u
const val ICM55686: UShort = 19u
const val DEVRESERVED: UShort = 250u
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub const ENUM_VALUES_IMU_TYPE: [ImuType; 20] = [
ImuType::ICM45686,
ImuType::ICM45605,
ImuType::ADC_RESISTANCE,
ImuType::ICM55686,
ImuType::DEV_RESERVED,
];

Expand Down Expand Up @@ -62,6 +63,7 @@ impl ImuType {
pub const ICM45686: Self = Self(16);
pub const ICM45605: Self = Self(17);
pub const ADC_RESISTANCE: Self = Self(18);
pub const ICM55686: Self = Self(19);
pub const DEV_RESERVED: Self = Self(250);

pub const ENUM_MIN: u16 = 0;
Expand All @@ -86,6 +88,7 @@ impl ImuType {
Self::ICM45686,
Self::ICM45605,
Self::ADC_RESISTANCE,
Self::ICM55686,
Self::DEV_RESERVED,
];
/// Returns the variant's name or "" if unknown.
Expand All @@ -110,6 +113,7 @@ impl ImuType {
Self::ICM45686 => Some("ICM45686"),
Self::ICM45605 => Some("ICM45605"),
Self::ADC_RESISTANCE => Some("ADC_RESISTANCE"),
Self::ICM55686 => Some("ICM55686"),
Self::DEV_RESERVED => Some("DEV_RESERVED"),
_ => None,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export enum ImuType {
ICM45686 = 16,
ICM45605 = 17,
ADC_RESISTANCE = 18,
ICM55686 = 19,
DEV_RESERVED = 250
}
1 change: 1 addition & 0 deletions schema/datatypes/hardware_info.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ enum ImuType: uint16 {
ICM45686,
ICM45605,
ADC_RESISTANCE,
ICM55686,
DEV_RESERVED = 250,
}

Expand Down