class GpioCommand
June 4, 2021 ยท View on GitHub
Member values
| Member name | Data type | Description |
|---|---|---|
| port_identifier | uint32 | Gpio port identifier (0 == base expansion port) |
| pin_identifier | uint32 | Gpio pin identifier |
| action | uint32 | Action to perform on gpio |
| period | uint32 | Period, in ms, of GPIO action (applicable only for pulse commands) |
Member functions
| Function name | Return type | Input type | Description |
|---|---|---|---|
| port_identifier() | uint32 | void | Returns the current value of port_identifier. If the port_identifier is not set, returns 0. |
| set_port_identifier() | void | uint32 | Sets the value of port_identifier. After calling this, port_identifier() will return value. |
| clear_port_identifier() | void | void | Clears the value of port_identifier. After calling this, port_identifier() will return 0. |
| pin_identifier() | uint32 | void | Returns the current value of pin_identifier. If the pin_identifier is not set, returns 0. |
| set_pin_identifier() | void | uint32 | Sets the value of pin_identifier. After calling this, pin_identifier() will return value. |
| clear_pin_identifier() | void | void | Clears the value of pin_identifier. After calling this, pin_identifier() will return 0. |
| action() const | uint32 | void | Returns the current value of action. If the action is not set, returns 0. |
| set_action() | void | uint32 | Sets the value of action. After calling this, action() will return value. |
| clear_action() | void | void | Clears the value of action. After calling this, action() will return the empty string/empty bytes. |
| period() | uint32 | void | Returns the current value of period. If the period is not set, returns 0. |
| set_period() | void | uint32 | Sets the value of period. After calling this, period() will return value. |
| clear_period() | void | void | Clears the value of period. After calling this, period() will return 0. |
Parent topic: Base (C++)