MSPM0G1X0X_G3X0X TI-Driver Library  2.01.00.03
Macros
Collaboration diagram for I2C status codes:

Macros

#define I2C_STATUS_QUEUED   (1)
 I2C transaction is queued but has not started.
 
#define I2C_STATUS_SUCCESS   (0)
 Successful status code returned by I2C API.
 
#define I2C_STATUS_ERROR   (-1)
 Generic error status code returned by I2C API.
 
#define I2C_STATUS_UNDEFINEDCMD   (-2)
 An error status code returned by I2C_control() for undefined command codes.
 
#define I2C_STATUS_TIMEOUT   (-3)
 I2C operation timed-out.
 
#define I2C_STATUS_CLOCK_TIMEOUT   (-4)
 I2C serial clock line timeout.
 
#define I2C_STATUS_ADDR_NACK   (-5)
 I2C target address not acknowledged.
 
#define I2C_STATUS_DATA_NACK   (-6)
 I2C data byte not acknowledged.
 
#define I2C_STATUS_ARB_LOST   (-7)
 I2C multi-controller arbitration lost.
 
#define I2C_STATUS_INCOMPLETE   (-8)
 I2C transaction is in progress or returned without completing.
 
#define I2C_STATUS_BUS_BUSY   (-9)
 I2C bus already in use by another controller. The I2C transaction. was therefore unable to start.
 
#define I2C_STATUS_CANCEL   (-10)
 I2C transaction canceled by I2C_cancel().
 
#define I2C_STATUS_INVALID_TRANS   (-11)
 I2C transaction is invalid. More...
 

Detailed Description

These macros are reservations for I2C.h.

Macro Definition Documentation

§ I2C_STATUS_INVALID_TRANS

#define I2C_STATUS_INVALID_TRANS   (-11)

I2C transaction is invalid.

This may occur if:

  1. The I2C_Transaction.readCount and I2C_Transaction.writeCount are both set to 0.
  2. A call to I2C_transfer() is made from a I2C_CallbackFxn while queued transactions are being canceled. See also: I2C_cancel().
© Copyright 1995-2024, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale