typedef enum { PIN_MODE_STANDARD, PIN_MODE_OPEN_DRAIN, PIN_MODE_PULL_UP, PIN_MODE_PULL_DOWN } PLATFORM_PIN_MODE_t;
PLATFORM_PIN_MODE_t describes the functions that select additional options for an digital pin pin using platform_set_digital_pin_mode.
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.