mcpwm_new_operator() function
Create MCPWM operator
Arguments
config
MCPWM operator configuration
ret_oper
Returned MCPWM operator handle
Return value
- ESP_OK: Create MCPWM operator successfully - ESP_ERR_INVALID_ARG: Create MCPWM operator failed because of invalid argument - ESP_ERR_NO_MEM: Create MCPWM operator failed because out of memory - ESP_ERR_NOT_FOUND: Create MCPWM operator failed because can't find free resource - ESP_FAIL: Create MCPWM operator failed because of other error
mcpwm_new_operator() calls 14 functions:
![]()
mcpwm_new_operator()
mcpwm_new_operator() reads 21 variables and writes 2 variables:
![]()
mcpwm_new_operator()