1.29.23.22 SERCOMx_USART_ReadAbort Function
C
/* x = SERCOM instance number */
/* Non-blocking mode */
bool SERCOMx_USART_ReadAbort(void)
Summary
Aborts the ongoing read request
Description
This API lets the application abort an ongoing read request. If needed, the application can call the SERCOMx_USART_ReadCountGet API to know the number of bytes successfully read before issuing the SERCOMx_USART_ReadAbort API.
Precondition
SERCOMx_USART_Initialize must have been called for the associated SERCOM_USART instance.
Parameters
None
Returns
true - operation is successful
false - error during execution
Example
bool timeout; if (timeout == true) { // Kill the ongoing read read request SERCOM0_USART_ReadAbort(); }
Remarks
None