#include <modm/platform/gpio/open_drain.hpp>
|
using | IO = GpioOpenDrain< typename Pin::IO > |
|
using | Output = IO |
|
using | Input = IO |
|
using | Type = typename Pin::Type |
|
|
enum | OutputType { PushPull,
OpenDrain
} |
|
|
static void | setInput () |
|
static void | setInput (Gpio::InputType type) |
|
static void | configure (Gpio::InputType type) |
|
static void | setOutput () |
|
static void | setOutput (OutputType) |
|
static void | setOutput (bool status) |
|
static void | set () |
| maps to setInput(InputType::Floating) or setInput(InputType::PullUp)
|
|
static void | reset () |
| maps to setOutput(::modm::Gpio::Low)
|
|
static void | set (bool status) |
|
static bool | isSet () |
|
static modm::Gpio::Direction | getDirection () |
|
template<class Pin>
class modm::platform::GpioOpenDrain< Pin >
Gpio OpenDrain template, which remaps the behavior of the Gpio pin to simulate an open-drain output (with internal pullups if needed).
- See also
- BitBangI2cMaster
The documentation for this class was generated from the following file: