[][src]Function esp_idf_sys::mcpwm_carrier_oneshot_mode_enable

pub unsafe extern "C" fn mcpwm_carrier_oneshot_mode_enable(
    mcpwm_num: mcpwm_unit_t,
    timer_num: mcpwm_timer_t,
    pulse_width: u8
) -> esp_err_t

@brief Enable and set width of first pulse in carrier oneshot mode

@param mcpwm_num set MCPWM unit(0-1) @param timer_num set timer number(0-2) of MCPWM, each MCPWM unit has 3 timers @param pulse_width set pulse width of first pulse in oneshot mode, width = (carrier period)*(pulse_width +1) (pulse_width <= 15)

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error