CTL_STATUS_t platform_set_digital_pin_mode(int pin,
                                           int mode);

platform_set_digital_pin_mode sets the pin mode for digital I/O. A digital output is configured in push-pull mode, but can optionally be turned into an open drain output. A digital input is configured without any pull ups, but pull-ups or pull-downs can be requested.

If a device cannot support pin mode mode, platform_set_digital_pin_mode returns a configuration error.

See Also

platform_set_multi_digital_pin_mode, platform_digital_pin_mode