PlayerCc::DioProxy Class Reference
[Proxies]
#include <playerc++.h>
Inheritance diagram for PlayerCc::DioProxy:
Detailed Description
TheDioProxy
class is used to read from a dio (digital I/O) device.
Definition at line 578 of file playerc++.h.
Public Member Functions | |
DioProxy (PlayerClient *aPc, uint32_t aIndex=0) | |
constructor | |
~DioProxy () | |
destructor | |
uint32_t | GetCount () const |
The number of valid digital inputs. | |
uint32_t | GetDigin () const |
A bitfield of the current digital inputs. | |
bool | GetInput (uint32_t aIndex) const |
Get a specific bit. | |
void | SetOutput (uint32_t aCount, uint32_t aDigout) |
Set the output to the bitfield aDigout. | |
uint32_t | operator[] (uint32_t aIndex) const |
DioProxy data access operator. | |
Private Member Functions | |
void | Subscribe (uint32_t aIndex) |
void | Unsubscribe () |
Private Attributes | |
playerc_dio_t * | mDevice |
Member Function Documentation
uint32_t PlayerCc::DioProxy::operator[] | ( | uint32_t | aIndex | ) | const [inline] |
DioProxy data access operator.
This operator provides an alternate way of access the dio data. For example, given a DioProxy
named dp
, the following expressions are equivalent: dp.GetInput(0)
and dp
[0].
Definition at line 610 of file playerc++.h.
References GetInput().
Here is the call graph for this function:
The documentation for this class was generated from the following file: