3.3.13.1 SERCOMx_USART_ErrorGet

Gets the error of the given USART peripheral instance.

This function returns the errors associated with the given USART peripheral instance. Multiple error conditions may be active. The function return value should be matched against each member of the USART_ERROR enumeration to handle all error cases. Calling the SERCOMx_USART_Read will clear the errors. Hence error handling must be performed before these functions are called again.

USART_ERROR  
SERCOMx_USART_ErrorGet 
(
    void
);

Precondition

  • SERCOMx_USART_Initialize must have been called for the associated USART instance.

Parameters

  • void

Returns

  • void