Represents a digital input device.
More...
#include <DigitalInput.h>
Represents a digital input device.
static unsigned int rec::robotino::api2::DigitalInput::numDigitalInputs |
( |
| ) |
|
|
static |
- Returns
- Returns the number of digital inputs
- Exceptions
-
void rec::robotino::api2::DigitalInput::processEvents |
( |
| ) |
|
Call this function from your main thread to get the virtual DigitalInput functions called. The virtual functions are called directly by a call of this function
- Exceptions
-
- See also
- Com::processEvents
void rec::robotino::api2::DigitalInput::setComId |
( |
const ComId & |
id | ) |
|
Sets the associated communication object.
- Parameters
-
id | The id of the associated communication object. |
- Exceptions
-
void rec::robotino::api2::DigitalInput::setInputNumber |
( |
unsigned int |
n | ) |
|
Sets the number of this digital input device.
- Parameters
-
n | The input number. Range [0; Robotstate::numDigitalInputs-1] |
- Exceptions
-
bool rec::robotino::api2::DigitalInput::value |
( |
| ) |
const |
Returns the current value of the specified input device.
- Returns
- The current value of the specified digital input
- Exceptions
-
- See also
- setInputNumber(), ComObject::setComId
virtual void rec::robotino::api2::DigitalInput::valueChangedEvent |
( |
bool |
value | ) |
|
|
virtual |
The documentation for this class was generated from the following file: