Enumerations

Enumerations

enum  app_i2c_id_t {
  APP_I2C_ID_0,
  APP_I2C_ID_1,
  APP_I2C_ID_MAX
}
 I2C module Enumerations definition. More...
 
enum  app_i2c_role_t {
  APP_I2C_ROLE_MASTER,
  APP_I2C_ROLE_SLAVE,
  APP_I2C_ROLE_MAX
}
 I2C role Enumerations definition. More...
 
enum  app_i2c_evt_type_t {
  APP_I2C_EVT_ERROR,
  APP_I2C_EVT_TX_CPLT,
  APP_I2C_EVT_RX_DATA,
  APP_I2C_ABORT
}
 I2C event Enumerations definition. More...
 

Detailed Description

Enumeration Type Documentation

◆ app_i2c_evt_type_t

I2C event Enumerations definition.

Enumerator
APP_I2C_EVT_ERROR 

Error reported by I2C peripheral.

APP_I2C_EVT_TX_CPLT 

Requested TX transfer completed.

APP_I2C_EVT_RX_DATA 

Requested RX transfer completed.

APP_I2C_ABORT 

abort reported by I2C peripheral.

Definition at line 105 of file app_i2c.h.

◆ app_i2c_id_t

I2C module Enumerations definition.

Enumerator
APP_I2C_ID_0 

I2C module 0.

APP_I2C_ID_1 

I2C module 1.

APP_I2C_ID_MAX 

Only for check parameter, not used as input parameters.

Definition at line 77 of file app_i2c.h.

◆ app_i2c_role_t

I2C role Enumerations definition.

Enumerator
APP_I2C_ROLE_MASTER 

I2C master device.

APP_I2C_ROLE_SLAVE 

I2C slave device.

APP_I2C_ROLE_MAX 

Only for check parameter, not used as input parameters.

Definition at line 95 of file app_i2c.h.