![]() |
OpenZWave Library
1.5.0
|
#include <Controller.h>
Public Member Functions | |
Controller () | |
virtual | ~Controller () |
void | PlayInitSequence (Driver *_driver) |
virtual bool | Open (string const &_controllerName)=0 |
virtual bool | Close ()=0 |
virtual uint32 | Write (uint8 *_buffer, uint32 _length)=0 |
uint32 | Read (uint8 *_buffer, uint32 _length) |
![]() | |
Stream (uint32 _bufferSize) | |
void | SetSignalThreshold (uint32 _size) |
bool | Get (uint8 *_buffer, uint32 _size) |
bool | Put (uint8 *_buffer, uint32 _size) |
uint32 | GetDataSize () const |
void | Purge () |
![]() | |
void | AddWatcher (pfnWaitNotification_t _callback, void *_context) |
void | RemoveWatcher (pfnWaitNotification_t _callback, void *_context) |
![]() | |
Ref () | |
void | AddRef () |
int32 | Release () |
Additional Inherited Members | |
![]() | |
enum | { Timeout_Immediate = 0, Timeout_Infinite = -1 } |
typedef void(* | pfnWaitNotification_t) (void *_context) |
![]() | |
static int32 | Single (Wait *_object, int32 _timeout=-1) |
static int32 | Multiple (Wait **_objects, uint32 _numObjects, int32 _timeout=-1) |
![]() | |
void | LogData (uint8 *_buffer, uint32 _size, const string &_function) |
virtual bool | IsSignalled () |
~Stream () | |
![]() | |
Wait () | |
virtual | ~Wait () |
void | Notify () |
![]() | |
virtual | ~Ref () |
|
inline |
Consructor. Creates the controller object.
|
inlinevirtual |
Destructor. Destroys the controller object.
|
pure virtual |
Close a controller. Closes the controller.
Implemented in OpenZWave::SerialController, OpenZWave::HidController, and OpenZWave::HidController.
|
pure virtual |
Open a controller. Attempts to open a controller and initialize it with the specified paramters.
_controllerName | The name of the port to open. For example, ttyS1 on Linux, or \. in Windows. |
Implemented in OpenZWave::SerialController, OpenZWave::HidController, and OpenZWave::HidController.
void Controller::PlayInitSequence | ( | Driver * | _driver | ) |
Queues a set of Z-Wave messages in the correct order needed to initialize the Controller implementation.
Pointer | to the driver object that will handle the messages. |
Write to a controller. Attempts to write data to an open controller.
_buffer | Pointer to a block of memory containing the data to be written. |
_length | Length in bytes of the data. |
Implemented in OpenZWave::SerialController, OpenZWave::HidController, and OpenZWave::HidController.