3.15.1 diag_clock_sosc_freq.c File Reference

This file contains the APIs to perform the Clock Test using a secondary oscillator crystal as reference.

Includes

  1. diag_clock_sosc_freq.h

Functions

Table 3-1. voiddiag_ClockTestSetup (void)
Parameters
void
Returns
None
Table 3-2. voiddiag_Timer1Restore (void)
Parameters
void
Returns
None
Table 3-3. voiddiag_ClockTestTimer (void)
Parameters
void
Returns
None
Table 3-4. diag_clock_status_tDIAG_Clock_SOSC (uint32_t clockFrequency, uint32_t referenceFrequency, uint8_t msec, uint8_t tolerance)
Parameters

[in] clockFrequency

uint32_t

- CPU system clock frequency value

[in] referenceFrequency

uint32_t

- Reference secondary oscillator frequency value

[in] msec

uint8_t

- Time in msec to run the test

[in] tolerance

uint8_t

- Limit for deviation frequency value

Returns
diag_clock_status_t DIAG_CLOCK_TEST_PASS - Success, DIAG_CLOCK_TEST_FAIL - Failure, DIAG_INVALID_NULL_INPUT - Invalid, DIAG_CLOCK_TEST_TIMEOUT - Timeout