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

Create a future to be used by asynchronous method configure_interrupts(ConfigureInterruptsFuture<P_>&). More...

#include <fastarduino/devices/mcp23017.h>

Inheritance diagram for devices::mcp230xx::MCP23017< MANAGER >::ConfigureInterruptsFuture< P_ >:
Collaboration diagram for devices::mcp230xx::MCP23017< MANAGER >::ConfigureInterruptsFuture< 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 >::ConfigureInterruptsFuture< P_ >

Create a future to be used by asynchronous method configure_interrupts(ConfigureInterruptsFuture<P_>&).

This is used by configure_interrupts() 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
int_pinseach bit sets if the matching pin shall generate interrupts
refcontains the reference value for comparison with the actual input pin; if input differs, then an interrupt will be triggered for that pin, provided that compare_ref for that bit is also 1.
compare_refeach bit indicates the condition for which the matching input pin can generate interrupts; if 0, an interrupt is generated every time the input pin changes level, if 1, an interrupt is generated every time the input pin level changes to be diferent than the matching bit.
See also
configure_interrupts(ConfigureInterruptsFuture<P_>&)

Definition at line 306 of file mcp23017.h.


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