1.2.21.22 1.3.25.22 1.4.21.22 1.5.25.22 1.6.22.22 1.7.23.22 1.9.19.22 1.29.23.22 1.30.18.22 1.31.18.22 1.32.26.22 1.33.16.22 1.37.18.22 1.38.21.22 1.39.18.22 1.40.20.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