MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Overview

Files

file  fsl_i2c.h
 

Macros

#define I2C_WAIT_TIMEOUT   0U /* Define to zero means keep waiting until the flag is assert/deassert. */
 Timeout times for waiting flag. More...
 
#define I2C_STAT_MSTCODE_IDLE   (0)
 Master Idle State Code.
 
#define I2C_STAT_MSTCODE_RXREADY   (1)
 Master Receive Ready State Code.
 
#define I2C_STAT_MSTCODE_TXREADY   (2)
 Master Transmit Ready State Code.
 
#define I2C_STAT_MSTCODE_NACKADR   (3)
 Master NACK by slave on address State Code.
 
#define I2C_STAT_MSTCODE_NACKDAT   (4)
 Master NACK by slave on data State Code.
 

Enumerations

enum  _i2c_status {
  kStatus_I2C_Busy = MAKE_STATUS(kStatusGroup_FLEXCOMM_I2C, 0),
  kStatus_I2C_Idle = MAKE_STATUS(kStatusGroup_FLEXCOMM_I2C, 1),
  kStatus_I2C_Nak,
  kStatus_I2C_InvalidParameter,
  kStatus_I2C_BitError = MAKE_STATUS(kStatusGroup_FLEXCOMM_I2C, 4),
  kStatus_I2C_ArbitrationLost = MAKE_STATUS(kStatusGroup_FLEXCOMM_I2C, 5),
  kStatus_I2C_NoTransferInProgress,
  kStatus_I2C_DmaRequestFail = MAKE_STATUS(kStatusGroup_FLEXCOMM_I2C, 7) ,
  kStatus_I2C_Timeout = MAKE_STATUS(kStatusGroup_FLEXCOMM_I2C, 10)
}
 I2C status return codes. More...
 

Driver version

#define FSL_I2C_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
 I2C driver version 2.0.1. More...
 

Macro Definition Documentation

#define FSL_I2C_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
#define I2C_WAIT_TIMEOUT   0U /* Define to zero means keep waiting until the flag is assert/deassert. */

Enumeration Type Documentation

Enumerator
kStatus_I2C_Busy 

The master is already performing a transfer.

kStatus_I2C_Idle 

The slave driver is idle.

kStatus_I2C_Nak 

The slave device sent a NAK in response to a byte.

kStatus_I2C_InvalidParameter 

Unable to proceed due to invalid parameter.

kStatus_I2C_BitError 

Transferred bit was not seen on the bus.

kStatus_I2C_ArbitrationLost 

Arbitration lost error.

kStatus_I2C_NoTransferInProgress 

Attempt to abort a transfer when one is not in progress.

kStatus_I2C_DmaRequestFail 

DMA request failed.

kStatus_I2C_Timeout 

Timeout poling status flags.