FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
devices::mcp230xx::MCP23017< MANAGER >::ConfigureGPIOFuture< P_ > Class Template Reference

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

#include <fastarduino/devices/mcp23017.h>

Inheritance diagram for devices::mcp230xx::MCP23017< MANAGER >::ConfigureGPIOFuture< P_ >:
Collaboration diagram for devices::mcp230xx::MCP23017< MANAGER >::ConfigureGPIOFuture< P_ >:

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>
template<MCP23017Port P_>
class devices::mcp230xx::MCP23017< MANAGER >::ConfigureGPIOFuture< P_ >

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.

Template Parameters
P_which port to configure, may be A, B or both; if both, then all arguments will be uint16_t, with low byte for port A configuration, and high byte for port B.
Parameters
directioneach bit sets the direction of one pin of the selected 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<P>&)

Definition at line 248 of file mcp23017.h.


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