Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
Data transfers management functions
[I2C_Private_Functions]
Data transfers management functions. More...
Functions | |
void | I2C_SendData (I2C_TypeDef *I2Cx, uint8_t Data) |
Sends a data byte through the I2Cx peripheral. | |
uint8_t | I2C_ReceiveData (I2C_TypeDef *I2Cx) |
Returns the most recent received data by the I2Cx peripheral. |
Detailed Description
Data transfers management functions.
=============================================================================== ##### Data transfers management functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the I2C data transfers. [..] The read access of the I2C_RXDR register can be done using the I2C_ReceiveData() function and returns the received value. Whereas a write access to the I2C_TXDR can be done using I2C_SendData() function and stores the written data into TXDR.
Function Documentation
uint8_t I2C_ReceiveData | ( | I2C_TypeDef * | I2Cx ) |
Returns the most recent received data by the I2Cx peripheral.
- Parameters:
-
I2Cx,: where x can be 1 or 2 to select the I2C peripheral.
- Return values:
-
The value of the received data.
Definition at line 1258 of file stm32f30x_i2c.c.
void I2C_SendData | ( | I2C_TypeDef * | I2Cx, |
uint8_t | Data | ||
) |
Sends a data byte through the I2Cx peripheral.
- Parameters:
-
I2Cx,: where x can be 1 or 2 to select the I2C peripheral. Data,: Byte to be transmitted..
- Return values:
-
None
Definition at line 1244 of file stm32f30x_i2c.c.
Generated on Tue Jul 12 2022 17:34:45 by
