Represents a USB ControllerController is derived from Stream rather than containing one, so that we can use its Wait abilities without having to duplicate them here. The stream is used for input. Buffering of output is handled by the OS.
More...
#include <Controller.h>
Represents a USB Controller
Controller is derived from Stream rather than containing one, so that we can use its Wait abilities without having to duplicate them here. The stream is used for input. Buffering of output is handled by the OS.
◆ Controller()
| OpenZWave::Internal::Platform::Controller::Controller |
( |
| ) |
|
|
inline |
Consructor. Creates the controller object.
◆ ~Controller()
| virtual OpenZWave::Internal::Platform::Controller::~Controller |
( |
| ) |
|
|
inlinevirtual |
Destructor. Destroys the controller object.
◆ Close()
| virtual bool OpenZWave::Internal::Platform::Controller::Close |
( |
| ) |
|
|
pure virtual |
◆ Open()
| virtual bool OpenZWave::Internal::Platform::Controller::Open |
( |
string const & |
_controllerName | ) |
|
|
pure virtual |
◆ Read()
| uint32 OpenZWave::Internal::Platform::Controller::Read |
( |
uint8 * |
_buffer, |
|
|
uint32 |
_length |
|
) |
| |
Read from a controller. Attempts to read data from an open controller.
- Parameters
-
| _buffer | Pointer to a block of memory large enough to hold the requested data. |
| _length | Length in bytes of the data to be read. |
- Returns
- The number of bytes read.
- See also
- Write, Open, Close
◆ Write()
| virtual uint32 OpenZWave::Internal::Platform::Controller::Write |
( |
uint8 * |
_buffer, |
|
|
uint32 |
_length |
|
) |
| |
|
pure virtual |
Write to a controller. Attempts to write data to an open controller.
- Parameters
-
| _buffer | Pointer to a block of memory containing the data to be written. |
| _length | Length in bytes of the data. |
- Returns
- The number of bytes written.
- See also
- Read, Open, Close
Implemented in OpenZWave::Internal::Platform::SerialController.
The documentation for this class was generated from the following files: