USBUART
A library for reading/wring data via USB-UART adapters
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules
Classes | Public Member Functions | List of all members
usbuart::driver Class Referenceabstract

USB-to-UART driver interface. More...

Inherited by usbuart::generic.

Classes

class  factory
 Driver factory registrar TO register a factory: More...
 

Public Member Functions

virtual const interfacegetifc () const noexcept=0
 
virtual void setup (const eia_tia_232_info &) const =0 throw (error_t)
 setup protocol on the hardware level
 
virtual void setbaudrate (baudrate_t) const =0 throw (error_t)
 set baud rate only, keep other protocol properties intact
 
virtual void reset () const =0 throw (error_t)
 set baud rate only, keep other protocol properties intact
 
virtual void sendbreak () const =0 throw (error_t)
 Send break.
 
virtual void read_callback (libusb_transfer *xfer, size_t &pos) noexcept=0
 called on read transfer completion must fill pos with position of first payload data return true if transfer resubmitted
 
virtual void write_callback (libusb_transfer *writexfer) noexcept=0
 called on write transfer completion
 
virtual void prepare_write (libusb_transfer *xfer)=0 throw (error_t)
 called before first byte is actually written to xfer buffer so that the driver can place hardware specific payload, (if any)
 
virtual libusb_device_handle * handle () const noexcept=0
 Returns handle of associated USB device.
 

Detailed Description

Definition at line 55 of file usbuart.hpp.


The documentation for this class was generated from the following file: