2015-08-23 02:51:10 -04:00
|
|
|
#ifndef _hiddata_h__
|
|
|
|
#define _hiddata_h__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "usb.h"
|
|
|
|
|
2016-10-10 14:19:58 -04:00
|
|
|
struct hiddata_ops {
|
|
|
|
void (*suspendPolling)(uint8_t suspend);
|
|
|
|
void (*forceVibration)(uint8_t channel, uint8_t force);
|
2017-11-22 09:37:42 -05:00
|
|
|
uint8_t (*getSupportedModes)(uint8_t *dst);
|
2016-10-10 14:19:58 -04:00
|
|
|
};
|
2015-08-23 02:51:10 -04:00
|
|
|
|
2016-10-10 14:19:58 -04:00
|
|
|
uint16_t hiddata_get_report(void *ctx, struct usb_request *rq, const uint8_t **dat);
|
|
|
|
uint8_t hiddata_set_report(void *ctx, const struct usb_request *rq, const uint8_t *dat, uint16_t len);
|
|
|
|
|
|
|
|
void hiddata_doTask(struct hiddata_ops *ops);
|
2015-08-23 02:51:10 -04:00
|
|
|
|
|
|
|
#endif
|