SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
This section details the QepOnClb Library functions. For information on locating the source code and rebuilding the library, see Section 7.
QepOnClb include file: pto_qeponclb.h
Name | Description | Type |
---|---|---|
pto_qeponclb_setupPeriph | Setup for CLB and other interconnect XBARs is performed with this function during system initialization. This function needs to be called after every system reset. No decoding can be done until the setup peripheral function is called. | Initialization Time |
pto_qeponclb_initCLBQEP | Helper function that initializes the CLB peripheral to simulate a QEP decoder. This function is used in the pto_qeponclb_setupPeriph function as a part of the CLBQEP system initialization. | Initialization Time |
pto_qeponclb_configMaxCounterPos | This function configures the maximum counter value for the CLBQEP and loads it as a parameter in the CLB tile. | Initialization Time |
pto_qeponclb_enableCLBQEP | Used to enable the CLBQEP counter to begin decoding. The CLBQEP counter needs to be initialized prior to enabling. | Run Time |
pto_qeponclb_resetCLBQEP | Used to reset the CLBQEP parameters set by earlier configuration. This function needs to be called in case the counter needs to be reset and started again at a later instance. | Run Time |
pto_qeponclb_getCounterVal | This function captures the current value of counter 0 from the CLB. | Run Time |
pto_qeponclb_getCLBQEPPos | This function is to be called when wanting to capture the current position of the CLB-based QEP peripheral from the CLB. | Run Time |
pto_qeponclb_clearFIFOptr | This function is to be called when needing to clear the FIFO pointer from the CLB. This function needs to be called subsequently after reading a FIFO value pushed by the HLC so that the next PUSH will be in the correct position. | Run Time |