#include <Arduino.h>
Go to the source code of this file.
|
#define | REG_IODIR 0x00 |
| Controls the direction of the data I/O. When a bit is set, the corresponding pin becomes an input. When a bit is clear, the corresponding pin becomes an output. More...
|
|
#define | REG_IPOL 0x01 |
| The IPOL register allows the user to configure thepolarity on the corresponding GPIO port bits. More...
|
|
#define | REG_GPINTEN 0x02 |
| The GPINTEN register controls the interrupt-on-change feature for each pin. More...
|
|
#define | REG_DEFVAL 0x03 |
| The default comparison value is configured in the DEFVAL register. More...
|
|
#define | REG_INTCON 0x04 |
| The INTCON register controls how the associated pin value is compared for the interrupt-on-change feature. More...
|
|
#define | REG_IOCON 0x05 |
| The IOCON register contains several bits for configuring the device. More...
|
|
#define | REG_GPPU 0x06 |
| The GPPU register controls the pull-up resistors for the port pins. More...
|
|
#define | REG_INTF 0x07 |
| The INTF register reflects the interrupt condition on the port pins of any pin that is enabled for interrupts via the GPINTEN register. More...
|
|
#define | REG_INTCAP 0x08 |
| The INTCAP register captures the GPIO port value at the time the interrupt occurred. More...
|
|
#define | REG_GPIO 0x09 |
| The GPIO register reflects the value on the port. More...
|
|
#define | REG_OLAT 0x0A |
| The OLAT register provides access to the output latches. More...
|
|
#define | GPIO_INPUT 0xFF |
|
#define | GPIO_OUTPUT 0x00 |
|
◆ REG_IODIR
Controls the direction of the data I/O. When a bit is set, the corresponding pin becomes an input. When a bit is clear, the corresponding pin becomes an output.
◆ REG_IPOL
The IPOL register allows the user to configure thepolarity on the corresponding GPIO port bits.
◆ REG_GPINTEN
The GPINTEN register controls the interrupt-on-change feature for each pin.
◆ REG_DEFVAL
The default comparison value is configured in the DEFVAL register.
◆ REG_INTCON
The INTCON register controls how the associated pin value is compared for the interrupt-on-change feature.
◆ REG_IOCON
The IOCON register contains several bits for configuring the device.
◆ REG_GPPU
The GPPU register controls the pull-up resistors for the port pins.
◆ REG_INTF
The INTF register reflects the interrupt condition on the port pins of any pin that is enabled for interrupts via the GPINTEN register.
◆ REG_INTCAP
The INTCAP register captures the GPIO port value at the time the interrupt occurred.
◆ REG_GPIO
The GPIO register reflects the value on the port.
◆ REG_OLAT
The OLAT register provides access to the output latches.
◆ GPIO_INPUT
◆ GPIO_OUTPUT