transport_sync.h 820 B

1234567891011121314151617181920212223242526272829
  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. bool is_oled_enabled :1;
  20. };
  21. } user_runtime_config_t;
  22. extern user_runtime_config_t user_state;
  23. void keyboard_post_init_transport_sync(void);
  24. void housekeeping_task_transport_sync(void);