1
0
forked from drath/libratbag

sinowealth: add numeric IDs to sensor types

These IDs match the ones in SinoWealth's configuration software.
This commit is contained in:
Yaroslav Chvanov
2022-04-21 19:15:17 +03:00
committed by staticssleever668
parent 16a1028e1d
commit d133d30f62

View File

@@ -105,11 +105,14 @@ struct sinowealth_color {
} __attribute__((packed));
_Static_assert(sizeof(struct sinowealth_color) == 3, "Invalid size");
/* Sensor IDs used in SinoWealth firmware and software. */
enum sinowealth_sensor {
PWM3327,
PWM3360,
PWM3389,
};
SINOWEALTH_SENSOR_NONE,
PWM3360 = 0x06,
PWM3327 = 0x0e,
PWM3389 = 0x0f,
} __attribute__((packed));
_Static_assert(sizeof(enum sinowealth_sensor) == sizeof(uint8_t), "Invalid sensor enum size");
enum sinowealth_rgb_effect {
RGB_OFF = 0,