mbed-drivers
|
#include <PortInOut.h>
Public Member Functions | |
PortInOut (PortName port, int mask=0xFFFFFFFF) | |
void | write (int value) |
int | read () |
void | output () |
void | input () |
void | mode (PinMode mode) |
PortInOut & | operator= (int value) |
PortInOut & | operator= (PortInOut &rhs) |
operator int () | |
A multiple pin digital in/out used to set/read multiple bi-directional pins
|
inline |
Create an PortInOut, connected to the specified port
port | Port to connect to (Port0-Port5) |
mask | A bitmask to identify which bits in the port should be included (0 - ignore) |
|
inline |
Set as an input
|
inline |
Set the input pin mode
mode | PullUp, PullDown, PullNone, OpenDrain |
|
inline |
A shorthand for read()
|
inline |
Set as an output
|
inline |
Read the value currently output on the port
|
inline |
Write the value to the output port
value | An integer specifying a bit to write for every corresponding port pin |