api / mbed / trunk / PortInOut
PortInOut
class PortInOut
A multiple pin digital in/out used to set/read multiple bi-directional pins
| PortInOut | A multiple pin digital in/out used to set/read multiple bi-directional pins |
| Functions | |
| PortInOut | Create an PortInOut, connected to the specified port |
| write | Write the value to the output port |
| read | Read the value currently output on the port |
| output | Set as an output |
| input | Set as an input |
| mode | Set the input pin mode |
| operator= | A shorthand for write |
| operator int() | A shorthand for read |
operator=
PortInOut& operator= ( int value )
A shorthand for write
operator int()
operator int()
A shorthand for read
A multiple pin digital in/out used to set/read multiple bi-directional pins
class PortInOut
Create an PortInOut, connected to the specified port
PortInOut( PortName port, int mask = 0xFFFFFFFF )
Write the value to the output port
void write( int value )
Read the value currently output on the port
int read()
Set as an output
void output()
Set as an input
void input()
Set the input pin mode
void mode( PinMode mode )
A shorthand for write
PortInOut& operator= ( int value )
A shorthand for read
operator int()
