NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
: Contains all functions support for I2C firmware library on LPC17xx More...
Go to the source code of this file.
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, FunctionalState NewState) |
Enable/Disable interrupt for I2C peripheral. | |
static int32_t | I2C_getNum (LPC_I2C_TypeDef *I2Cx) |
Convert from I2C peripheral to number. | |
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. | |
Variables | |
static I2C_CFG_T | i2cdat [3] |
II2C driver data for I2C0, I2C1 and I2C2. |
Detailed Description
: Contains all functions support for I2C firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 9. April. 2009
Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.
Definition in file lpc17xx_i2c.c.
Generated on Tue Jul 12 2022 17:06:02 by 1.7.2