3.2.5.4 DIAG_CAN_Initialize

Initialize the registers of the peripheral prior to functional testing.

This function initialize the registers of the peripheral prior to functional testing. This function must be called before all other functions.

DIAG_TEST_STATUS 
DIAG_CAN_Initialize
(
    DIAG_CAN_PERIPHS can_periph, 
    int id, 
    DIAG_CAN_LOOPBACK loopback
);

Diagnostic verifies the following faults do not exist

  • n/a

Operating Mode

  • Interface can be used at POST
Precondition
  • none

Parameters

  • can_periph - enum value for which CAN peripheral to be initialized
  • int id - filter id used to select messages
  • loopback - either NO_LOOPBACK, INT_LOOPBACK, or EXT_LOOPBACK

Returns

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