Arduino-GPIO
General Purpose Input/Output (GPIO) library for Arduino
|
#include <GPIO.h>
Classes | |
struct | gpio_reg_t |
Public Member Functions | |
GPIO< PIN > & | input () |
void | pullup () |
void | output () |
void | open_drain () |
bool | read () |
operator bool () | |
void | low () |
void | high () |
void | toggle () |
void | write (int value) |
void | operator= (int value) |
void | pulse (uint16_t width) |
int | pulse () |
GPIO () | |
GPIO< PIN > & | input () |
void | pullup () |
void | output () |
void | open_drain () |
bool | read () |
operator bool () | |
void | low () |
void | high () |
void | toggle () |
void | write (int value) |
void | operator= (int value) |
void | pulse (uint16_t width) |
int | pulse () |
Protected Member Functions | |
gpio_reg_t * | SFR () |
Pio * | SFR () |
uint32_t | ID_PIO () |
Static Protected Attributes | |
static const uint8_t | MASK = GPIO_MASK(PIN) |
static const uint32_t | MASK = GPIO_MASK(PIN) |
General Purpose Digital I/O pin template class. Highly optimized pin access. The PIN address is a bit pointer to the port control register. See Hardware/AVR/Board.h for details.
[in] | PIN | board pin definition. |
General Purpose Digital I/O pin template class. Highly optimized pin access. The PIN address is a port control register index and pin bit position. See Hardware/SAM/Board.h for details.
[in] | PIN | board pin definition. |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |