Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/gpio/
Dgpio_pcal64xxa.c115 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_pin_configure() local
169 rc = drv_cfg->chip_api->pins_cfg_apply(&drv_cfg->i2c, &pins_cfg); in pcal64xxa_pin_configure()
183 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_process_input() local
191 rc = drv_cfg->chip_api->inputs_read(&drv_cfg->i2c, &int_sources, &input_port); in pcal64xxa_process_input()
277 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_port_set_raw() local
298 rc = drv_cfg->chip_api->outputs_write(&drv_cfg->i2c, output); in pcal64xxa_port_set_raw()
337 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_pin_interrupt_configure() local
344 if (drv_cfg->gpio_interrupt.port == NULL) { in pcal64xxa_pin_interrupt_configure()
379 rc = drv_cfg->chip_api->triggers_apply(&drv_cfg->i2c, &triggers); in pcal64xxa_pin_interrupt_configure()
742 const struct pcal64xxa_drv_cfg *drv_cfg = dev->config; in pcal64xxa_init() local
[all …]
Dgpio_pcf8574.c54 const struct pcf8574_drv_cfg *drv_cfg = dev->config; in pcf8574_process_input() local
59 rc = i2c_read_dt(&drv_cfg->i2c, &rx_buf, sizeof(rx_buf)); in pcf8574_process_input()
160 const struct pcf8574_drv_cfg *drv_cfg = dev->config; in pcf8574_port_set_raw() local
178 rc = i2c_write_dt(&drv_cfg->i2c, &tx_buf, sizeof(tx_buf)); in pcf8574_port_set_raw()
302 const struct pcf8574_drv_cfg *drv_cfg = dev->config; in pcf8574_pin_interrupt_configure() local
304 if (!drv_cfg->gpio_int.port) { in pcf8574_pin_interrupt_configure()
328 const struct pcf8574_drv_cfg *drv_cfg = dev->config; in pcf8574_init() local
332 if (!device_is_ready(drv_cfg->i2c.bus)) { in pcf8574_init()
333 LOG_ERR("%s is not ready", drv_cfg->i2c.bus->name); in pcf8574_init()
338 if (drv_cfg->gpio_int.port) { in pcf8574_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.c56 struct gpio_driver_config drv_cfg; member
489 .drv_cfg = { \
/Zephyr-Core-3.5.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.5.0/drivers/i2s/
Di2s_nrfx.c57 static void find_suitable_clock(const struct i2s_nrfx_drv_cfg *drv_cfg, in find_suitable_clock() argument
76 (NRF_I2S_HAS_CLKCONFIG && drv_cfg->clk_src == ACLK) in find_suitable_clock()
403 const struct i2s_nrfx_drv_cfg *drv_cfg = dev->config; in i2s_nrfx_configure() local
432 nrfx_cfg = drv_cfg->nrfx_def_cfg; in i2s_nrfx_configure()
505 find_suitable_clock(drv_cfg, &nrfx_cfg, i2s_cfg); in i2s_nrfx_configure()
511 drv_data->request_clock = (drv_cfg->clk_src != PCLK32M); in i2s_nrfx_configure()
715 const struct i2s_nrfx_drv_cfg *drv_cfg = dev->config; in trigger_start() local
722 err = nrfx_i2s_init(drv_data->p_i2s, nrfx_cfg, drv_cfg->data_handler); in trigger_start()
731 nrf_i2s_clk_configure(drv_cfg->i2s.p_reg, in trigger_start()
732 drv_cfg->clk_src == ACLK ? NRF_I2S_CLKSRC_ACLK in trigger_start()
[all …]
/Zephyr-Core-3.5.0/drivers/spi/
Dspi_sam.c322 const struct spi_sam_config *drv_cfg = dev->config; in spi_sam_dma_txrx() local
338 .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()
400 res = dma_config(drv_cfg->dma_dev, drv_cfg->dma_rx_channel, &rx_dma_cfg); in spi_sam_dma_txrx()
406 res = dma_config(drv_cfg->dma_dev, drv_cfg->dma_tx_channel, &tx_dma_cfg); in spi_sam_dma_txrx()
413 res = dma_start(drv_cfg->dma_dev, drv_cfg->dma_rx_channel); in spi_sam_dma_txrx()
419 res = dma_start(drv_cfg->dma_dev, drv_cfg->dma_tx_channel); in spi_sam_dma_txrx()
422 dma_stop(drv_cfg->dma_dev, drv_cfg->dma_rx_channel); in spi_sam_dma_txrx()
/Zephyr-Core-3.5.0/drivers/serial/
Duart_emul.c71 const struct uart_emul_config *drv_cfg = dev->config; in uart_emul_poll_out() local
84 if (drv_cfg->loopback) { in uart_emul_poll_out()