Developer Guide

  • 2021.1
  • 11/03/2021
  • Public
Contents

Frequency Discipline Sample

Samples are intended to demonstrate how to write code using certain features. They are not performance benchmarks. Example output shown here is for illustration only. Your output may vary.
Frequency discipline is a Time-Aware GPIO (TGPIO) use case that combines the TGPIO hardware capability with software to generate a signal as close to the required frequency as possible (with the smallest period and phase error) by changing the TGPIO period repeatedly. The frequency discipline sample (tcc_frequency_discipline_sample) demonstrates this use case.

File Locations

After installing the Intel® TCC Tools package on the target system, you can find sample sources and binaries in the following directories:
Target system:
  • Sample sources:
    /usr/share/tcc_tools/samples/tcc_tgpio_samples/tcc_tgpio_frequency_discipline_sample
  • Sample binaries:
    /usr/bin

Source Files

File
Description
src/main.c
Main file containing sample
samples/common/include/tgpio.h
TGPIO service functions
../../common/include/tgpio_defs.h
Definitions for extended PTP-interface functions used by TGPIO driver interface
samples/common/src/tgpio.c
TGPIO service functions
../../../plot_scripts/frequency_discipline_sample_analyzer.py
Data analysis script

Learn More

Read more about this sample and try example commands:

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.