diff options
author | Drashna Jael're <drashna@live.com> | 2021-10-15 22:32:41 -0700 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-10-15 22:32:41 -0700 |
commit | e5662aa53dc957e293a2201ebfd5d885144240a7 (patch) | |
tree | c04c70497191a1327801950ba8a729d6026f3c9c /users/drashna/transport_sync.h | |
parent | a27c949a32651c69037777a2dd3924910efb35f5 (diff) | |
parent | 9a0addc77e3e48b908b846fc78326d4a20c30bc9 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'users/drashna/transport_sync.h')
-rw-r--r-- | users/drashna/transport_sync.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/users/drashna/transport_sync.h b/users/drashna/transport_sync.h index 062df2bacc..70b6ea522b 100644 --- a/users/drashna/transport_sync.h +++ b/users/drashna/transport_sync.h @@ -19,12 +19,16 @@ #include "drashna.h" -__attribute__((aligned(8))) typedef struct { - bool audio_enable; - bool audio_clicky_enable; - bool tap_toggling; - bool unicode_mode; - bool swap_hands; +typedef union { + uint32_t raw; + struct { + bool audio_enable :1; + bool audio_clicky_enable :1; + bool tap_toggling :1; + bool unicode_mode :1; + bool swap_hands :1; + bool host_driver_disabled :1; + }; } user_runtime_config_t; extern user_runtime_config_t user_state; |