class GpioConfiguration
June 4, 2021 ยท View on GitHub
Member values
| Member name | Data type | Description |
|---|---|---|
| port_number | uint32 | Port number (Base extension port is port 0) |
| pin_configurations | GpioPinConfiguration | Pin configuration list |
Member functions
| Function name | Return type | Input type | Description |
|---|---|---|---|
| port_number() | uint32 | void | Returns the current value of port_number. If the port_number is not set, returns 0. |
| set_port_number() | void | uint32 | Sets the value of port_number. After calling this, port_number() will return value. |
| clear_port_number() | void | void | Clears the value of port_number. After calling this, port_number() will return 0. |
| pin_configurations_size() const | int | void | Returns the number of elements currently in the field. |
| pin_configurations() const | const GpioPinConfiguration | int index | Returns 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 index | Returns 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* | void | Adds 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() | void | void | Removes all elements from the field. After calling this, pin_configurations_size() will return zero. |
| pin_configurations() const | const RepeatedPtrField< GpioPinConfiguration>& | void | Returns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods. |
| mutable_pin_configurations() | RepeatedPtrField< GpioPinConfiguration>* | void | Returns 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++)