typedef.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package remdeshid
  2. // Operation Types
  3. const (
  4. OPR_TYPE_RESERVED = 0x00
  5. OPR_TYPE_KEYBOARD_WRITE = 0x01
  6. OPR_TYPE_MOUSE_WRITE = 0x02
  7. OPR_TYPE_SWITCH_WRITE = 0x03
  8. OPR_TYPE_LED_WRITE = 0x04
  9. OPR_TYPE_RESET_INSTR_COUNT = 0xFE
  10. OPR_TYPE_DATA_RESET = 0xFF
  11. )
  12. // Operation Sub-types
  13. const (
  14. SUBTYPE_RESERVED = 0x00
  15. )
  16. // Keyboard Subtypes
  17. const (
  18. SUBTYPE_KEYBOARD_ASCII_WRITE = 0x01
  19. SUBTYPE_KEYBOARD_ASCII_PRESS = 0x02
  20. SUBTYPE_KEYBOARD_ASCII_RELEASE = 0x03
  21. SUBTYPE_KEYBOARD_MODIFIER_SET = 0x04
  22. SUBTYPE_KEYBOARD_MODIFIER_CLEAR = 0x05
  23. SUBTYPE_KEYBOARD_FUNCTKEY_WRITE = 0x06
  24. SUBTYPE_KEYBOARD_OTHERKEY_PRESS = 0x07
  25. SUBTYPE_KEYBOARD_OTHERKEY_RELEASE = 0x08
  26. SUBTYPE_KEYBOARD_SPECIAL_CTRLALTDEL = 0xFD
  27. SUBTYPE_KEYBOARD_SPECIAL_RESET = 0xFE
  28. SUBTYPE_KEYBOARD_SPECIAL_RESERVED = 0xFF
  29. )
  30. // Response Codes
  31. const (
  32. RESP_OK = 0x00
  33. RESP_UNKNOWN_OPR = 0x01
  34. RESP_INVALID_OPR_TYPE = 0x02
  35. RESP_INVALID_KEY_VALUE = 0x03
  36. RESP_NOT_IMPLEMENTED = 0x04
  37. RESP_START_OF_DEBUG_MSG = 0xE0
  38. RESP_END_OF_DEBUG_MSG = 0xE1
  39. RESP_START_OF_ERR_MSG = 0xEE
  40. RESP_END_OF_ERR_MSG = 0xEF
  41. )