diff options
author | 2017-06-19 14:04:19 -0400 | |
---|---|---|
committer | 2017-06-19 14:04:19 -0400 | |
commit | e951317acbad8ef67a9da13b657e13e6c1d27e1d (patch) | |
tree | a9c616a4a7d91eaf38bef570c9487493ca2b2c2e /tmk_core/common/report.h | |
parent | 621ae42a6cb9f96b8c02a0094b36daf125c4e6ca (diff) | |
parent | 1aa0be4cf1d00f852150e2b2ed5e4c151aeeef3a (diff) | |
download | qmk_firmware-e951317acbad8ef67a9da13b657e13e6c1d27e1d.tar.gz |
Merge pull request #1409 from fredizzimo/full_unit_test
Take first baby steps towards testing the whole QMK
Diffstat (limited to 'tmk_core/common/report.h')
-rw-r--r-- | tmk_core/common/report.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tmk_core/common/report.h b/tmk_core/common/report.h index 8fb28b6ce..899fc524c 100644 --- a/tmk_core/common/report.h +++ b/tmk_core/common/report.h @@ -174,6 +174,20 @@ typedef struct { (key == KC_WWW_REFRESH ? AC_REFRESH : \ (key == KC_WWW_FAVORITES ? AC_BOOKMARKS : 0))))))))))))))))))))) +uint8_t has_anykey(report_keyboard_t* keyboard_report); +uint8_t get_first_key(report_keyboard_t* keyboard_report); + +void add_key_byte(report_keyboard_t* keyboard_report, uint8_t code); +void del_key_byte(report_keyboard_t* keyboard_report, uint8_t code); +#ifdef NKRO_ENABLE +void add_key_bit(report_keyboard_t* keyboard_report, uint8_t code); +void del_key_bit(report_keyboard_t* keyboard_report, uint8_t code); +#endif + +void add_key_to_report(report_keyboard_t* keyboard_report, int8_t key); +void del_key_from_report(report_keyboard_t* keyboard_report, uint8_t key); +void clear_keys_from_report(report_keyboard_t* keyboard_report); + #ifdef __cplusplus } #endif |