3.2.24.7 DIAG_SERCOM_USART_Transmit1

Returns the status of the USART_LOOPBACK and USART_INTERRUPTS diagnostics

This function verifies a single byte over the interface using external loopback, and check that it is received.

DIAG_TEST_STATUS 
DIAG_SERCOM_USART_Transmit1
(
    DIAG_SERCOM_USART_PERIPHS SERCOM_USART_periph
);

Diagnostic verifies the following faults do not exist

  • Transmitted data is incorrect
  • Received data is incorrect

Operating Mode

  • Interface can be used at POST and ‘On Demand’
Precondition
  • none

Parameters

  • SERCOM_USART_periph - enum value for which SERCOM_USART

Returns

  • DIAG_TEST_PASSED if no faults were found, otherwise, DIAG_TEST_FAILED.