3.15.4 diag_clockline_freq.h File Reference

This file contains all the variable defintions and the prototypes for the APIs used in performing the Clock Line frequency test.

Includes

  1. ../../../diag_common/config/diag_config.h
  2. stdint.h
  3. stdlib.h
  4. xc.h

Enums

This enumeration contains return codes for SW_CLOCK_PERIODIC_MONITOR_02 diagnostics tests.

diag_clock_line_status_t
DIAG_CLOCK_TEST_PASS= 0

DIAG_CLOCK_TEST_FAIL

DIAG_CLOCK_TEST_IN_PROGRESS

2 - indicates that is still in progress

DIAG_CLOCK_TEST_COMPLETE

3 - indicates that is completed

DIAG_INVALID_INPUT_TOLERANCE

4 - indicates that input value is invalid

DIAG_INVALID_LINE_FREQ

5 - indicates that input value is invalid

Functions

Table 3-12. 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-13. voidDIAG_Timer1GateCutomInterruptHandler (void)
Parameters
void
Returns
void None