api / mbed / trunk / DigitalInOut
DigitalInOut
class DigitalInOut : public Base
A digital input/output, used for setting or reading a bi-directional pin
| DigitalInOut | A digital input/output, used for setting or reading a bi-directional pin |
| Functions | |
| DigitalInOut | Create a DigitalInOut connected to the specified pin |
| write | Set the output, specified as 0 or 1 (int) |
| read | Return the output setting, represented as 0 or 1 (int) |
| 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=
DigitalInOut& operator= ( int value )
A shorthand for write
operator int()
operator int()
A shorthand for read
A digital input/output, used for setting or reading a bi-directional pin
class DigitalInOut : public Base
Create a DigitalInOut connected to the specified pin
DigitalInOut( PinName pin, const char * name = NULL )
Set the output, specified as 0 or 1 (int)
void write( int value )
Return the output setting, represented as 0 or 1 (int)
int read()
Set as an output
void output()
Set as an input
void input()
Set the input pin mode
void mode( PinMode pull )
A shorthand for write
DigitalInOut& operator= ( int value )
A shorthand for read
operator int()
