LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
i2cd_8xx.h File Reference

Go to the source code of this file.

Data Structures

struct  I2C_PARAM_T
 
struct  I2C_RESULT_T
 
struct  I2CD_API_T
 

Macros

#define ERR_I2C_NAK   (0x00060001UL)
 
#define ERR_I2C_BUFFER_OVERFLOW   (0x00060002UL)
 
#define ERR_I2C_BYTE_COUNT_ERR   (0x00060003UL)
 
#define ERR_I2C_LOSS_OF_ARBRITRATION   (0x00060004UL)
 
#define ERR_I2C_SLAVE_NOT_ADDRESSED   (0x00060005UL)
 
#define ERR_I2C_LOSS_OF_ARBRITRATION_NAK_BIT   (0x00060006UL)
 
#define ERR_I2C_GENERAL_FAILURE   (0x00060007UL)
 
#define ERR_I2C_REGS_SET_TO_DEFAULT   (0x00060008UL)
 
#define ERR_I2C_TIMEOUT   (0x00060009UL)
 

Typedefs

typedef void * I2C_HANDLE_T
 
typedef void(* I2C_CALLBK_T )(uint32_t err_code, uint32_t n)
 

Enumerations

enum  CHIP_I2C_MODE_T {
  IDLE, MASTER_SEND, MASTER_RECEIVE, SLAVE_SEND,
  SLAVE_RECEIVE
}