Mbed OS Reference
|
A multiple pin digital output. More...
#include <PortOut.h>
Public Member Functions | |
PortOut (PortName port, int mask=0xFFFFFFFF) | |
Create a PortOut, connected to the specified port. More... | |
void | write (int value) |
Write the value to the output port. More... | |
int | read () |
Read the value currently output on the port. More... | |
PortOut & | operator= (int value) |
A shorthand for write() More... | |
PortOut & | operator= (PortOut &rhs) |
A shorthand for read() More... | |
operator int () | |
A shorthand for read() More... | |
A multiple pin digital output.
Example:
PortOut | ( | PortName | port, |
int | mask = 0xFFFFFFFF |
||
) |
Create a PortOut, connected to the specified port.
port | Port to connect to (as defined in target's PortNames.h) |
mask | Bitmask defines which port pins are an output (0 - ignore, 1 - include) |
void write | ( | int | value | ) |
int read | ( | ) |
PortOut & operator= | ( | int | value | ) |
operator int | ( | ) |