Doly C++ SDK v1.00
Loading...
Searching...
No Matches
IoControl.h File Reference

Public API for Doly IO control (IO Port GPIO pin read/write). More...

#include "GpioPin.h"

Go to the source code of this file.

Namespaces

namespace  IoControl

Functions

int8_t IoControl::writePin (uint16_t id, uint8_t io_pin, GpioState state)
 Write a GPIO state to an IO port pin.
GpioState IoControl::readPin (uint16_t id, uint8_t io_pin)
 Read the current GPIO state of an IO port pin.
float IoControl::getVersion ()
 Get current library version.

Detailed Description

Public API for Doly IO control (IO Port GPIO pin read/write).

This header provides a small, single-file API for controlling Doly's IO port pins.

Design notes:

  • Singleton-style control (namespace API; no instances)
  • Uses the shared GPIO types from GpioPin.h (e.g., GpioState)