3.2.12.1 DIAG_FREQM_Calibration

Returns the status of the FREQM_CLOCK_CALIBRATION diagnostic

This function performs the calibration test on FREQM.This function will measure the frequency of the clock with reference clock frequency.

DIAG_TEST_STATUS 
DIAG_FREQM_Calibration
(
    DIAG_GCLK_PERIPHS gclk_ref, 
    DIAG_GCLK_PERIPHS gclk_meas

);

Diagnostic verifies the following faults do not exist

  • FREQM is not generated properly

Operating Mode

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

Parameters

  • void

Returns

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