From 3793e32ebd175fc0590bcb2308e401a584f548fd Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Sat, 29 Jan 2022 19:20:42 +0300 Subject: [PATCH] sinowealth: put a macro into an enum --- src/driver-sinowealth.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/driver-sinowealth.c b/src/driver-sinowealth.c index 5dafa6d3..23ccd736 100644 --- a/src/driver-sinowealth.c +++ b/src/driver-sinowealth.c @@ -50,8 +50,6 @@ _Static_assert(sizeof(enum sinowealth_command_id) == sizeof(uint8_t), "Invalid s #define SINOWEALTH_CONFIG_SIZE_MAX 167 #define SINOWEALTH_CONFIG_SIZE_MIN 131 -#define SINOWEALTH_XY_INDEPENDENT 0b1000 - /* The PC software only goes down to 400, but the PMW3360 doesn't care */ #define SINOWEALTH_DPI_MIN 100 #define SINOWEALTH_DPI_STEP 100 @@ -68,6 +66,14 @@ _Static_assert(sizeof(enum sinowealth_command_id) == sizeof(uint8_t), "Invalid s */ #define SINOWEALTH_NUM_PROFILES 1 +/* Bit mask for @ref sinowealth_config_report.config. + * + * This naming may be incorrect as it's not actually known waht the other bits do. + */ +enum sinowealth_config_data_mask { + SINOWEALTH_XY_INDEPENDENT = 0b1000, +}; + /* Color data the way mouse stores it. * * @ref sinowealth_raw_to_color.