Life is random and unfair!
Fork of mbed-dev by
PortInOut Class Reference
[Drivers]
A multiple pin digital in/out used to set/read multiple bi-directional pins. More...
#include <PortInOut.h>
Public Member Functions | |
PortInOut (PortName port, int mask=0xFFFFFFFF) | |
Create an PortInOut, 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. | |
void | output () |
Set as an output. | |
void | input () |
Set as an input. | |
void | mode (PinMode mode) |
Set the input pin mode. | |
PortInOut & | operator= (int value) |
A shorthand for write() | |
operator int () | |
A shorthand for read() |
Detailed Description
A multiple pin digital in/out used to set/read multiple bi-directional pins.
Synchronization level: Interrupt safe
Definition at line 34 of file PortInOut.h.
Constructor & Destructor Documentation
PortInOut | ( | PortName | port, |
int | mask = 0xFFFFFFFF |
||
) |
Create an PortInOut, connected to the specified port.
- Parameters:
-
port Port to connect to (Port0-Port5) mask A bitmask to identify which bits in the port should be included (0 - ignore)
Definition at line 42 of file PortInOut.h.
Generated on Tue Jul 12 2022 19:28:33 by 1.7.2