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
I2C_M_SETUP_Type Struct Reference
[I2C_Public_Types]
Master transfer setup data structure definitions. More...
#include <lpc17xx_i2c.h>
Data Fields | |
uint32_t | sl_addr7bit |
Slave address in 7bit mode. | |
uint8_t * | tx_data |
Pointer to Transmit data - NULL if data transmit is not used. | |
uint32_t | tx_length |
Transmit data length - 0 if data transmit is not used. | |
uint32_t | tx_count |
Current Transmit data counter. | |
uint8_t * | rx_data |
Pointer to Receive data - NULL if data receive is not used. | |
uint32_t | rx_length |
Receive data length - 0 if data receive is not used. | |
uint32_t | rx_count |
Current Receive data counter. | |
uint32_t | retransmissions_max |
Max Re-Transmission value. | |
uint32_t | retransmissions_count |
Current Re-Transmission counter. | |
uint32_t | status |
Current status of I2C activity. | |
void(* | callback )(void) |
Pointer to Call back function when transmission complete used in interrupt transfer mode. |
Detailed Description
Master transfer setup data structure definitions.
Definition at line 265 of file lpc17xx_i2c.h.
Field Documentation
void(* callback)(void) |
Pointer to Call back function when transmission complete used in interrupt transfer mode.
Definition at line 281 of file lpc17xx_i2c.h.
uint32_t retransmissions_count |
Current Re-Transmission counter.
Definition at line 279 of file lpc17xx_i2c.h.
uint32_t retransmissions_max |
Max Re-Transmission value.
Definition at line 278 of file lpc17xx_i2c.h.
uint32_t rx_count |
Current Receive data counter.
Definition at line 277 of file lpc17xx_i2c.h.
uint8_t* rx_data |
Pointer to Receive data - NULL if data receive is not used.
Definition at line 273 of file lpc17xx_i2c.h.
uint32_t rx_length |
Receive data length - 0 if data receive is not used.
Definition at line 275 of file lpc17xx_i2c.h.
uint32_t sl_addr7bit |
Slave address in 7bit mode.
Definition at line 267 of file lpc17xx_i2c.h.
uint32_t status |
Current status of I2C activity.
Definition at line 280 of file lpc17xx_i2c.h.
uint32_t tx_count |
Current Transmit data counter.
Definition at line 272 of file lpc17xx_i2c.h.
uint8_t* tx_data |
Pointer to Transmit data - NULL if data transmit is not used.
Definition at line 268 of file lpc17xx_i2c.h.
uint32_t tx_length |
Transmit data length - 0 if data transmit is not used.
Definition at line 270 of file lpc17xx_i2c.h.
Generated on Tue Jul 12 2022 17:06:03 by 1.7.2