diff options
Diffstat (limited to 'firmware/export/usb_drv.h')
-rw-r--r-- | firmware/export/usb_drv.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/export/usb_drv.h b/firmware/export/usb_drv.h index 6a37144c1a..430f03bdc7 100644 --- a/firmware/export/usb_drv.h +++ b/firmware/export/usb_drv.h | |||
@@ -24,16 +24,17 @@ | |||
24 | void usb_drv_init(void); | 24 | void usb_drv_init(void); |
25 | void usb_drv_exit(void); | 25 | void usb_drv_exit(void); |
26 | void usb_drv_int(void); | 26 | void usb_drv_int(void); |
27 | void usb_drv_stall(int endpoint, bool stall); | 27 | void usb_drv_stall(int endpoint, bool stall,bool in); |
28 | bool usb_drv_stalled(int endpoint,bool in); | ||
28 | int usb_drv_send(int endpoint, void* ptr, int length); | 29 | int usb_drv_send(int endpoint, void* ptr, int length); |
30 | int usb_drv_send_nonblocking(int endpoint, void* ptr, int length); | ||
29 | int usb_drv_recv(int endpoint, void* ptr, int length); | 31 | int usb_drv_recv(int endpoint, void* ptr, int length); |
30 | void usb_drv_ack(struct usb_ctrlrequest* req); | 32 | void usb_drv_ack(struct usb_ctrlrequest* req); |
31 | void usb_drv_set_address(int address); | 33 | void usb_drv_set_address(int address); |
32 | void usb_drv_reset_endpoint(int endpoint, bool send); | 34 | void usb_drv_reset_endpoint(int endpoint, bool send); |
33 | void usb_drv_wait(int endpoint, bool send); | 35 | void usb_drv_wait(int endpoint, bool send); |
34 | bool usb_drv_powered(void); | 36 | bool usb_drv_powered(void); |
35 | int usb_drv_get_last_transfer_status(void); | ||
36 | int usb_drv_get_last_transfer_length(void); | ||
37 | int usb_drv_port_speed(void); | 37 | int usb_drv_port_speed(void); |
38 | void usb_drv_cancel_all_transfers(void); | ||
38 | 39 | ||
39 | #endif | 40 | #endif |