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 @@ -1047,12 +1047,14 @@ enum class BoardType : uint16_t {
ESP32C6DEVKITC1 = 19,
GLOVE_IMU_SLIMEVR_DEV = 20,
GESTURES = 21,
SLIMEVR_v1_2 = 22,
ESP32S3_SUPERMINI = 23,
DEV_RESERVED = 250,
MIN = UNKNOWN,
MAX = DEV_RESERVED
};

inline const BoardType (&EnumValuesBoardType())[23] {
inline const BoardType (&EnumValuesBoardType())[25] {
static const BoardType values[] = {
BoardType::UNKNOWN,
BoardType::SLIMEVR_LEGACY,
Expand All @@ -1076,6 +1078,8 @@ inline const BoardType (&EnumValuesBoardType())[23] {
BoardType::ESP32C6DEVKITC1,
BoardType::GLOVE_IMU_SLIMEVR_DEV,
BoardType::GESTURES,
BoardType::SLIMEVR_v1_2,
BoardType::ESP32S3_SUPERMINI,
BoardType::DEV_RESERVED
};
return values;
Expand Down Expand Up @@ -1105,6 +1109,8 @@ inline const char *EnumNameBoardType(BoardType e) {
case BoardType::ESP32C6DEVKITC1: return "ESP32C6DEVKITC1";
case BoardType::GLOVE_IMU_SLIMEVR_DEV: return "GLOVE_IMU_SLIMEVR_DEV";
case BoardType::GESTURES: return "GESTURES";
case BoardType::SLIMEVR_v1_2: return "SLIMEVR_v1_2";
case BoardType::ESP32S3_SUPERMINI: return "ESP32S3_SUPERMINI";
case BoardType::DEV_RESERVED: return "DEV_RESERVED";
default: return "";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ private BoardType() { }
public static final int ESP32C6DEVKITC1 = 19;
public static final int GLOVE_IMU_SLIMEVR_DEV = 20;
public static final int GESTURES = 21;
public static final int SLIMEVR_v1_2 = 22;
public static final int ESP32S3_SUPERMINI = 23;
public static final int DEV_RESERVED = 250;
}

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class BoardType private constructor() {
const val ESP32C6DEVKITC1: UShort = 19u
const val GLOVEIMUSLIMEVRDEV: UShort = 20u
const val GESTURES: UShort = 21u
const val SLIMEVRV12: UShort = 22u
const val ESP32S3SUPERMINI: UShort = 23u
const val DEVRESERVED: UShort = 250u
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub const ENUM_MIN_BOARD_TYPE: u16 = 0;
pub const ENUM_MAX_BOARD_TYPE: u16 = 250;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_BOARD_TYPE: [BoardType; 23] = [
pub const ENUM_VALUES_BOARD_TYPE: [BoardType; 25] = [
BoardType::UNKNOWN,
BoardType::SLIMEVR_LEGACY,
BoardType::SLIMEVR_DEV,
Expand All @@ -38,6 +38,8 @@ pub const ENUM_VALUES_BOARD_TYPE: [BoardType; 23] = [
BoardType::ESP32C6DEVKITC1,
BoardType::GLOVE_IMU_SLIMEVR_DEV,
BoardType::GESTURES,
BoardType::SLIMEVR_v1_2,
BoardType::ESP32S3_SUPERMINI,
BoardType::DEV_RESERVED,
];

Expand Down Expand Up @@ -68,6 +70,8 @@ impl BoardType {
pub const ESP32C6DEVKITC1: Self = Self(19);
pub const GLOVE_IMU_SLIMEVR_DEV: Self = Self(20);
pub const GESTURES: Self = Self(21);
pub const SLIMEVR_v1_2: Self = Self(22);
pub const ESP32S3_SUPERMINI: Self = Self(23);
pub const DEV_RESERVED: Self = Self(250);

pub const ENUM_MIN: u16 = 0;
Expand Down Expand Up @@ -95,6 +99,8 @@ impl BoardType {
Self::ESP32C6DEVKITC1,
Self::GLOVE_IMU_SLIMEVR_DEV,
Self::GESTURES,
Self::SLIMEVR_v1_2,
Self::ESP32S3_SUPERMINI,
Self::DEV_RESERVED,
];
/// Returns the variant's name or "" if unknown.
Expand Down Expand Up @@ -122,6 +128,8 @@ impl BoardType {
Self::ESP32C6DEVKITC1 => Some("ESP32C6DEVKITC1"),
Self::GLOVE_IMU_SLIMEVR_DEV => Some("GLOVE_IMU_SLIMEVR_DEV"),
Self::GESTURES => Some("GESTURES"),
Self::SLIMEVR_v1_2 => Some("SLIMEVR_v1_2"),
Self::ESP32S3_SUPERMINI => Some("ESP32S3_SUPERMINI"),
Self::DEV_RESERVED => Some("DEV_RESERVED"),
_ => None,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ export enum BoardType {
ESP32C6DEVKITC1 = 19,
GLOVE_IMU_SLIMEVR_DEV = 20,
GESTURES = 21,
SLIMEVR_v1_2 = 22,
ESP32S3_SUPERMINI = 23,
DEV_RESERVED = 250
}
2 changes: 2 additions & 0 deletions schema/datatypes/hardware_info.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ enum BoardType: uint16 {
ESP32C6DEVKITC1,
GLOVE_IMU_SLIMEVR_DEV,
GESTURES,
SLIMEVR_v1_2,
ESP32S3_SUPERMINI,
DEV_RESERVED = 250,
}

Expand Down