Function esp_idf_sys::sigmadelta_set_prescale
source · pub unsafe extern "C" fn sigmadelta_set_prescale(
channel: sigmadelta_channel_t,
prescale: u8,
) -> esp_err_t
Expand description
@brief Set Sigma-delta channel’s clock pre-scale value. The source clock is APP_CLK, 80MHz. The clock frequency of the sigma-delta channel is APP_CLK / pre_scale
@param channel Sigma-delta channel number @param prescale The divider of source clock, ranges from 0 to 255
@return - ESP_OK Success - ESP_ERR_INVALID_STATE sigmadelta driver has not been initialized - ESP_ERR_INVALID_ARG Parameter error