4.1.1.3.1 DIAG_Clock_SOSC()

diag_clock_status_t DIAG_Clock_SOSC (uint32_t clockFrequency, uint32_t referenceFrequency, uint8_t msec, uint8_t tolerance)

For the Clock SOSC Diagnostic Test API to calculate and validate the frequency of the CPU clock using a reference Secondary Oscillator Crystal.

Parameters:
in clockFrequency

- CPU system clock frequency value

in referenceFrequency

- Reference secondary oscillator frequency value

in msec

- Time in msec to run the test

in tolerance

- Limit for deviation frequency value