transport_sync.h 779 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. extern char keylog_str[OLED_KEYLOGGER_LENGTH];
  8. #endif
  9. typedef union {
  10. uint32_t raw;
  11. struct {
  12. bool audio_enable :1;
  13. bool audio_clicky_enable :1;
  14. bool tap_toggling :1;
  15. uint8_t unicode_mode :3;
  16. bool swap_hands :1;
  17. bool host_driver_disabled :1;
  18. uint8_t unicode_typing_mode :3;
  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);