class GpioConfiguration

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
port_numberuint32Port number (Base extension port is port 0)
pin_configurationsGpioPinConfigurationPin configuration list

Member functions

Function nameReturn typeInput typeDescription
port_number()uint32voidReturns the current value of port_number. If the port_number is not set, returns 0.
set_port_number()voiduint32Sets the value of port_number. After calling this, port_number() will return value.
clear_port_number()voidvoidClears the value of port_number. After calling this, port_number() will return 0.
pin_configurations_size() constintvoidReturns the number of elements currently in the field.
pin_configurations() constconst GpioPinConfigurationint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, pin_configurations_size()) yields undefined behavior.
mutable_pin_configurations()GpioPinConfiguration*int indexReturns a pointer to the mutable GpioPinConfiguration object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, pin_configurations_size()) yields undefined behavior.
add_pin_configurations()GpioPinConfiguration*voidAdds a new element and returns a pointer to it. The returned GpioPinConfiguration is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated GpioPinConfiguration).
clear_pin_configurations()voidvoidRemoves all elements from the field. After calling this, pin_configurations_size() will return zero.
pin_configurations() constconst RepeatedPtrField< GpioPinConfiguration>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_pin_configurations()RepeatedPtrField< GpioPinConfiguration>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: Base (C++)