Function esp_idf_hal::sys::sigmadelta_set_prescale
source · pub unsafe extern "C" fn sigmadelta_set_prescale(
channel: u32,
prescale: u8,
) -> i32
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