FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
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:

Additional Inherited Members

- Public Member Functions inherited from i2c::TWriteMultiRegisterFuture< MANAGER, T, REGISTERS >
 TWriteMultiRegisterFuture (std::initializer_list< T > values, future::FutureNotification notification=future::FutureNotification::NONE)
 Create a TWriteMultiRegisterFuture future. More...
 
- Static Public Attributes inherited from i2c::TWriteMultiRegisterFuture< MANAGER, T, REGISTERS >
static constexpr uint8_t NUM_WRITES = sizeof...(REGISTERS)
 Number of write commands to use inside the complete I2C transaction in order to perform this multiple registers write. More...
 
static constexpr uint8_t WRITE_SIZE = sizeof(T) + 1
 The number of bytes to write for each register command in the I2C transaction. More...
 

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 162 of file mcp23008.h.


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