PlayerCc::DioProxy Class Reference
[Proxies]
The DioProxy
class is used to read from a dio (digital I/O) device.
More...
#include <playerc++.h>
Public Member Functions | |
DioProxy (PlayerClient *aPc, uint aIndex=0) | |
constructor | |
~DioProxy () | |
destructor | |
uint | GetCount () const |
The number of valid digital inputs. | |
uint32_t | GetDigin () const |
A bitfield of the current digital inputs. | |
bool | GetInput (uint aIndex) const |
Get a specific bit. | |
void | SetOutput (uint aCount, uint32_t aDigout) |
Set the output to the bitfield aDigout. | |
uint | operator[] (uint aIndex) const |
DioProxy data access operator. |
Detailed Description
TheDioProxy
class is used to read from a dio (digital I/O) device. Member Function Documentation
uint PlayerCc::DioProxy::operator[] | ( | uint | 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].
References GetInput().
The documentation for this class was generated from the following file: