Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 2.14 KB

GpioPinConfiguration.md

File metadata and controls

30 lines (24 loc) · 2.14 KB

class GpioPinConfiguration

Member values

Member name Data type Description
pin_id uint32 Pin identifier
pin_property uint32 Pin property (read only)
output_enable bool Pin is configured as output if set to TRUE. If output is enabled, input events are masked.
default_output_value bool Default output pin value. This is the value set when pin is initialized (TRUE == high / FALSE == low).

Member functions

Function name Return type Input type Description
pin_id() uint32 void Returns the current value of pin_id. If the pin_id is not set, returns 0.
set_pin_id() void uint32 Sets the value of pin_id. After calling this, pin_id() will return value.
clear_pin_id() void void Clears the value of pin_id. After calling this, pin_id() will return 0.
pin_property() const uint32 void Returns the current value of pin_property. If the pin_property is not set, returns 0.
set_pin_property() void uint32 Sets the value of pin_property. After calling this, pin_property() will return value.
clear_pin_property() void void Clears the value of pin_property. After calling this, pin_property() will return the empty string/empty bytes.
output_enable() bool void Returns the current value of output_enable. If the output_enable is not set, returns 0.
set_output_enable() void bool Sets the value of output_enable. After calling this, output_enable() will return value.
clear_output_enable() void void Clears the value of output_enable. After calling this, output_enable() will return 0.
default_output_value() bool void Returns the current value of default_output_value. If the default_output_value is not set, returns 0.
set_default_output_value() void bool Sets the value of default_output_value. After calling this, default_output_value() will return value.
clear_default_output_value() void void Clears the value of default_output_value. After calling this, default_output_value() will return 0.

Parent topic: Base (C++)