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 functions
[USART_Private_Functions]
Data transfers functions. More...
Functions | |
| void | USART_SendData (USART_TypeDef *USARTx, uint16_t Data) |
| Transmits single data through the USARTx peripheral. | |
| uint16_t | USART_ReceiveData (USART_TypeDef *USARTx) |
| Returns the most recent received data by the USARTx peripheral. | |
Detailed Description
Data transfers functions.
===============================================================================
##### Data transfers functions #####
===============================================================================
[..] This subsection provides a set of functions allowing to manage
the USART data transfers.
[..] During an USART reception, data shifts in least significant bit first
through the RX pin. When a transmission is taking place, a write instruction to
the USART_TDR register stores the data in the shift register.
[..] The read access of the USART_RDR register can be done using
the USART_ReceiveData() function and returns the RDR value.
Whereas a write access to the USART_TDR can be done using USART_SendData()
function and stores the written data into TDR.
Function Documentation
| uint16_t USART_ReceiveData | ( | USART_TypeDef * | USARTx ) |
Returns the most recent received data by the USARTx peripheral.
- Parameters:
-
USARTx,: Select the USART peripheral. This parameter can be one of the following values: USART1 or USART2 or USART3 or UART4 or UART5.
- Return values:
-
The received data.
Definition at line 937 of file stm32f30x_usart.c.
| void USART_SendData | ( | USART_TypeDef * | USARTx, |
| uint16_t | Data | ||
| ) |
Transmits single data through the USARTx peripheral.
- Parameters:
-
USARTx,: Select the USART peripheral. This parameter can be one of the following values: USART1 or USART2 or USART3 or UART4 or UART5. Data,: the data to transmit.
- Return values:
-
None
Definition at line 921 of file stm32f30x_usart.c.
Generated on Tue Jul 12 2022 17:34:46 by
1.7.2