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.
Dependencies: BLE_API X_NUCLEO_IDB0XA1 X_NUCLEO_IKS01A1 mbed
Fork of HelloWorld_IKS01A1 by
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. In this mode, the USART_DR register consists of a buffer (RDR) between the internal bus and the received shift register. When a transmission is taking place, a write instruction to the USART_DR register stores the data in the TDR register and which is copied in the shift register at the end of the current transmission. The read access of the USART_DR register can be done using the USART_ReceiveData() function and returns the RDR buffered value. Whereas a write access to the USART_DR can be done using USART_SendData() function and stores the written data into TDR buffer.
Function Documentation
uint16_t USART_ReceiveData | ( | USART_TypeDef * | USARTx ) |
Returns the most recent received data by the USARTx peripheral.
- Parameters:
-
USARTx,: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or UART peripheral.
- Return values:
-
The received data.
Definition at line 560 of file stm32f4xx_usart.c.
void USART_SendData | ( | USART_TypeDef * | USARTx, |
uint16_t | Data | ||
) |
Transmits single data through the USARTx peripheral.
- Parameters:
-
USARTx,: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or UART peripheral. Data,: the data to transmit.
- Return values:
-
None
Definition at line 544 of file stm32f4xx_usart.c.
Generated on Tue Jul 12 2022 19:53:13 by
