MySensors Library & Examples
2.3.2-62-ge298769
|
Fast digital port I/O.
Definition at line 318 of file DigitalPin.h.
#include <DigitalPin.h>
Public Member Functions | |
DigitalPin () | |
DigitalPin & | operator= (bool value) __attribute__((always_inline)) |
operator bool () const __attribute__((always_inline)) | |
__attribute__ ((always_inline)) void config(uint8_t mode | |
__attribute__ ((always_inline)) void high() | |
__attribute__ ((always_inline)) void low() | |
__attribute__ ((always_inline)) void mode(uint8_t mode) | |
__attribute__ ((always_inline)) bool read() const | |
__attribute__ ((always_inline)) void toggle() | |
__attribute__ ((always_inline)) void write(bool value) | |
Public Attributes | |
bool | level |
|
inline |
Constructor
Definition at line 323 of file DigitalPin.h.
|
inline |
Definition at line 388 of file DigitalPin.h.
|
inline |
Set pin configuration.
[in] | mode | INPUT or OUTPUT. |
[in] | level | If mode is OUTPUT, set level high/low. If mode is INPUT, enable or disable the pin's 20K pullup. |
|
inline |
Set pin level high if output mode or enable 20K pullup if input mode.
Definition at line 359 of file DigitalPin.h.
|
inline |
Set pin level low if output mode or disable 20K pullup if input mode.
Definition at line 368 of file DigitalPin.h.
|
inline |
Set pin mode.
[in] | mode | INPUT, OUTPUT, or INPUT_PULLUP. |
The internal pullup resistors will be enabled if mode is INPUT_PULLUP and disabled if the mode is INPUT.
Definition at line 381 of file DigitalPin.h.
|
inline |
Toggle a pin.
If the pin is in output mode toggle the pin's level. If the pin is in input mode toggle the state of the 20K pullup.
Definition at line 399 of file DigitalPin.h.
|
inline |
Write the pin's level.
[in] | value | If true set the pin's level high else set the pin's level low. |
Definition at line 409 of file DigitalPin.h.
|
inline |
|
inline |
Asignment operator.
[in] | value | If true set the pin's level high else set the pin's level low. |
Definition at line 331 of file DigitalPin.h.
bool DigitalPin< PinNumber >::level |
Definition at line 352 of file DigitalPin.h.