Lines Matching refs:bitrate
96 const uint32_t bitrate; member
265 static void IRAM_ATTR i2c_esp32_configure_bitrate(const struct device *dev, uint32_t bitrate) in i2c_esp32_configure_bitrate() argument
270 i2c_clock_source_t sclk = i2c_get_clk_src(bitrate); in i2c_esp32_configure_bitrate()
273 i2c_hal_set_bus_timing(&data->hal, bitrate, sclk, clk_freq_mhz); in i2c_esp32_configure_bitrate()
316 uint32_t bitrate; in i2c_esp32_configure() local
325 bitrate = KHZ(100); in i2c_esp32_configure()
328 bitrate = KHZ(400); in i2c_esp32_configure()
331 bitrate = MHZ(1); in i2c_esp32_configure()
342 i2c_esp32_configure_bitrate(dev, bitrate); in i2c_esp32_configure()
781 return i2c_esp32_configure(dev, I2C_MODE_CONTROLLER | i2c_map_dt_bitrate(config->bitrate)); in i2c_esp32_init()
806 #define I2C_ESP32_FREQUENCY(bitrate) \ argument
807 (bitrate == I2C_BITRATE_STANDARD ? KHZ(100) \
808 : bitrate == I2C_BITRATE_FAST ? KHZ(400) \
809 : bitrate == I2C_BITRATE_FAST_PLUS ? MHZ(1) : 0)
839 .bitrate = I2C_FREQUENCY(idx), \