![]() |
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. | |
| void | write (int value) |
| Write the value to the output port. | |
| int | read () |
| Read the value currently output on the port. | |
| PortOut & | operator= (int value) |
| A shorthand for write() | |
| PortOut & | operator= (PortOut &rhs) |
| A shorthand for read() | |
| operator int () | |
| A shorthand for read() | |
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 | ( | ) |