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.

18 lines
493 B

  1. #ifndef _hiddata_h__
  2. #define _hiddata_h__
  3. #include <stdint.h>
  4. #include "usb.h"
  5. struct hiddata_ops {
  6. void (*suspendPolling)(uint8_t suspend);
  7. void (*forceVibration)(uint8_t channel, uint8_t force);
  8. uint8_t (*getSupportedModes)(uint8_t *dst);
  9. };
  10. uint16_t hiddata_get_report(void *ctx, struct usb_request *rq, const uint8_t **dat);
  11. uint8_t hiddata_set_report(void *ctx, const struct usb_request *rq, const uint8_t *dat, uint16_t len);
  12. void hiddata_doTask(struct hiddata_ops *ops);
  13. #endif