Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/sensor/ti/tmag5273/
Dtmag5273.c96 const struct tmag5273_config *drv_cfg = dev->config; in tmag5273_reset_device_status() local
98 return i2c_reg_write_byte_dt(&drv_cfg->i2c, TMAG5273_REG_DEVICE_STATUS, in tmag5273_reset_device_status()
118 static int tmag5273_check_device_status(const struct tmag5273_config *drv_cfg, in tmag5273_check_device_status() argument
123 if (drv_cfg->ignore_diag_fail) { in tmag5273_check_device_status()
128 retval = i2c_reg_read_byte_dt(&drv_cfg->i2c, TMAG5273_REG_CONV_STATUS, device_status); in tmag5273_check_device_status()
140 retval = i2c_reg_read_byte_dt(&drv_cfg->i2c, TMAG5273_REG_DEVICE_STATUS, device_status); in tmag5273_check_device_status()
150 if (drv_cfg->crc_enabled && in tmag5273_check_device_status()
174 static inline int tmag5273_dev_int_trigger(const struct tmag5273_config *drv_cfg) in tmag5273_dev_int_trigger() argument
178 retval = gpio_pin_configure_dt(&drv_cfg->int_gpio, GPIO_OUTPUT); in tmag5273_dev_int_trigger()
183 retval = gpio_pin_set_dt(&drv_cfg->int_gpio, 1); in tmag5273_dev_int_trigger()
[all …]
/Zephyr-Core-3.7.0/drivers/gpio/
Dgpio_pcal64xxa.c127 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_pin_configure() local
181 rc = drv_cfg->chip_api->pins_cfg_apply(&drv_cfg->i2c, &pins_cfg); in pcal64xxa_pin_configure()
195 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_process_input() local
203 rc = drv_cfg->chip_api->inputs_read(&drv_cfg->i2c, &int_sources, &input_port); in pcal64xxa_process_input()
291 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_port_set_raw() local
312 rc = drv_cfg->chip_api->outputs_write(&drv_cfg->i2c, output); in pcal64xxa_port_set_raw()
351 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_pin_interrupt_configure() local
358 if (drv_cfg->gpio_interrupt.port == NULL) { in pcal64xxa_pin_interrupt_configure()
393 rc = drv_cfg->chip_api->triggers_apply(&drv_cfg->i2c, &triggers); in pcal64xxa_pin_interrupt_configure()
756 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_init() local
[all …]
Dgpio_pcf857x.c64 const struct pcf857x_drv_cfg *drv_cfg = dev->config; in pcf857x_process_input() local
69 rc = i2c_read_dt(&drv_cfg->i2c, rx_buf, drv_data->num_bytes); in pcf857x_process_input()
170 const struct pcf857x_drv_cfg *drv_cfg = dev->config; in pcf857x_port_set_raw() local
190 rc = i2c_write_dt(&drv_cfg->i2c, tx_buf_p, drv_data->num_bytes); in pcf857x_port_set_raw()
312 const struct pcf857x_drv_cfg *drv_cfg = dev->config; in pcf857x_pin_interrupt_configure() local
314 if (!drv_cfg->gpio_int.port) { in pcf857x_pin_interrupt_configure()
338 const struct pcf857x_drv_cfg *drv_cfg = dev->config; in pcf857x_init() local
342 if (!device_is_ready(drv_cfg->i2c.bus)) { in pcf857x_init()
343 LOG_ERR("%s is not ready", drv_cfg->i2c.bus->name); in pcf857x_init()
348 if (drv_cfg->gpio_int.port) { in pcf857x_init()
[all …]
Dgpio_tca6424a.c464 const struct tca6424a_drv_cfg *drv_cfg = dev->config; in tca6424a_init() local
468 if (!device_is_ready(drv_cfg->i2c_spec.bus)) { in tca6424a_init()
476 if (drv_cfg->reset_gpio.port) { in tca6424a_init()
477 if (!gpio_is_ready_dt(&drv_cfg->reset_gpio)) { in tca6424a_init()
478 LOG_ERR("%s is not ready", drv_cfg->reset_gpio.port->name); in tca6424a_init()
481 ret = gpio_pin_configure_dt(&drv_cfg->reset_gpio, GPIO_OUTPUT_ACTIVE); in tca6424a_init()
489 ret = gpio_pin_set_dt(&drv_cfg->reset_gpio, 0); in tca6424a_init()
522 if (drv_cfg->int_gpio.port) { in tca6424a_init()
523 if (!gpio_is_ready_dt(&drv_cfg->int_gpio)) { in tca6424a_init()
533 ret = gpio_pin_configure_dt(&drv_cfg->int_gpio, GPIO_INPUT); in tca6424a_init()
[all …]
Dgpio_esp32.c65 struct gpio_driver_config drv_cfg; member
498 .drv_cfg = { \
/Zephyr-Core-3.7.0/drivers/audio/
Ddmic_nrfx_pdm.c124 static bool check_pdm_frequencies(const struct dmic_nrfx_pdm_drv_cfg *drv_cfg, in check_pdm_frequencies() argument
137 (NRF_PDM_HAS_MCLKCONFIG && drv_cfg->clk_src == ACLK) in check_pdm_frequencies()
226 static bool find_suitable_clock(const struct dmic_nrfx_pdm_drv_cfg *drv_cfg, in find_suitable_clock() argument
246 if (check_pdm_frequencies(drv_cfg, config, pdm_cfg, ratio, in find_suitable_clock()
261 (void)check_pdm_frequencies(drv_cfg, config, pdm_cfg, ratio, in find_suitable_clock()
278 const struct dmic_nrfx_pdm_drv_cfg *drv_cfg = dev->config; in dmic_nrfx_pdm_configure() local
342 nrfx_cfg = drv_cfg->nrfx_def_cfg; in dmic_nrfx_pdm_configure()
350 nrfx_cfg.mclksrc = drv_cfg->clk_src == ACLK in dmic_nrfx_pdm_configure()
354 if (!find_suitable_clock(drv_cfg, &nrfx_cfg, config)) { in dmic_nrfx_pdm_configure()
364 err = nrfx_pdm_init(&nrfx_cfg, drv_cfg->event_handler); in dmic_nrfx_pdm_configure()
[all …]
/Zephyr-Core-3.7.0/drivers/i2s/
Di2s_nrfx.c62 static void find_suitable_clock(const struct i2s_nrfx_drv_cfg *drv_cfg, in find_suitable_clock() argument
81 (NRF_I2S_HAS_CLKCONFIG && drv_cfg->clk_src == ACLK) in find_suitable_clock()
422 const struct i2s_nrfx_drv_cfg *drv_cfg = dev->config; in i2s_nrfx_configure() local
451 nrfx_cfg = drv_cfg->nrfx_def_cfg; in i2s_nrfx_configure()
523 (nrf_i2s_mck_pin_get(drv_cfg->i2s.p_reg) & I2S_PSEL_MCK_CONNECT_Msk) in i2s_nrfx_configure()
525 find_suitable_clock(drv_cfg, &nrfx_cfg, i2s_cfg); in i2s_nrfx_configure()
531 drv_data->request_clock = (drv_cfg->clk_src != PCLK32M); in i2s_nrfx_configure()
743 const struct i2s_nrfx_drv_cfg *drv_cfg = dev->config; in trigger_start() local
750 err = nrfx_i2s_init(drv_data->p_i2s, nrfx_cfg, drv_cfg->data_handler); in trigger_start()
759 nrf_i2s_clk_configure(drv_cfg->i2s.p_reg, in trigger_start()
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/tdk/icm42688/
Dicm42688_rtio_stream.c62 const struct icm42688_dev_cfg *drv_cfg = dev->config; in icm42688_complete_cb() local
67 gpio_pin_interrupt_configure_dt(&drv_cfg->gpio_int1, GPIO_INT_EDGE_TO_ACTIVE); in icm42688_complete_cb()
74 const struct icm42688_dev_cfg *drv_cfg = dev->config; in icm42688_fifo_count_cb() local
89 gpio_pin_interrupt_configure_dt(&drv_cfg->gpio_int1, GPIO_INT_EDGE_TO_ACTIVE); in icm42688_fifo_count_cb()
182 const struct icm42688_dev_cfg *drv_cfg = dev->config; in icm42688_int_status_cb() local
210 gpio_pin_interrupt_configure_dt(&drv_cfg->gpio_int1, GPIO_INT_EDGE_TO_ACTIVE); in icm42688_int_status_cb()
256 gpio_pin_interrupt_configure_dt(&drv_cfg->gpio_int1, GPIO_INT_EDGE_TO_ACTIVE); in icm42688_int_status_cb()
/Zephyr-Core-3.7.0/drivers/spi/
Dspi_sam.c323 const struct spi_sam_config *drv_cfg = dev->config; in spi_sam_dma_txrx() local
339 .dma_slot = drv_cfg->dma_rx_perid, in spi_sam_dma_txrx()
371 .dma_slot = drv_cfg->dma_tx_perid, in spi_sam_dma_txrx()
399 res = dma_config(drv_cfg->dma_dev, drv_cfg->dma_rx_channel, &rx_dma_cfg); in spi_sam_dma_txrx()
405 res = dma_config(drv_cfg->dma_dev, drv_cfg->dma_tx_channel, &tx_dma_cfg); in spi_sam_dma_txrx()
412 res = dma_start(drv_cfg->dma_dev, drv_cfg->dma_rx_channel); in spi_sam_dma_txrx()
418 res = dma_start(drv_cfg->dma_dev, drv_cfg->dma_tx_channel); in spi_sam_dma_txrx()
421 dma_stop(drv_cfg->dma_dev, drv_cfg->dma_rx_channel); in spi_sam_dma_txrx()
/Zephyr-Core-3.7.0/drivers/serial/
Duart_emul.c149 const struct uart_emul_config *drv_cfg = dev->config; in uart_emul_poll_out() local
162 if (drv_cfg->loopback) { in uart_emul_poll_out()