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::Controller::Controller |
( |
| ) |
|
|
inline |
Consructor. Creates the controller object.
§ ~Controller()
virtual OpenZWave::Controller::~Controller |
( |
| ) |
|
|
inlinevirtual |
Destructor. Destroys the controller object.
§ Close()
virtual bool OpenZWave::Controller::Close |
( |
| ) |
|
|
pure virtual |
§ Open()
virtual bool OpenZWave::Controller::Open |
( |
string const & |
_controllerName | ) |
|
|
pure virtual |
§ PlayInitSequence()
void Controller::PlayInitSequence |
( |
Driver * |
_driver | ) |
|
Queues a set of Z-Wave messages in the correct order needed to initialize the Controller implementation.
- Parameters
-
Pointer | to the driver object that will handle the messages. |
- See also
- Driver::Init
§ Read()
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()
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::SerialController, and OpenZWave::HidController.
The documentation for this class was generated from the following files: