transport_sync.h 773 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "drashna.h"
  5. #ifdef OLED_ENABLE
  6. # include "oled/oled_stuff.h"
  7. #endif
  8. typedef union {
  9. uint32_t raw;
  10. struct {
  11. bool audio_enable :1;
  12. bool audio_clicky_enable :1;
  13. bool tap_toggling :1;
  14. uint8_t unicode_mode :3;
  15. bool swap_hands :1;
  16. bool host_driver_disabled :1;
  17. uint8_t unicode_typing_mode :3;
  18. bool is_oled_enabled :1;
  19. };
  20. } user_runtime_config_t;
  21. extern user_runtime_config_t user_state;
  22. void keyboard_post_init_transport_sync(void);
  23. void housekeeping_task_transport_sync(void);