LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CHIP: LPC8xx I2C ROM API declarations and functions

Detailed Description

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
}
 

Macro Definition Documentation

#define ERR_I2C_BUFFER_OVERFLOW   (0x00060002UL)

Definition at line 45 of file i2cd_8xx.h.

#define ERR_I2C_BYTE_COUNT_ERR   (0x00060003UL)

Definition at line 46 of file i2cd_8xx.h.

#define ERR_I2C_GENERAL_FAILURE   (0x00060007UL)

Definition at line 50 of file i2cd_8xx.h.

#define ERR_I2C_LOSS_OF_ARBRITRATION   (0x00060004UL)

Definition at line 47 of file i2cd_8xx.h.

#define ERR_I2C_LOSS_OF_ARBRITRATION_NAK_BIT   (0x00060006UL)

Definition at line 49 of file i2cd_8xx.h.

#define ERR_I2C_NAK   (0x00060001UL)

Definition at line 44 of file i2cd_8xx.h.

#define ERR_I2C_REGS_SET_TO_DEFAULT   (0x00060008UL)

Definition at line 51 of file i2cd_8xx.h.

#define ERR_I2C_SLAVE_NOT_ADDRESSED   (0x00060005UL)

Definition at line 48 of file i2cd_8xx.h.

#define ERR_I2C_TIMEOUT   (0x00060009UL)

Definition at line 52 of file i2cd_8xx.h.

Typedef Documentation

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

Definition at line 55 of file i2cd_8xx.h.

typedef void* I2C_HANDLE_T

Definition at line 54 of file i2cd_8xx.h.

Enumeration Type Documentation

LPC8xx I2C ROM driver modes enum

Enumerator:
IDLE 

IDLE state

MASTER_SEND 

Master send state

MASTER_RECEIVE 

Master Receive state

SLAVE_SEND 

Slave send state

SLAVE_RECEIVE 

Slave receive state

Definition at line 81 of file i2cd_8xx.h.