Public Member Functions | |
IO () | |
Constructor. | |
virtual Data | Read (unsigned long Length) |
Reads data synchronously. | |
virtual AsyncIO * | ReadAsync (unsigned long Length, unsigned int Flags=0) |
Reads data asynchronously. | |
virtual unsigned long | Write (Data Data) |
Writes data synchronously. | |
virtual AsyncIO * | WriteAsync (Data Data, unsigned int Flags=0) |
Writes data asynchronously. | |
Protected Attributes | |
unsigned long | m_Timeout |
Timeout for IO operations. |
EasyUSB::Detail::IO::IO | ( | ) |
Constructor.
virtual Data EasyUSB::Detail::IO::Read | ( | unsigned long | Length | ) | [virtual] |
Reads data synchronously.
Length | The number of bytes to read from the endpoint. |
DeviceLost | The device is not connected. | |
UnknownError | An unknown (windows) error occured. |
Reimplemented in EasyUSB::Endpoint.
virtual AsyncIO* EasyUSB::Detail::IO::ReadAsync | ( | unsigned long | Length, | |
unsigned int | Flags = 0 | |||
) | [virtual] |
Reads data asynchronously.
Length | The number of bytes to read from the endpoint. | |
Flags | Asynchronous send options. |
- | Same as WriteAsync. |
Reimplemented in EasyUSB::Endpoint.
virtual unsigned long EasyUSB::Detail::IO::Write | ( | Data | Data | ) | [virtual] |
Writes data asynchronously.
NotEnoughMemory | Not enough memory to complete the operation. | |
DeviceLost | The device is not connected. | |
UnknownError | An unknown (windows) error occured. |
Reimplemented in EasyUSB::Endpoint.
unsigned long EasyUSB::Detail::IO::m_Timeout [protected] |