Function esp_idf_svc::hal::sys::i2c_get_period
source ยท pub unsafe extern "C" fn i2c_get_period(
i2c_num: u32,
high_period: *mut i32,
low_period: *mut i32,
) -> i32
Expand description
@brief Get I2C master clock period
@param i2c_num I2C port number @param high_period pointer to get clock cycle number during SCL is high level, will get a 14 bit value @param low_period pointer to get clock cycle number during SCL is low level, will get a 14 bit value
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error