C:/nxpdrv/LPC1700CMSIS/Drivers/source/lpc17xx_i2c.c File Reference
: Contains all functions support for I2C firmware library on LPC17xx More...
#include "lpc17xx_i2c.h"
#include "lpc17xx_clkpwr.h"
#include "lpc17xx_pinsel.h"
#include "lpc17xx_libcfg_default.h"
Go to the source code of this file.
Data Structures | |
| struct | I2C_CFG_T |
| I2C device configuration structure type. More... | |
Functions | |
| void | I2C_MasterHandler (LPC_I2C_TypeDef *I2Cx) |
| General Master Interrupt handler for I2C peripheral. | |
| void | I2C_SlaveHandler (LPC_I2C_TypeDef *I2Cx) |
| General Slave Interrupt handler for I2C peripheral. | |
| void | I2C_IntCmd (LPC_I2C_TypeDef *I2Cx, Bool NewState) |
| Enable/Disable interrupt for I2C peripheral. | |
| void | I2C_SetClock (LPC_I2C_TypeDef *I2Cx, uint32_t target_clock) |
| Setup clock rate for I2C peripheral. | |
| void | I2C_DeInit (LPC_I2C_TypeDef *I2Cx) |
| De-initializes the I2C peripheral registers to their default reset values. | |
| void | I2C_Init (LPC_I2C_TypeDef *I2Cx, uint32_t clockrate) |
| Initializes the I2Cx peripheral with specified parameter. | |
| void | I2C_Cmd (LPC_I2C_TypeDef *I2Cx, FunctionalState NewState) |
| Enable or disable I2C peripheral's operation. | |
| Status | I2C_MasterTransferData (LPC_I2C_TypeDef *I2Cx, I2C_M_SETUP_Type *TransferCfg, I2C_TRANSFER_OPT_Type Opt) |
| Transmit and Receive data in master mode. | |
| Status | I2C_SlaveTransferData (LPC_I2C_TypeDef *I2Cx, I2C_S_SETUP_Type *TransferCfg, I2C_TRANSFER_OPT_Type Opt) |
| Receive and Transmit data in slave mode. | |
| void | I2C_SetOwnSlaveAddr (LPC_I2C_TypeDef *I2Cx, I2C_OWNSLAVEADDR_CFG_Type *OwnSlaveAddrConfigStruct) |
| Set Own slave address in I2C peripheral corresponding to parameter specified in OwnSlaveAddrConfigStruct. | |
| void | I2C_MonitorModeConfig (LPC_I2C_TypeDef *I2Cx, uint32_t MonitorCfgType, FunctionalState NewState) |
| Configures functionality in I2C monitor mode. | |
| void | I2C_MonitorModeCmd (LPC_I2C_TypeDef *I2Cx, FunctionalState NewState) |
| Enable/Disable I2C monitor mode. | |
| uint8_t | I2C_MonitorGetDatabuffer (LPC_I2C_TypeDef *I2Cx) |
| Get data from I2C data buffer in monitor mode. | |
| void | I2C0_StdIntHandler (void) |
| Standard Interrupt handler for I2C0 peripheral. | |
| void | I2C1_StdIntHandler (void) |
| Standard Interrupt handler for I2C1 peripheral. | |
| void | I2C2_StdIntHandler (void) |
| Standard Interrupt handler for I2C2 peripheral. | |
Detailed Description
: Contains all functions support for I2C firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 9. April. 2009
- Author:
- : HieuNguyen
Definition in file lpc17xx_i2c.c.
Generated on Mon Feb 8 10:01:41 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by
1.5.9