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

Files

file  fsl_i2c.h
 

Macros

#define I2C_RETRY_TIMES   0U /* Define to zero means keep waiting until the flag is assert/deassert. */
 Retry 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  {
  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),
  kStatus_I2C_Addr_Nak = MAKE_STATUS(kStatusGroup_FLEXCOMM_I2C, 11)
}
 I2C status return codes. More...
 

Driver version

#define FSL_I2C_DRIVER_VERSION   (MAKE_VERSION(2, 0, 7))
 I2C driver version 2.0.7. More...
 

Detailed Description

Macro Definition Documentation

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

Enumeration Type Documentation

anonymous enum
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 polling status flags.

kStatus_I2C_Addr_Nak 

NAK received for Address.