EasyManua.ls Logo

ST STM32F2

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
HAL USART Generic Driver
UM1940
678/1371
DocID028236 Rev 2
Function description
USART MSP DeInit.
Parameters
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
Return values
None:
HAL_USART_Transmit
Function name
HAL_StatusTypeDef HAL_USART_Transmit
(USART_HandleTypeDef * husart, uint8_t * pTxData, uint16_t
Size, uint32_t Timeout)
Function description
Simplex Send an amount of data in blocking mode.
Parameters
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
pTxData: Pointer to data buffer
Size: Amount of data to be sent
Timeout: Timeout duration
Return values
HAL: status
HAL_USART_Receive
Function name
HAL_StatusTypeDef HAL_USART_Receive
(USART_HandleTypeDef * husart, uint8_t * pRxData, uint16_t
Size, uint32_t Timeout)
Function description
Full-Duplex Receive an amount of data in blocking mode.
Parameters
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
pRxData: Pointer to data buffer
Size: Amount of data to be received
Timeout: Timeout duration
Return values
HAL: status
HAL_USART_TransmitReceive
Function name
HAL_StatusTypeDef HAL_USART_TransmitReceive
(USART_HandleTypeDef * husart, uint8_t * pTxData, uint8_t *
pRxData, uint16_t Size, uint32_t Timeout)
Function description
Full-Duplex Send receive an amount of data in full-duplex mode
(blocking mode).
Parameters
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
pTxData: Pointer to data transmitted buffer
pRxData: Pointer to data received buffer
Size: Amount of data to be sent
Timeout: Timeout duration

Table of Contents

Related product manuals