hdjd/usb.h

13 lines
282 B
C
Raw Normal View History

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);
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