mbed-drivers
|
#include <PortOut.h>
Public Member Functions | |
PortOut (PortName port, int mask=0xFFFFFFFF) | |
void | write (int value) |
int | read () |
PortOut & | operator= (int value) |
PortOut & | operator= (PortOut &rhs) |
operator int () | |
A multiple pin digital out
Example:
|
inline |
Create an PortOut, 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 |
A shorthand for read()
|
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 PortOut pin |