2013-05-27 22:11:48 -06:00
|
|
|
#ifndef _USB_H_
|
|
|
|
#define _USB_H_
|
|
|
|
|
2013-09-08 17:45:44 -06:00
|
|
|
#include <stdint.h>
|
2013-05-27 22:11:48 -06:00
|
|
|
#include <sys/select.h>
|
|
|
|
|
2013-09-08 17:45:44 -06:00
|
|
|
int usb_setup(char *name, size_t namelen);
|
2017-01-16 13:09:02 -07:00
|
|
|
void usb_finish();
|
|
|
|
void usb_interrupting();
|
2013-05-27 22:11:48 -06:00
|
|
|
void usb_fd_setup(int *nfds, fd_set *rfds, fd_set *wfds);
|
|
|
|
void usb_check_fds(fd_set *rfds, fd_set *wfds);
|
2013-09-08 17:45:44 -06:00
|
|
|
void usb_write(uint8_t *data, size_t datalen);
|
2013-05-27 22:11:48 -06:00
|
|
|
|
|
|
|
#endif
|