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_OWNSLAVEADDR_CFG_Type Struct Reference
[I2C_Public_Types]
I2C Own slave address setting structure. More...
#include <lpc17xx_i2c.h>
Data Fields | |
uint8_t | SlaveAddrChannel |
Slave Address channel in I2C control, should be in range from 0..3. | |
uint8_t | SlaveAddr_7bit |
Value of 7-bit slave address. | |
uint8_t | GeneralCallState |
Enable/Disable General Call Functionality when I2C control being in Slave mode, should be:
| |
uint8_t | SlaveAddrMaskValue |
Any bit in this 8-bit value (bit 7:1) which is set to '1' will cause an automatic compare on the corresponding bit of the received address when it is compared to the SlaveAddr_7bit value associated with this mask register. |
Detailed Description
I2C Own slave address setting structure.
Definition at line 243 of file lpc17xx_i2c.h.
Field Documentation
uint8_t GeneralCallState |
Enable/Disable General Call Functionality when I2C control being in Slave mode, should be:
- ENABLE: Enable General Call function.
- DISABLE: Disable General Call function.
Definition at line 248 of file lpc17xx_i2c.h.
uint8_t SlaveAddr_7bit |
Value of 7-bit slave address.
Definition at line 247 of file lpc17xx_i2c.h.
uint8_t SlaveAddrChannel |
Slave Address channel in I2C control, should be in range from 0..3.
Definition at line 244 of file lpc17xx_i2c.h.
uint8_t SlaveAddrMaskValue |
Any bit in this 8-bit value (bit 7:1) which is set to '1' will cause an automatic compare on the corresponding bit of the received address when it is compared to the SlaveAddr_7bit value associated with this mask register.
In other words, bits in SlaveAddr_7bit value which are masked are not taken into account in determining an address match
Definition at line 253 of file lpc17xx_i2c.h.
Generated on Tue Jul 12 2022 17:06:03 by 1.7.2