alphatrack.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. struct alphatrack_icmd {
  2. unsigned char cmd[12];
  3. };
  4. struct alphatrack_ocmd {
  5. unsigned char cmd[8];
  6. };
  7. /* These are unused by the present driver but provide documentation for the
  8. * userspace API.
  9. */
  10. enum LightID {
  11. LIGHT_EQ = 0,
  12. LIGHT_OUT,
  13. LIGHT_F2,
  14. LIGHT_SEND,
  15. LIGHT_IN,
  16. LIGHT_F1,
  17. LIGHT_PAN,
  18. LIGHT_UNDEF1,
  19. LIGHT_UNDEF2,
  20. LIGHT_SHIFT,
  21. LIGHT_TRACKMUTE,
  22. LIGHT_TRACKSOLO,
  23. LIGHT_TRACKREC,
  24. LIGHT_READ,
  25. LIGHT_WRITE,
  26. LIGHT_ANYSOLO,
  27. LIGHT_AUTO,
  28. LIGHT_F4,
  29. LIGHT_RECORD,
  30. LIGHT_WINDOW,
  31. LIGHT_PLUGIN,
  32. LIGHT_F3,
  33. LIGHT_LOOP
  34. };
  35. #define BUTTONMASK_BATTERY 0x00004000
  36. #define BUTTONMASK_BACKLIGHT 0x00008000
  37. #define BUTTONMASK_FASTFORWARD 0x04000000
  38. #define BUTTONMASK_TRACKMUTE 0x00040000
  39. #define BUTTONMASK_TRACKSOLO 0x00800000
  40. #define BUTTONMASK_TRACKLEFT 0x80000000
  41. #define BUTTONMASK_RECORD 0x02000000
  42. #define BUTTONMASK_SHIFT 0x20000000
  43. #define BUTTONMASK_PUNCH 0x00800000
  44. #define BUTTONMASK_TRACKRIGHT 0x00020000
  45. #define BUTTONMASK_REWIND 0x01000000
  46. #define BUTTONMASK_STOP 0x10000000
  47. #define BUTTONMASK_LOOP 0x00010000
  48. #define BUTTONMASK_TRACKREC 0x00001000
  49. #define BUTTONMASK_PLAY 0x08000000
  50. #define BUTTONMASK_TOUCH1 0x00000008
  51. #define BUTTONMASK_TOUCH2 0x00000010
  52. #define BUTTONMASK_TOUCH3 0x00000020
  53. #define BUTTONMASK_PRESS1 0x00000009
  54. #define BUTTONMASK_PRESS2 0x00008010
  55. #define BUTTONMASK_PRESS3 0x00002020
  56. /* last 3 bytes are the slider position
  57. * 40 is the actual slider moving, the most sig bits, and 3 lsb
  58. */
  59. #define BUTTONMASK_FLIP 0x40000000
  60. #define BUTTONMASK_F1 0x00100000
  61. #define BUTTONMASK_F2 0x00400000
  62. #define BUTTONMASK_F3 0x00200000
  63. #define BUTTONMASK_F4 0x00080000
  64. #define BUTTONMASK_PAN 0x00000200
  65. #define BUTTONMASK_SEND 0x00000800
  66. #define BUTTONMASK_EQ 0x00004000
  67. #define BUTTONMASK_PLUGIN 0x00000400
  68. #define BUTTONMASK_AUTO 0x00000100
  69. /* #define BUTTONMASK_FOOTSWITCH FIXME */