diff options
| author | François Cartegnie <281376+fcartegnie@users.noreply.github.com> | 2024-08-20 13:43:09 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-20 13:43:09 +0700 |
| commit | f5874d607315ff88b27414299089b8528b5bb07c (patch) | |
| tree | 9db23b8e6cdfb06d8bab77e83224e604f20c4629 /src/usb/usb.h | |
| parent | b25d62d1362cfd711e6617a9212e3eddc4e9fddd (diff) | |
| parent | c3912e01a2767334103cd139d875d50c834f3f05 (diff) | |
Merge pull request #35 from kienvo/usb
feat: Receive data over USB
Diffstat (limited to 'src/usb/usb.h')
| -rw-r--r-- | src/usb/usb.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/usb/usb.h b/src/usb/usb.h new file mode 100644 index 0000000..f1d41f9 --- /dev/null +++ b/src/usb/usb.h @@ -0,0 +1,16 @@ +#ifndef __USB_H__ +#define __USB_H__ + +#include <stdint.h> + +void cdc_fill_IN(uint8_t *buf, uint8_t len); +int cdc_tx_poll(uint8_t *buf, int len, uint16_t timeout_ms); +void cdc_onWrite(void (*cb)(uint8_t *buf, uint16_t len)); + +void hiddev_fill_IN(uint8_t *buf, uint8_t len); +int hiddev_tx_poll(uint8_t *buf, int len, uint16_t timeout_ms); +void hiddev_onWrite(void (*cb)(uint8_t *buf, uint16_t len)); + +void usb_start(); + +#endif /* __USB_H__ */ |