Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Define

This section introduces the Macro definition that I2C OS-HAL/M-HAL/HDL used. More...

Overview

This section introduces the Macro definition that I2C OS-HAL/M-HAL/HDL used.

Macros

#define I2C_OK   0
 I2C execute OK.
 
#define I2C_EPTR   1
 It means the pointer is NULL.
 
#define I2C_EFIFO   2
 FIFO status abnormal.
 
#define I2C_ENXIO   6
 No such device or address.
 
#define I2C_EBUSY   16
 Device busy.
 
#define I2C_EINVAL   22
 Invalid argument.
 
#define I2C_ETIMEDOUT   110
 Connection timed out.
 
#define I2C_TRANS_DONE   0
 I2C complete data transfer.
 
#define I2C_WAIT_DMA   1
 I2C module triggers an complete interrupt, but need to wait for the DMA module to complete the transfer.