3.2.5.3 DIAG_CAN_Enable

Returns the status of the CAN_ENABLE diagnostic

This function disables the peripheral, then verifies that it has been disabled.

DIAG_TEST_STATUS 
DIAG_CAN_Enable
    (
        DIAG_CAN_PERIPHS can_periph
    );

Diagnostic verifies the following faults do not exist

  • CAN will not turn on

Operating Mode

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

Parameters

  • can_periph - enum value for which CAN peripheral

Returns

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