mbed-drivers
|
#include <DigitalOut.h>
Public Member Functions | |
DigitalOut (PinName pin) | |
DigitalOut (PinName pin, int value) | |
void | write (int value) |
int | read () |
DigitalOut & | operator= (int value) |
DigitalOut & | operator= (DigitalOut &rhs) |
operator int () | |
Protected Attributes | |
gpio_t | gpio |
A digital output, used for setting the state of a pin
Example:
|
inline |
Create a DigitalOut connected to the specified pin
pin | DigitalOut pin to connect to |
|
inline |
Create a DigitalOut connected to the specified pin
pin | DigitalOut pin to connect to |
value | the initial pin value |
|
inline |
A shorthand for read()
|
inline |
A shorthand for write()
|
inline |
Return the output setting, represented as 0 or 1 (int)
|
inline |
Set the output, specified as 0 or 1 (int)
value | An integer specifying the pin output value, 0 for logical 0, 1 (or any other non-zero value) for logical 1 |