Synopsis
typedef enum {
  PIN_MODE_STANDARD,
  PIN_MODE_OPEN_DRAIN,
  PIN_MODE_PULL_UP,
  PIN_MODE_PULL_DOWN
} PLATFORM_PIN_MODE_t;
Description

PLATFORM_PIN_MODE_t describes the functions that select additional options for an digital pin pin using platform_set_digital_pin_mode.

Note

Not all modes are implemented on all platforms, and not all combinations of options are possible on all platforms. Individual platforms may well reject a request to configure a pin in a particular mode if the Platform Library can determine that the request cannot be satisfied.

PIN_MODE_STANDARD
Pin is a standard push-pull output or floating input.
PIN_MODE_OPEN_DRAIN
Pin is configured in open drain mode.
PIN_MODE_PULL_UP
Integrated pull-up resistors are enabled.
PIN_MODE_PULL_DOWN
Integrated pull-down resistors are enabled.
See Also

platform_set_digital_pin_mode