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

I2C API common definitions. More...

#include <stdint.h>
#include "flash.h"
#include "ios.h"
Include dependency graph for i2c.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.
 

Enumerations

enum class  i2c::Status : uint8_t {
  i2c::OK = 0x00 ,
  i2c::START_TRANSMITTED = 0x08 ,
  i2c::REPEAT_START_TRANSMITTED = 0x10 ,
  i2c::SLA_W_TRANSMITTED_ACK = 0x18 ,
  i2c::SLA_W_TRANSMITTED_NACK = 0x20 ,
  i2c::DATA_TRANSMITTED_ACK = 0x28 ,
  i2c::DATA_TRANSMITTED_NACK = 0x30 ,
  i2c::ARBITRATION_LOST = 0x38 ,
  i2c::SLA_R_TRANSMITTED_ACK = 0x40 ,
  i2c::SLA_R_TRANSMITTED_NACK = 0x48 ,
  i2c::DATA_RECEIVED_ACK = 0x50 ,
  i2c::DATA_RECEIVED_NACK = 0x58
}
 Transmission status codes. More...
 
enum class  i2c::I2CMode : uint8_t {
  i2c::STANDARD ,
  i2c::FAST
}
 I2C available transmission modes. More...
 

Detailed Description

I2C API common definitions.

Definition in file i2c.h.