Page 1 of 1

mcpwm: Documentation mistake

Posted: Thu Jul 08, 2021 4:10 pm
by reugalab
Looking at the mcpwm documentation: https://docs.espressif.com/projects/esp ... mcpwm.html

I found a mistake or missleading information on several functions that have mcpwm_generator_t as parameter, such as: mcpwm_get_duty(mcpwm_unit_t , mcpwm_timer_t, mcpwm_operator_t)

The explanation of the parameter says:
"gen: set the generator(MCPWMXA/MCPWMXB), ‘x’ is operator number selected"

while in fact the values of gen should be MCPWM_GEN_A or MCPWM_GEN_B

Regards Federico

Re: mcpwm: Documentation mistake

Posted: Wed Jan 19, 2022 11:02 am
by congoblue
I am not sure if the constants are different using Arduino framework but MCPWM_GEN_A isn't defined for me.

It looks like the correct constant is "MCPWM_OPR_A" and "MCPWM_OPR_B"