Tool/software:
Using C2000 v5.02, focusing mainly on epwm.h...
- 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. - 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.
- 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?