Home
last modified time | relevance | path

Searched refs:high_period (Results 1 – 10 of 10) sorted by relevance

/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/
Di2c_ll.h206 static inline void i2c_ll_set_scl_timing(i2c_dev_t *hw, int high_period, int low_period) in i2c_ll_set_scl_timing() argument
208 …int high_period_output = high_period - 10; // The rising edge by open-drain output + internal pull… in i2c_ll_set_scl_timing()
211 hw->scl_high_period.scl_wait_high_period = high_period - high_period_output; in i2c_ll_set_scl_timing()
575 static inline void i2c_ll_get_scl_timing(i2c_dev_t *hw, int *high_period, int *low_period) in i2c_ll_get_scl_timing() argument
577 *high_period = hw->scl_high_period.scl_high_period + hw->scl_high_period.scl_wait_high_period; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/driver/include/driver/
Di2c.h493 esp_err_t i2c_set_period(i2c_port_t i2c_num, int high_period, int low_period);
506 esp_err_t i2c_get_period(i2c_port_t i2c_num, int *high_period, int *low_period);
/hal_espressif-3.6.0/components/driver/test/
Dtest_i2c.c168 int high_period, low_period; variable
176 TEST_ESP_OK(i2c_get_period(I2C_MASTER_NUM, &high_period, &low_period));
177 TEST_ASSERT_EQUAL_INT(I2C_SCL_HIGH_PERIOD_V, high_period);
183 TEST_ESP_OK(i2c_get_period(I2C_MASTER_NUM, &high_period, &low_period));
184 TEST_ASSERT_EQUAL_INT(300, high_period);
/hal_espressif-3.6.0/components/hal/
Di2c_hal.c142 void i2c_hal_get_scl_timing(i2c_hal_context_t *hal, int *high_period, int *low_period) in i2c_hal_get_scl_timing() argument
144 i2c_ll_get_scl_timing(hal->dev, high_period, low_period); in i2c_hal_get_scl_timing()
/hal_espressif-3.6.0/components/hal/esp32/include/hal/
Di2c_ll.h546 static inline void i2c_ll_get_scl_timing(i2c_dev_t *hw, int *high_period, int *low_period) in i2c_ll_get_scl_timing() argument
548 *high_period = hw->scl_high_period.period; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/driver/
Di2c.c705 esp_err_t i2c_set_period(i2c_port_t i2c_num, int high_period, int low_period) in i2c_set_period() argument
708 …ESP_RETURN_ON_FALSE((high_period <= I2C_SCL_HIGH_PERIOD_V) && (high_period > 0), ESP_ERR_INVALID_A… in i2c_set_period()
712 i2c_hal_set_scl_timing(&(i2c_context[i2c_num].hal), high_period, low_period); in i2c_set_period()
718 esp_err_t i2c_get_period(i2c_port_t i2c_num, int *high_period, int *low_period) in i2c_get_period() argument
720 …ESP_RETURN_ON_FALSE(i2c_num < I2C_NUM_MAX && high_period != NULL && low_period != NULL, ESP_ERR_IN… in i2c_get_period()
722 i2c_hal_get_scl_timing(&(i2c_context[i2c_num].hal), high_period, low_period); in i2c_get_period()
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/
Di2c_ll.h553 static inline void i2c_ll_get_scl_timing(i2c_dev_t *hw, int *high_period, int *low_period) in i2c_ll_get_scl_timing() argument
555 *high_period = hw->scl_high_period.period + hw->scl_high_period.scl_wait_high_period; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/
Di2c_ll.h564 static inline void i2c_ll_get_scl_timing(i2c_dev_t *hw, int *high_period, int *low_period) in i2c_ll_get_scl_timing() argument
566 *high_period = hw->scl_high_period.period + hw->scl_high_period.scl_wait_high_period; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/
Di2c_ll.h581 static inline void i2c_ll_get_scl_timing(i2c_dev_t *hw, int *high_period, int *low_period) in i2c_ll_get_scl_timing() argument
583 *high_period = hw->scl_high_period.period + hw->scl_high_period.scl_wait_high_period; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/hal/include/hal/
Di2c_hal.h398 void i2c_hal_get_scl_timing(i2c_hal_context_t *hal, int *high_period, int *low_period);