Represents a digital input device.
More...
#include <DigitalInputArray.h>
|
class | DigitalInputArrayImpl |
|
Represents a digital input device.
static unsigned int rec::robotino::api2::DigitalInputArray::numDigitalInputs |
( |
| ) |
|
|
static |
- Returns
- Returns the number of digital inputs
- Exceptions
-
void rec::robotino::api2::DigitalInputArray::processEvents |
( |
| ) |
|
Call this function from your main thread to get the virtual DigitalInputArray functions called. The virtual functions are called directly by a call of this function
- Exceptions
-
- See also
- Com::processEvents
void rec::robotino::api2::DigitalInputArray::setComId |
( |
const ComId & |
id | ) |
|
Sets the associated communication object.
- Parameters
-
id | The id of the associated communication object. |
- Exceptions
-
void rec::robotino::api2::DigitalInputArray::values |
( |
int * |
readings | ) |
const |
Returns the current value of the specified input device.
- Parameters
-
[out] | readings | The current readings of all digital inputs |
- Returns
- The current value of the specified digital input
- Exceptions
-
- See also
- setInputNumber(), ComObject::setComId
virtual void rec::robotino::api2::DigitalInputArray::valuesChangedEvent |
( |
const int * |
values, |
|
|
unsigned int |
size |
|
) |
| |
|
virtual |
Called when value changed
- Parameters
-
values | The state of all digital inputs |
size | The number of elements in values |
- Exceptions
-
- See also
- Com::processEvents
The documentation for this class was generated from the following file: