|
gusimplewhiteboard
|
Class for controlling and getting the status of IO pins. More...
#include <IOPins.hpp>
Public Member Functions | |
| bool | get (int pin) const |
| pin value setter More... | |
| void | set (int pin) |
| pin value setter More... | |
| void | clr (int pin) |
| clear the given pin More... | |
| void | set (int pin, bool value) |
| set the given pin to the given value More... | |
| void | reset (int value=0) |
| set all pins to the given value More... | |
| bool | operator== (const IOPins &other) const |
| comparison operator More... | |
| IOPins (const std::string &pinvalues) | |
| string constructor More... | |
| std::string | description () const |
| convert to a string More... | |
| void | from_string (const std::string &str) |
| convert from a string More... | |
Public Member Functions inherited from wb_io_pins | |
| ARRAY_PROPERTY (uint8_t, pins,(sizeof(gu_simple_message))) wb_io_pins(int value=0) | |
| bit vector of I/O pin values More... | |
Class for controlling and getting the status of IO pins.
This is implemented as a bit vector with one bit per pin.
Definition at line 74 of file IOPins.hpp.
|
inline |
|
inline |
clear the given pin
Definition at line 84 of file IOPins.hpp.
References IO_PIN_CLR.
Referenced by from_string(), and set().
|
inline |
convert to a string
Definition at line 100 of file IOPins.hpp.
References IO_PIN_BIT_SIZE, and IO_PIN_GET.
|
inline |
convert from a string
Definition at line 116 of file IOPins.hpp.
References clr(), IO_PIN_BIT_SIZE, and set().
Referenced by IOPins().
|
inline |
|
inline |
comparison operator
Definition at line 93 of file IOPins.hpp.
|
inline |
set all pins to the given value
Definition at line 90 of file IOPins.hpp.
|
inline |
pin value setter
Definition at line 81 of file IOPins.hpp.
References IO_PIN_SET.
Referenced by from_string().
|
inline |