Microchip® Advanced Software Framework

i2c_common.h File Reference

SAM SERCOM I2C Common Driver.

Copyright (c) 2012-2020 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>
#include <sercom.h>

Macros

Driver Feature Definition

Define SERCOM I2C driver features set according to different device family.

#define FEATURE_I2C_FAST_MODE_PLUS_AND_HIGH_SPEED
 Fast mode plus and high speed support. More...
 
#define FEATURE_I2C_10_BIT_ADDRESS
 10-bit address support More...
 
#define FEATURE_I2C_SCL_STRETCH_MODE
 SCL stretch mode support. More...
 
#define FEATURE_I2C_SCL_EXTEND_TIMEOUT
 SCL extend timeout support. More...
 
#define FEATURE_I2C_DMA_SUPPORT
 

Enumerations

enum  i2c_transfer_direction {
  I2C_TRANSFER_WRITE = 0,
  I2C_TRANSFER_READ = 1
}
 Transfer direction. More...