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

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

#include <fastarduino/devices/mcp23008.h>

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

Detailed Description

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

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

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.

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&)

Definition at line 181 of file mcp23008.h.


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