aboutsummaryrefslogtreecommitdiff
path: root/src/usb/usb.h
diff options
context:
space:
mode:
authorDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-07-11 21:23:07 +0700
committerDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-07-11 22:18:56 +0700
commit49fc27a23e0f5ca46337493cdac02ee116f786e3 (patch)
treed46124776c6fcf295ef18a18f2f90c128e2369e0 /src/usb/usb.h
parent4f3b6f4283e0240060c04a137175cacfb385dc16 (diff)
usb: add hiddev and write to flash
Diffstat (limited to 'src/usb/usb.h')
-rw-r--r--src/usb/usb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usb/usb.h b/src/usb/usb.h
index 5946daf..a542e68 100644
--- a/src/usb/usb.h
+++ b/src/usb/usb.h
@@ -3,6 +3,10 @@
#include <stdint.h>
+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__ */