|
Universal Software Radio Peripheral
|
generic implementation of fusb_ephandle using only libusb More...
#include <fusb_ra_wb.h>


Public Member Functions | |
| fusb_ephandle_ra_wb (fusb_devhandle_ra_wb *dh, int endpoint, bool input_p, int block_size=0, int nblocks=0) | |
| virtual | ~fusb_ephandle_ra_wb () |
| virtual bool | start () |
| begin streaming i/o | |
| virtual bool | stop () |
| stop streaming i/o | |
| virtual int | write (const void *buffer, int nbytes) |
| virtual int | read (void *buffer, int nbytes) |
| virtual void | wait_for_completion () |
generic implementation of fusb_ephandle using only libusb
| fusb_ephandle_ra_wb::fusb_ephandle_ra_wb | ( | fusb_devhandle_ra_wb * | dh, |
| int | endpoint, | ||
| bool | input_p, | ||
| int | block_size = 0, |
||
| int | nblocks = 0 |
||
| ) |
| fusb_ephandle_ra_wb::~fusb_ephandle_ra_wb | ( | ) | [virtual] |
| int fusb_ephandle_ra_wb::read | ( | void * | buffer, |
| int | nbytes | ||
| ) | [virtual] |
Implements fusb_ephandle.
References fusb_ephandle::d_started, fusb_ephandle::d_input_p, fusb_devhandle::get_usb_dev_handle(), and fusb_ephandle::d_endpoint.
Referenced by start().
| bool fusb_ephandle_ra_wb::start | ( | ) | [virtual] |
begin streaming i/o
Implements fusb_ephandle.
References fusb_ephandle::d_started, fusb_ephandle::d_input_p, write(), fusb_devhandle::get_usb_dev_handle(), fusb_ephandle::d_endpoint, read(), fusb_ephandle::d_block_size, and fusb_ephandle::d_nblocks.
| bool fusb_ephandle_ra_wb::stop | ( | ) | [virtual] |
stop streaming i/o
Implements fusb_ephandle.
References fusb_ephandle::d_input_p, fusb_devhandle::get_usb_dev_handle(), fusb_ephandle::d_endpoint, and fusb_ephandle::d_started.
| void fusb_ephandle_ra_wb::wait_for_completion | ( | ) | [virtual] |
| int fusb_ephandle_ra_wb::write | ( | const void * | buffer, |
| int | nbytes | ||
| ) | [virtual] |
nbytes if write was successfully enqueued, else -1. Will block if no free buffers available. Implements fusb_ephandle.
References fusb_ephandle::d_started, fusb_ephandle::d_input_p, fusb_devhandle::get_usb_dev_handle(), and fusb_ephandle::d_endpoint.
Referenced by start().
1.7.5