|
GPIO_NXP_Arduino 1.1.2
GPIO device operation sample code for Arduino
|
#include <PORT.h>
Public Member Functions | |
| PORT (GPIO_base &gpio, int port_num, uint8_t _mask=0x00) | |
| void | config (uint8_t config) |
| void | set (access_word wd, uint8_t value) |
| PORT & | operator= (uint8_t v) |
| PORT & | operator= (PORT &rhs) |
| operator int () | |
Public Attributes | |
| uint8_t | mask |
PORT: a interfacing class for GPIO operation library, Arduino
Released under the MIT license License PORT class
Simple interface for GPIO devices
| PORT::PORT | ( | GPIO_base & | gpio, |
| int | port_num, | ||
| uint8_t | _mask = 0x00 ) |
Constructor
| gpio | Pointer to GPIO device instance |
| port_num | Port number |
| mask | (option) bit mask for output |
Definition at line 3 of file PORT.cpp.
Referenced by GPIO_PORT::GPIO_PORT(), and operator=().
| void PORT::config | ( | uint8_t | config | ) |
| PORT & PORT::operator= | ( | uint8_t | v | ) |
| void PORT::set | ( | access_word | wd, |
| uint8_t | value ) |
| uint8_t PORT::mask |