20#ifndef MBED_INTERFACE_DIGITALINOUT_H_
21#define MBED_INTERFACE_DIGITALINOUT_H_
31#ifdef FEATURE_EXPERIMENTAL_API
37 virtual ~DigitalInOut() =
default;
38 virtual void write(
int value) = 0;
39 virtual int read() = 0;
40 virtual void output() = 0;
41 virtual void input() = 0;
42 virtual void mode(PinMode pull) = 0;
43 virtual int is_connected() = 0;
45 DigitalInOut &operator= (
int value)
52 DigitalInOut &operator= (DigitalInOut &rhs)
A digital input/output, used for setting or reading a bi-directional pin.