![]() |
Doly C++ SDK v1.00
|
Functions | |
| int8_t | writePin (uint16_t id, uint8_t io_pin, GpioState state) |
| Write a GPIO state to an IO port pin. | |
| GpioState | readPin (uint16_t id, uint8_t io_pin) |
| Read the current GPIO state of an IO port pin. | |
| float | getVersion () |
| Get current library version. | |
| float IoControl::getVersion | ( | ) |
Get current library version.
Original note: format 0.XYZ (3 digits after major).
| GpioState IoControl::readPin | ( | uint16_t | id, |
| uint8_t | io_pin ) |
Read the current GPIO state of an IO port pin.
| id | User-defined identifier used for internal tracking/logging (can be any value). |
| io_pin | IO port pin number (valid range: 0..5). |
io_pin is invalid or a read error occurs, the returned value is implementation-defined (see underlying GPIO layer). | int8_t IoControl::writePin | ( | uint16_t | id, |
| uint8_t | io_pin, | ||
| GpioState | state ) |
Write a GPIO state to an IO port pin.
| id | User-defined identifier used for internal tracking/logging (can be any value). |
| io_pin | IO port pin number (valid range: 0..5). |
| state | Desired GPIO output state. |