Configures the user GPIO pins on the connector for use with several built-in functions or for general input or output.
More...
|
TypedResult< GpioConfig > | mip::commands_3dm::writeGpioConfig (C::mip_interface &device, uint8_t pin, GpioConfig::Feature feature, GpioConfig::Behavior behavior, GpioConfig::PinMode pinMode) |
|
TypedResult< GpioConfig > | mip::commands_3dm::readGpioConfig (C::mip_interface &device, uint8_t pin, GpioConfig::Feature *featureOut, GpioConfig::Behavior *behaviorOut, GpioConfig::PinMode *pinModeOut) |
|
TypedResult< GpioConfig > | mip::commands_3dm::saveGpioConfig (C::mip_interface &device, uint8_t pin) |
|
TypedResult< GpioConfig > | mip::commands_3dm::loadGpioConfig (C::mip_interface &device, uint8_t pin) |
|
TypedResult< GpioConfig > | mip::commands_3dm::defaultGpioConfig (C::mip_interface &device, uint8_t pin) |
|
Configures the user GPIO pins on the connector for use with several built-in functions or for general input or output.
GPIO pins are device-dependent. Some features are only available on certain pins. Some behaviors require specific configurations. Consult the device user manual for restrictions and default settings.
To avoid glitches on GPIOs configured as an output in a mode other than GPIO, always configure the relevant function before setting up the pin with this command. Otherwise, the pin state will be undefined between this command and the one to set up the feature. For input pins, use this command first so the state is well-defined when the feature is initialized.
Some configurations can only be active on one pin at a time. If such configuration is applied to a second pin, the second one will take precedence and the original pin's configuration will be reset.
◆ defaultGpioConfig()
◆ loadGpioConfig()
◆ readGpioConfig()
◆ saveGpioConfig()
◆ writeGpioConfig()