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>

Enumerations

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

Transfer direction.

For master: transfer direction or setting direction bit in address. For slave: direction of request from master.

Enumerator
I2C_TRANSFER_WRITE 

Master write operation is in progress.

I2C_TRANSFER_READ 

Master read operation is in progress.