Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/hal/
Di2c_hal.c47 void i2c_hal_set_scl_timing(i2c_hal_context_t *hal, int hight_period, int low_period) in i2c_hal_set_scl_timing() argument
49 i2c_ll_set_scl_timing(hal->dev, hight_period, low_period); in i2c_hal_set_scl_timing()
142 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.h182 static inline void i2c_ll_set_scl_timing(i2c_dev_t *hw, int hight_period, int low_period) in i2c_ll_set_scl_timing() argument
184 hw->scl_low_period.period = low_period; in i2c_ll_set_scl_timing()
546 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
549 *low_period = hw->scl_low_period.period; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/
Di2c_ll.h186 static inline void i2c_ll_set_scl_timing(i2c_dev_t *hw, int hight_period, int low_period) in i2c_ll_set_scl_timing() argument
188 hw->scl_low_period.period = low_period-1; in i2c_ll_set_scl_timing()
553 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
556 *low_period = hw->scl_low_period.period + 1; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/
Di2c_ll.h212 static inline void i2c_ll_set_scl_timing(i2c_dev_t *hw, int hight_period, int low_period) in i2c_ll_set_scl_timing() argument
214 hw->scl_low_period.period = low_period - 1; in i2c_ll_set_scl_timing()
564 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
567 *low_period = hw->scl_low_period.period + 1; in i2c_ll_get_scl_timing()
/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
209 hw->scl_low_period.scl_low_period = low_period - 1; 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
578 *low_period = hw->scl_low_period.scl_low_period + 1; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/
Di2c_ll.h216 static inline void i2c_ll_set_scl_timing(i2c_dev_t *hw, int hight_period, int low_period) in i2c_ll_set_scl_timing() argument
218 hw->scl_low_period.period = low_period - 1; in i2c_ll_set_scl_timing()
581 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
584 *low_period = hw->scl_low_period.period + 1; in i2c_ll_get_scl_timing()
/hal_espressif-3.6.0/components/hal/include/hal/
Di2c_hal.h202 void i2c_hal_set_scl_timing(i2c_hal_context_t *hal, int hight_period, int low_period);
398 void i2c_hal_get_scl_timing(i2c_hal_context_t *hal, int *high_period, int *low_period);
/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));
178 TEST_ASSERT_EQUAL_INT(I2C_SCL_HIGH_PERIOD_V, low_period);
183 TEST_ESP_OK(i2c_get_period(I2C_MASTER_NUM, &high_period, &low_period));
185 TEST_ASSERT_EQUAL_INT(400, low_period);
/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
709 …ESP_RETURN_ON_FALSE((low_period <= I2C_SCL_LOW_PERIOD_V) && (low_period > 0), ESP_ERR_INVALID_ARG,… 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()