class GpioPinConfiguration

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
pin_iduint32Pin identifier
pin_propertyuint32Pin property (read only)
output_enableboolPin is configured as output if set to TRUE. If output is enabled, input events are masked.
default_output_valueboolDefault output pin value. This is the value set when pin is initialized (TRUE == high / FALSE == low).

Member functions

Function nameReturn typeInput typeDescription
pin_id()uint32voidReturns the current value of pin_id. If the pin_id is not set, returns 0.
set_pin_id()voiduint32Sets the value of pin_id. After calling this, pin_id() will return value.
clear_pin_id()voidvoidClears the value of pin_id. After calling this, pin_id() will return 0.
pin_property() constuint32voidReturns the current value of pin_property. If the pin_property is not set, returns 0.
set_pin_property()voiduint32Sets the value of pin_property. After calling this, pin_property() will return value.
clear_pin_property()voidvoidClears the value of pin_property. After calling this, pin_property() will return the empty string/empty bytes.
output_enable()boolvoidReturns the current value of output_enable. If the output_enable is not set, returns 0.
set_output_enable()voidboolSets the value of output_enable. After calling this, output_enable() will return value.
clear_output_enable()voidvoidClears the value of output_enable. After calling this, output_enable() will return 0.
default_output_value()boolvoidReturns the current value of default_output_value. If the default_output_value is not set, returns 0.
set_default_output_value()voidboolSets the value of default_output_value. After calling this, default_output_value() will return value.
clear_default_output_value()voidvoidClears the value of default_output_value. After calling this, default_output_value() will return 0.

Parent topic: Base (C++)