class GpioCommand

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
port_identifieruint32Gpio port identifier (0 == base expansion port)
pin_identifieruint32Gpio pin identifier
actionuint32Action to perform on gpio
perioduint32Period, in ms, of GPIO action (applicable only for pulse commands)

Member functions

Function nameReturn typeInput typeDescription
port_identifier()uint32voidReturns the current value of port_identifier. If the port_identifier is not set, returns 0.
set_port_identifier()voiduint32Sets the value of port_identifier. After calling this, port_identifier() will return value.
clear_port_identifier()voidvoidClears the value of port_identifier. After calling this, port_identifier() will return 0.
pin_identifier()uint32voidReturns the current value of pin_identifier. If the pin_identifier is not set, returns 0.
set_pin_identifier()voiduint32Sets the value of pin_identifier. After calling this, pin_identifier() will return value.
clear_pin_identifier()voidvoidClears the value of pin_identifier. After calling this, pin_identifier() will return 0.
action() constuint32voidReturns the current value of action. If the action is not set, returns 0.
set_action()voiduint32Sets the value of action. After calling this, action() will return value.
clear_action()voidvoidClears the value of action. After calling this, action() will return the empty string/empty bytes.
period()uint32voidReturns the current value of period. If the period is not set, returns 0.
set_period()voiduint32Sets the value of period. After calling this, period() will return value.
clear_period()voidvoidClears the value of period. After calling this, period() will return 0.

Parent topic: Base (C++)