3.2.17.1 DIAG_OSCCTRL_ClkSwitch

Returns the status of the OSCCTRL_CLOCK_SWITCH diagnostic

This function verifies the switched to safe clock can occur.

DIAG_TEST_STATUS 
DIAG_OSCCTRL_ClkSwitch
(
     DIAG_CLK_SOURCE osc_periph
);

Diagnostic verifies the following faults do not exist

  • XOSC Clock Switch does not occur

Operating Mode

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

Parameters

  • osc_periph - oscillator to test

Returns

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