This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C2000WARE: F2838x Driverlib API Errors

Part Number: C2000WARE


Tool/software:

Using C2000 v5.02, focusing mainly on epwm.h...

  1. As far as I understand it, the digital compare sub-module (DC) in the ePWM modules can take a multitude of inputs then perform some operations before sending the signals to the Trip-Zone module.

    One of the operations that can be performed by the DC is latching the event. I believe that the API call for configuring the latch is erroneously labeled EPWM_setDigitalCompareCBCLatchMode, with the CBC there being incorrect, again as far as I understand it, the latching part of the DC is not coupled directly to the CBC function at all.  The related Latch Clear and Latch Status functions also contain CBC.

  2. In line 6606 the function is erroneously described "Disable Digital Compare from generating Start of Conversion." even though it disables a Sync out event.  There are several similar errors throughout the entire driverlib.

  3. Anonymous structures.  In epwm.h (line 1604) an anonymous structure is defined that is typedef'd to EPWM_SignalParams.  By making this structure anonymous, it cannot be forward-declared. This breaks the ability to have the code de-coupled by creating a large amount of inter-dependence. Could you please simply add an identifier such as "typedef struct EPWM_SignalParams { ..} EPWM_SignalParams;" that will enable forward declaration?