FastArduino  v1.8
C++ library to build fast but small Arduino/AVR projects
i2c::I2CCommand< T > Class Template Reference

Atomic I2C command as used internally by an asynchronous I2C Manager. More...

#include <fastarduino/i2c_handler_common.h>

Inheritance diagram for i2c::I2CCommand< T >:
Collaboration diagram for i2c::I2CCommand< T >:

Detailed Description

template<typename T>
class i2c::I2CCommand< T >

Atomic I2C command as used internally by an asynchronous I2C Manager.

You shall use it when you define a buffer of commands for an asynchronous I2C Manager constructor.

Each command embeds:

  • the command type (read, write...),
  • the count of bytes to be read or written,
  • the address of target slave device
  • a proxy to the future holding inputs and results of the I2C transaction
Warning
You should never need to use this API by yourself. This is internally used by FastArduino I2C Manager to handle I2C transactions.

Definition at line 227 of file i2c_handler_common.h.


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