#include <stdint.h>
#include "esp_err.h"
Go to the source code of this file.
◆ motor_handle_t
◆ motor_t
◆ motor_new_mcpwm_device()
Create Motor based on MCPWM peripheral.
- Parameters
-
motor_config | Motor configuration |
mcpwm_config | MCPWM specific configuration |
ret_motor | Returned Motor handle |
- Returns
- ESP_OK: Create BDC Motor handle successfully
- ESP_ERR_INVALID_ARG: Create BDC Motor handle failed because of invalid argument
- ESP_ERR_NO_MEM: Create BDC Motor handle failed because of out of memory
- ESP_FAIL: Create BDC Motor handle failed because some other error