Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

usb_extra.h 528B

1234567891011121314151617181920212223242526
  1. #ifndef USB_EXTRA_H
  2. #define USB_EXTRA_H 1
  3. #include <stdint.h>
  4. #include "usb.h"
  5. #define EXTRA_INTERFACE 3
  6. #define EXTRA_ENDPOINT 4
  7. #define EXTRA_SIZE 2
  8. #define EXTRA_BUFFER EP_DOUBLE_BUFFER
  9. // http://www.microsoft.com/whdc/archive/w2kbd.mspx
  10. #define AUDIO_VOL_UP (1<<0)
  11. #define AUDIO_VOL_DOWN (1<<1)
  12. #define AUDIO_MUTE (1<<2)
  13. #define SYSTEM_POWER_DOWN (1<<0)
  14. #define SYSTEM_SLEEP (1<<1)
  15. #define SYSTEM_WAKE_UP (1<<2)
  16. int8_t usb_extra_audio_send(uint8_t bits);
  17. int8_t usb_extra_system_send(uint8_t bits);
  18. #endif