FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
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 >:

Friends

template<I2CMode , I2CErrorPolicy , bool , typename , bool , typename >
class AbstractI2CAsyncManager
 

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 pointer 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 319 of file i2c_handler_common.h.

Friends And Related Function Documentation

◆ AbstractI2CAsyncManager

template<typename T >
template<I2CMode , I2CErrorPolicy , bool , typename , bool , typename >
friend class AbstractI2CAsyncManager
friend

Definition at line 347 of file i2c_handler_common.h.


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