FastArduino  v1.8
C++ library to build fast but small Arduino/AVR projects
devices::mcp230xx::MCP23008< MANAGER >::ConfigureGPIOFuture Class Reference

Create a future to be used by asynchronous method configure_gpio(ConfigureGPIOFuture&). More...

#include <fastarduino/devices/mcp23008.h>

Inheritance diagram for devices::mcp230xx::MCP23008< MANAGER >::ConfigureGPIOFuture:
Collaboration diagram for devices::mcp230xx::MCP23008< MANAGER >::ConfigureGPIOFuture:

Detailed Description

template<typename MANAGER>
class devices::mcp230xx::MCP23008< MANAGER >::ConfigureGPIOFuture

Create a future to be used by asynchronous method configure_gpio(ConfigureGPIOFuture&).

This is used by configure_gpio() to asynchronously launch the I2C transaction, and it shall be used by the caller to determine when the I2C transaction is finished.

Parameters
directioneach bit sets the direction of one pin of the port; 1 means **I**nput, 0 means **O**utput.
pullupeach bit (only for input pins) sets if a pullup resistor shall be internally connected to the pin; if 1, a pullup is added, if 0, no pullup is added.
polarityeach bit (only for input pins) let you invert polarity of the matching input pin; if 1, polarity is inverted, ie one the level on the input pin is 0, then it is read as 1, and conversely.
See also
configure_gpio(ConfigureGPIOFuture&)

Definition at line 129 of file mcp23008.h.


The documentation for this class was generated from the following file: