|
supla-device
|

Public Types | |
| enum | Flag : uint8_t { IsSet = 1 << 0 , PullUp = 1 << 1 , ActiveHigh = 1 << 2 } |
Public Member Functions | |
| IoPin (int pin, Base *io=nullptr) | |
| bool | isSet () const |
| void | setIsSet (bool value) |
| int | getPin () const |
| void | setPin (int value) |
| bool | isPullUp () const |
| void | setPullUp (bool value) |
| bool | isActiveHigh () const |
| void | setActiveHigh (bool value) |
| void | setMode (uint8_t value) |
| uint8_t | getMode () const |
| bool | operator== (const IoPin &other) const |
| bool | operator!= (const IoPin &other) const |
| void | setPwmResolutionBits (uint8_t resolutionBits) |
| void | setPwmFrequency (uint32_t frequencyHz) |
| void | configureAnalogOutput (int channelNumber=-1) const |
| void | pinMode (int channelNumber=-1) const |
| int | digitalRead (int channelNumber=-1) const |
| void | digitalWrite (uint8_t value, int channelNumber=-1) const |
| void | analogWrite (int value, int channelNumber=-1) const |
| uint8_t | pwmResolutionBits () const |
| uint32_t | pwmMaxValue () const |
| void | writeActive (int channelNumber=-1) const |
| void | writeInactive (int channelNumber=-1) const |
| bool | readActive (int channelNumber=-1) const |
Public Attributes | |
| uint8_t | pin = 0 |
| uint8_t | flags = ActiveHigh |
| uint8_t | mode = 0 |
| Base * | io = nullptr |