Преглед на файлове

Add description of keyboard report in report.h

keymap_in_eeprom
tmk преди 10 години
родител
ревизия
ac1acca8d7
променени са 1 файла, в които са добавени 20 реда и са изтрити 0 реда
  1. 20
    0
      common/report.h

+ 20
- 0
common/report.h Целия файл

extern "C" { extern "C" {
#endif #endif


/*
* keyboard report is 8-byte array retains state of 8 modifiers and 6 keys.
*
* byte |0 |1 |2 |3 |4 |5 |6 |7
* -----+--------+--------+--------+--------+--------+--------+--------+--------
* desc |mods |reserved|keys[0] |keys[1] |keys[2] |keys[3] |keys[4] |keys[5]
*
* It is exended to 16 bytes to retain 120keys+8mods when NKRO mode.
*
* byte |0 |1 |2 |3 |4 |5 |6 |7 ... |15
* -----+--------+--------+--------+--------+--------+--------+--------+-------- +--------
* desc |mods |bits[0] |bits[1] |bits[2] |bits[3] |bits[4] |bits[5] |bits[6] ... |bit[14]
*
* mods retains state of 8 modifiers.
*
* bit |0 |1 |2 |3 |4 |5 |6 |7
* -----+--------+--------+--------+--------+--------+--------+--------+--------
* desc |Lcontrol|Lshift |Lalt |Lgui |Rcontrol|Rshift |Ralt |Rgui
*
*/
typedef union { typedef union {
uint8_t raw[REPORT_SIZE]; uint8_t raw[REPORT_SIZE];
struct { struct {