3.2.15.1 DIAG_MCLK_ClockCalibration

Returns the status of the MCLK_CLOCK_CALIBRATION diagnostic.

This function will perform frequency test on MCLK peripheral. This function will measure the frequency of the MCLK with reference clock.

DIAG_TEST_STATUS 
DIAG_MCLK_ClockCalibration
(
    uint32_t expected_mclk_freq
);

Diagnostic verifies the following faults do not exist

  • MCLK is not generated properly

Operating Mode

  • Interface can be used at POST
Precondition
  • none

Parameters

  • expected_mclk_freq - expected frequency of MCLK under test.

Returns

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