UserDataTreatment() function
This function handles buffer containing received data on PC com port
Arguments
pData
Pointer on received data buffer to be processed
Return value
Size Nb of received characters available in buffer
Notes
In this example, received data are sent back on UART Tx (loopback) Any other processing such as copying received data in a larger buffer to make it available for application, could be implemented here. This routine is executed in Interrupt context.