components/driver/i2s.c
/**
 * @brief   Get clock set on particular port number.
 *
 * @param   i2s_num         I2S device number
 * @return
 *      - sample rate
 */
@brief   Get clock set on particular port number.
@param   i2s_num         I2S device number
@return
- sample rate
@brief Get clock set on particular port number . @param i2s_num I2S device number @return - sample rate
float i2s_get_clk(i2s_port_t i2s_num)
{
    ESP_RETURN_ON_FALSE((i2s_num < I2S_NUM_MAX), ESP_ERR_INVALID_ARG, TAG, "i2s_num error");
    return (float)p_i2s[i2s_num]->hal_cfg.sample_rate;
}
float i2s_get_clk ( i2s_port_t i2s_num ) { ESP_RETURN_ON_FALSE ( ( i2s_num < I2S_NUM_MAX ) , ESP_ERR_INVALID_ARG , TAG , " " ) ; return ( float ) p_i2s [ i2s_num ] -> hal_cfg . sample_rate ; }
@brief   Get clock set on particular port number.
@brief Get clock set on particular port number .