Enumerations
Enumerations
Peripheral Driver » APP DRIVER » IIC

## 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_type_t { APP_I2C_TYPE_INTERRUPT, APP_I2C_TYPE_POLLING, APP_I2C_TYPE_DMA, APP_I2C_TYPE_MAX }
| I2C operating mode Enumerations definition. More...
enum | app_i2c_evt_type_t { APP_I2C_EVT_ERROR, APP_I2C_EVT_TX_CPLT, APP_I2C_EVT_RX_DATA }
| I2C event Enumerations definition. More...

## Detailed Description

## Enumeration Type Documentation

## ◆ app_i2c_evt_type_t

enum 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_id_t

enum 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.

## ◆ app_i2c_role_t

enum 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.

## ◆ app_i2c_type_t

enum app_i2c_type_t

I2C operating mode Enumerations definition.

Enumerator
APP_I2C_TYPE_INTERRUPT | Interrupt operation mode
APP_I2C_TYPE_POLLING | Polling operation mode
APP_I2C_TYPE_DMA | DMA operation mode
APP_I2C_TYPE_MAX | Only for check parameter, not used as input parameters.