/Zephyr-latest/samples/boards/st/i2c_timing/src/ |
D | main.c | 22 uint32_t i2c_cfg; in main() local 30 if (i2c_get_config(i2c_dev, (uint32_t *)&i2c_cfg)) { in main() 38 if ((I2C_SPEED_GET(i2c_cfg) == 1) && in main() 41 } else if ((I2C_SPEED_GET(i2c_cfg) == 2) && in main() 44 } else if ((I2C_SPEED_GET(i2c_cfg) == 3) && in main() 48 printk(" I2C speed mismatch (%d)\n", I2C_SPEED_GET(i2c_cfg)); in main()
|
/Zephyr-latest/tests/drivers/i2c/i2c_api/src/ |
D | test_i2c.c | 29 uint32_t i2c_cfg = I2C_SPEED_SET(I2C_SPEED_STANDARD) | I2C_MODE_CONTROLLER; variable 54 if (i2c_configure(i2c_dev, i2c_cfg)) { in test_gy271() 64 if (i2c_cfg != i2c_cfg_tmp) { in test_gy271() 135 if (i2c_configure(i2c_dev, i2c_cfg)) { in test_burst_gy271() 145 if (i2c_cfg != i2c_cfg_tmp) { in test_burst_gy271()
|
/Zephyr-latest/tests/boards/mec15xxevb_assy6853/i2c_api/src/ |
D | main.c | 29 uint32_t i2c_cfg = I2C_SPEED_SET(I2C_SPEED_STANDARD) | I2C_MODE_CONTROLLER; in ZTEST() local 37 ret = i2c_configure(i2c.bus, i2c_cfg); in ZTEST()
|
/Zephyr-latest/tests/boards/mec172xevb_assy6906/i2c_api/src/ |
D | main.c | 29 uint32_t i2c_cfg = I2C_SPEED_SET(I2C_SPEED_STANDARD) | I2C_MODE_CONTROLLER; in ZTEST() local 37 ret = i2c_configure(i2c.bus, i2c_cfg); in ZTEST()
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_at2x_emul.c | 62 uint32_t i2c_cfg; in at24_emul_transfer() local 73 if (i2c_get_config(data->i2c, &i2c_cfg)) { in at24_emul_transfer() 78 too_fast = (I2C_SPEED_GET(i2c_cfg) > I2C_SPEED_STANDARD); in at24_emul_transfer()
|
/Zephyr-latest/tests/boards/altera_max10/i2c_master/src/ |
D | i2c_master.c | 69 uint32_t i2c_cfg = I2C_SPEED_SET(I2C_SPEED_STANDARD) | I2C_MODE_CONTROLLER; in test_i2c_adv7513() local 78 if (i2c_configure(i2c_dev, i2c_cfg)) { in test_i2c_adv7513()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_mcux_flexcomm.c | 56 i2c_slave_config_t i2c_cfg; member 261 addr = &data->i2c_cfg.address0; in mcux_flexcomm_setup_i2c_config_address() 264 addr = &data->i2c_cfg.address1; in mcux_flexcomm_setup_i2c_config_address() 267 addr = &data->i2c_cfg.address2; in mcux_flexcomm_setup_i2c_config_address() 270 addr = &data->i2c_cfg.address3; in mcux_flexcomm_setup_i2c_config_address() 364 I2C_SlaveInit(base, &data->i2c_cfg, clock_freq); in mcux_flexcomm_setup_slave_config() 399 I2C_SlaveGetDefaultConfig(&data->i2c_cfg); in mcux_flexcomm_target_register()
|
/Zephyr-latest/drivers/sensor/hp206c/ |
D | hp206c.c | 27 uint32_t i2c_cfg; in hp206c_bus_config() local 29 i2c_cfg = I2C_MODE_CONTROLLER | I2C_SPEED_SET(I2C_SPEED_STANDARD); in hp206c_bus_config() 31 return i2c_configure(cfg->i2c.bus, i2c_cfg); in hp206c_bus_config()
|
/Zephyr-latest/drivers/sensor/bosch/bmg160/ |
D | bmg160.c | 26 uint32_t i2c_cfg; in bmg160_bus_config() local 28 i2c_cfg = I2C_MODE_CONTROLLER | I2C_SPEED_SET(BMG160_BUS_SPEED); in bmg160_bus_config() 30 return i2c_configure(dev_cfg->i2c.bus, i2c_cfg); in bmg160_bus_config()
|
/Zephyr-latest/tests/drivers/i2c/i2c_ram/src/ |
D | test_i2c_ram.c | 32 uint32_t i2c_cfg = I2C_SPEED_SET(I2C_SPEED_STANDARD) | I2C_MODE_CONTROLLER; variable 54 zassert_ok(i2c_configure(i2c_dev, i2c_cfg), "I2C config failed"); in i2c_ram_setup() 59 zassert_equal(i2c_cfg, i2c_cfg_tmp, in i2c_ram_setup()
|
/Zephyr-latest/drivers/crypto/ |
D | crypto_ataes132a.c | 165 uint32_t i2c_cfg; in ataes132a_init() local 174 i2c_cfg = I2C_MODE_CONTROLLER | I2C_SPEED_SET(ATAES132A_BUS_SPEED); in ataes132a_init() 176 i2c_configure(cfg->i2c.bus, i2c_cfg); in ataes132a_init()
|
/Zephyr-latest/drivers/video/ |
D | ov2640.c | 1057 uint32_t i2c_cfg = I2C_MODE_CONTROLLER | in ov2640_init_0() local 1060 if (i2c_configure(cfg->i2c.bus, i2c_cfg)) { in ov2640_init_0()
|