Home
last modified time | relevance | path

Searched refs:new_config (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/sensor/memsic/mmc56x3/
Dmmc56x3.c339 static int mmc56x3_chip_configure(const struct device *dev, struct mmc56x3_config *new_config) in mmc56x3_chip_configure() argument
346 if (new_config->magn_odr != config->magn_odr) { in mmc56x3_chip_configure()
347 ret = mmc56x3_chip_set_continuous_mode(dev, new_config->magn_odr); in mmc56x3_chip_configure()
350 if ((new_config->bw0 != config->bw0) || (new_config->bw1 != config->bw1)) { in mmc56x3_chip_configure()
351 ret = mmc56x3_chip_set_decimation_filter(dev, new_config->bw0, new_config->bw1); in mmc56x3_chip_configure()
354 if (new_config->auto_sr != config->auto_sr) { in mmc56x3_chip_configure()
364 struct mmc56x3_config new_config = {}; in mmc56x3_attr_set() local
375 new_config.magn_odr = val->val1; in mmc56x3_attr_set()
378 new_config.bw0 = val->val1 ? true : false; in mmc56x3_attr_set()
381 new_config.bw1 = val->val1 ? true : false; in mmc56x3_attr_set()
[all …]
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_rtio_stream.c20 struct icm42688_cfg new_config = data->cfg; in icm42688_submit_stream() local
22 new_config.interrupt1_drdy = false; in icm42688_submit_stream()
23 new_config.interrupt1_fifo_ths = false; in icm42688_submit_stream()
24 new_config.interrupt1_fifo_full = false; in icm42688_submit_stream()
28 new_config.interrupt1_drdy = true; in icm42688_submit_stream()
31 new_config.interrupt1_fifo_ths = true; in icm42688_submit_stream()
34 new_config.interrupt1_fifo_full = true; in icm42688_submit_stream()
43 if (new_config.interrupt1_drdy != data->cfg.interrupt1_drdy || in icm42688_submit_stream()
44 new_config.interrupt1_fifo_ths != data->cfg.interrupt1_fifo_ths || in icm42688_submit_stream()
45 new_config.interrupt1_fifo_full != data->cfg.interrupt1_fifo_full) { in icm42688_submit_stream()
[all …]
Dicm42688.c127 struct icm42688_cfg new_config = data->cfg; in icm42688_attr_set() local
138 new_config.accel_odr = icm42688_accel_hz_to_reg(val->val1); in icm42688_attr_set()
140 new_config.accel_fs = icm42688_accel_fs_to_reg(sensor_ms2_to_g(val)); in icm42688_attr_set()
151 new_config.gyro_odr = icm42688_gyro_odr_to_reg(val->val1); in icm42688_attr_set()
153 new_config.gyro_fs = icm42688_gyro_fs_to_reg(sensor_rad_to_degrees(val)); in icm42688_attr_set()
164 new_config.batch_ticks = val->val1; in icm42688_attr_set()
179 return icm42688_safely_configure(dev, &new_config); in icm42688_attr_set()
/Zephyr-latest/drivers/clock_control/
Dclock_control_esp32.c633 rtc_cpu_freq_config_t new_config; in esp32_cpu_clock_configure() local
693 ret = rtc_clk_cpu_freq_mhz_to_config(rtc_clk_cfg.cpu_freq_mhz, &new_config); in esp32_cpu_clock_configure()
694 if (!ret || (new_config.source != cpu_cfg->clk_src)) { in esp32_cpu_clock_configure()
699 rtc_clk_cpu_freq_set_config(&new_config); in esp32_cpu_clock_configure()