uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
I2C Public Functions

Functions

void I2C_Init (LPC_I2C_TypeDef *I2Cx, uint32_t clockrate)
 
void I2C_DeInit (LPC_I2C_TypeDef *I2Cx)
 
void I2C_Cmd (LPC_I2C_TypeDef *I2Cx, FunctionalState NewState)
 
Status I2C_MasterTransferData (LPC_I2C_TypeDef *I2Cx, I2C_M_SETUP_Type *TransferCfg, I2C_TRANSFER_OPT_Type Opt)
 
Status I2C_SlaveTransferData (LPC_I2C_TypeDef *I2Cx, I2C_S_SETUP_Type *TransferCfg, I2C_TRANSFER_OPT_Type Opt)
 
uint32_t I2C_MasterTransferComplete (LPC_I2C_TypeDef *I2Cx)
 
uint32_t I2C_SlaveTransferComplete (LPC_I2C_TypeDef *I2Cx)
 
void I2C_SetOwnSlaveAddr (LPC_I2C_TypeDef *I2Cx, I2C_OWNSLAVEADDR_CFG_Type *OwnSlaveAddrConfigStruct)
 
uint8_t I2C_GetLastStatusCode (LPC_I2C_TypeDef *I2Cx)
 
void I2C_MonitorModeConfig (LPC_I2C_TypeDef *I2Cx, uint32_t MonitorCfgType, FunctionalState NewState)
 
void I2C_MonitorModeCmd (LPC_I2C_TypeDef *I2Cx, FunctionalState NewState)
 
uint8_t I2C_MonitorGetDatabuffer (LPC_I2C_TypeDef *I2Cx)
 
BOOL_8 I2C_MonitorHandler (LPC_I2C_TypeDef *I2Cx, uint8_t *buffer, uint32_t size)
 
void I2C_IntCmd (LPC_I2C_TypeDef *I2Cx, Bool NewState)
 
void I2C_MasterHandler (LPC_I2C_TypeDef *I2Cx)
 
void I2C_SlaveHandler (LPC_I2C_TypeDef *I2Cx)
 

Detailed Description

Function Documentation

void I2C_Cmd ( LPC_I2C_TypeDef I2Cx,
FunctionalState  NewState 
)
void I2C_DeInit ( LPC_I2C_TypeDef I2Cx)
uint8_t I2C_GetLastStatusCode ( LPC_I2C_TypeDef I2Cx)
void I2C_Init ( LPC_I2C_TypeDef I2Cx,
uint32_t  clockrate 
)
void I2C_IntCmd ( LPC_I2C_TypeDef I2Cx,
Bool  NewState 
)
void I2C_MasterHandler ( LPC_I2C_TypeDef I2Cx)
uint32_t I2C_MasterTransferComplete ( LPC_I2C_TypeDef I2Cx)
Status I2C_MasterTransferData ( LPC_I2C_TypeDef I2Cx,
I2C_M_SETUP_Type TransferCfg,
I2C_TRANSFER_OPT_Type  Opt 
)
uint8_t I2C_MonitorGetDatabuffer ( LPC_I2C_TypeDef I2Cx)
BOOL_8 I2C_MonitorHandler ( LPC_I2C_TypeDef I2Cx,
uint8_t *  buffer,
uint32_t  size 
)
void I2C_MonitorModeCmd ( LPC_I2C_TypeDef I2Cx,
FunctionalState  NewState 
)
void I2C_MonitorModeConfig ( LPC_I2C_TypeDef I2Cx,
uint32_t  MonitorCfgType,
FunctionalState  NewState 
)
void I2C_SetOwnSlaveAddr ( LPC_I2C_TypeDef I2Cx,
I2C_OWNSLAVEADDR_CFG_Type OwnSlaveAddrConfigStruct 
)
void I2C_SlaveHandler ( LPC_I2C_TypeDef I2Cx)
uint32_t I2C_SlaveTransferComplete ( LPC_I2C_TypeDef I2Cx)
Status I2C_SlaveTransferData ( LPC_I2C_TypeDef I2Cx,
I2C_S_SETUP_Type TransferCfg,
I2C_TRANSFER_OPT_Type  Opt 
)