linux specific implementation of fusb_ephandle using usbdevice_fs
More...
#include <fusb_linux.h>
List of all members.
Detailed Description
linux specific implementation of fusb_ephandle using usbdevice_fs
Constructor & Destructor Documentation
fusb_ephandle_linux::fusb_ephandle_linux |
( |
fusb_devhandle_linux * |
dh, |
|
|
int |
endpoint, |
|
|
bool |
input_p, |
|
|
int |
block_size = 0 , |
|
|
int |
nblocks = 0 |
|
) |
| |
virtual fusb_ephandle_linux::~fusb_ephandle_linux |
( |
| ) |
[virtual] |
Member Function Documentation
void fusb_ephandle_linux::completed_list_add |
( |
usbdevfs_urb * |
urb | ) |
|
usbdevfs_urb* fusb_ephandle_linux::completed_list_get |
( |
| ) |
|
void fusb_ephandle_linux::free_list_add |
( |
usbdevfs_urb * |
urb | ) |
|
usbdevfs_urb* fusb_ephandle_linux::free_list_get |
( |
| ) |
|
virtual int fusb_ephandle_linux::read |
( |
void * |
buffer, |
|
|
int |
nbytes |
|
) |
| [virtual] |
- Returns:
- number of bytes read or -1 if error. number of bytes read will be <= nbytes. Will block if no input available.
Implements fusb_ephandle.
virtual bool fusb_ephandle_linux::start |
( |
| ) |
[virtual] |
virtual bool fusb_ephandle_linux::stop |
( |
| ) |
[virtual] |
virtual void fusb_ephandle_linux::wait_for_completion |
( |
| ) |
[virtual] |
virtual int fusb_ephandle_linux::write |
( |
const void * |
buffer, |
|
|
int |
nbytes |
|
) |
| [virtual] |
- Returns:
nbytes
if write was successfully enqueued, else -1. Will block if no free buffers available.
Implements fusb_ephandle.
The documentation for this class was generated from the following file: