3.15.3 diag_clockline_freq.c File Reference

This file contains the APIs to perform the Clock Line frequency test.

Includes

  1. diag_clockline_freq.h
  2. ../../../tmr1.h

Functions

Table 3-9. voidDIAG_InputPulseCapture (void)
Parameters
void
Returns
void None
Table 3-10. diag_clock_line_status_tDIAG_ClockLineFreq (uint32_t sysclock, uint8_t linefreq, uint8_t tolerance)
Parameters

[in] sysclock

uint32_t

- CPU system clock frequency value

[in] linefreq

uint8_t

- Reference line frequency value

[in] tolerance

uint8_t

- Limit for deviation frequency value

Returns
diag_clock_line_status_t DIAG_CLOCK_TEST_PASS - Success, DIAG_CLOCK_TEST_FAIL - Failure, DIAG_CLOCK_TEST_IN_PROGRESS - In-Progress, DIAG_CLOCK_TEST_COMPLETE - Complete, DIAG_INVALID_INPUT_TOLERANCE - Invalid, DIAG_INVALID_LINE_FREQ - Invalid
Table 3-11. voidDIAG_Timer1GateCutomInterruptHandler (void)
Parameters
void
Returns
void None