mcpwm: Documentation mistake
Posted: Thu Jul 08, 2021 4:10 pm
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
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