FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Create a future to be used by asynchronous method configure_gpio(ConfigureGPIOFuture&). More...
#include <fastarduino/devices/mcp23008.h>
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... | |
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.
direction | each bit sets the direction of one pin of the port; 1 means **I**nput, 0 means **O**utput. |
pullup | each 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. |
polarity | each 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. |
Definition at line 162 of file mcp23008.h.