HAL_USART_Receive_IT() function
Simplex Receive an amount of data in non-blocking mode.
Arguments
husart
Pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module.
pRxData
Pointer to data buffer (u8 or u16 data elements).
Size
Amount of data elements (u8 or u16) to be received.
Return value
HAL status
Notes
To receive synchronous data, dummy data are simultaneously transmitted. When USART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), the received data is handled as a set of u16. In this case, Size must indicate the number of u16 available through pRxData.