FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
i2c_handler.h File Reference

Common I2C Manager API. More...

#include <fastarduino/boards/board.h>
#include "i2c_handler_atmega.h"
Include dependency graph for i2c_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  i2c
 Define API to define and manage I2C devices.
 

Macros

#define MANAGER_FUTURE(M)   typename M::ABSTRACT_FUTURE
 Utility macro to extract the abstract future type for a given I2C Manager. More...
 

Detailed Description

Common I2C Manager API.

This will automatically include the proper header, based on target architecture, ATmega or ATtiny.

Definition in file i2c_handler.h.

Macro Definition Documentation

◆ MANAGER_FUTURE

#define MANAGER_FUTURE (   M)    typename M::ABSTRACT_FUTURE

Utility macro to extract the abstract future type for a given I2C Manager.

This is useful when used with REGISTER_FUTURE_STATUS_LISTENERS() to provide its first argument.

using namespace devices::vl53l0x;
using TOF = VL53L0X<MANAGER>;
i2c::I2CSameFutureGroup<MANAGER>, TOF::SetGPIOSettingsFuture)
I2C device driver for the VL53L0X ToF ranging chip.
Definition: vl53l0x.h:109
Asynchronous I2C Manager for ATmega architecture.
Class to allow dynamic creation of futures from values stored in flash memory, leading to launch of I...
#define REGISTER_FUTURE_OUTPUT_NO_LISTENERS()
Register no callback at all to Future output buffer changes notification.
Definition: future.h:150
#define REGISTER_FUTURE_STATUS_LISTENERS(ABSTRACT_TYPE, HANDLER1,...)
Register the necessary callbacks that will be notified when a future::Future (or a future::FakeFuture...
Definition: future.h:62
#define MANAGER_FUTURE(M)
Utility macro to extract the abstract future type for a given I2C Manager.
Definition: i2c_handler.h:51
Defines API for VL53L0X Time-of-Flight ranging sensor chip usage.
Definition: vl53l0x.h:60
See also
REGISTER_FUTURE_STATUS_LISTENERS()
REGISTER_FUTURE_OUTPUT_LISTENERS()

Definition at line 51 of file i2c_handler.h.