Lines Matching refs:hi_cfg
159 const struct dwt_hi_cfg *hi_cfg = dev->config; in dwt_spi_read() local
187 if (spi_transceive(hi_cfg->bus.bus, ctx->spi_cfg, &tx, &rx)) { in dwt_spi_read()
203 const struct dwt_hi_cfg *hi_cfg = dev->config; in dwt_spi_write() local
215 if (spi_write(hi_cfg->bus.bus, ctx->spi_cfg, &buf_set)) { in dwt_spi_write()
324 const struct dwt_hi_cfg *hi_cfg = dev->config; in dwt_setup_int() local
330 gpio_pin_interrupt_configure_dt(&hi_cfg->irq_gpio, flags); in dwt_setup_int()
987 const struct dwt_hi_cfg *hi_cfg = dev->config; in dwt_hw_reset() local
989 if (gpio_pin_configure_dt(&hi_cfg->rst_gpio, GPIO_OUTPUT_ACTIVE)) { in dwt_hw_reset()
990 LOG_ERR("Failed to configure GPIO pin %u", hi_cfg->rst_gpio.pin); in dwt_hw_reset()
995 gpio_pin_set_dt(&hi_cfg->rst_gpio, 0); in dwt_hw_reset()
998 if (gpio_pin_configure_dt(&hi_cfg->rst_gpio, GPIO_INPUT)) { in dwt_hw_reset()
999 LOG_ERR("Failed to configure GPIO pin %u", hi_cfg->rst_gpio.pin); in dwt_hw_reset()
1021 const struct dwt_hi_cfg *hi_cfg = dev->config; in dwt_set_spi_fast() local
1024 ctx->spi_cfg = &hi_cfg->bus.config; in dwt_set_spi_fast()
1527 const struct dwt_hi_cfg *hi_cfg = dev->config; in dw1000_init() local
1533 memcpy(&ctx->spi_cfg_slow, &hi_cfg->bus.config, sizeof(ctx->spi_cfg_slow)); in dw1000_init()
1536 if (!spi_is_ready_dt(&hi_cfg->bus)) { in dw1000_init()
1544 if (!gpio_is_ready_dt(&hi_cfg->irq_gpio)) { in dw1000_init()
1549 if (gpio_pin_configure_dt(&hi_cfg->irq_gpio, GPIO_INPUT)) { in dw1000_init()
1550 LOG_ERR("Unable to configure GPIO pin %u", hi_cfg->irq_gpio.pin); in dw1000_init()
1555 BIT(hi_cfg->irq_gpio.pin)); in dw1000_init()
1557 if (gpio_add_callback(hi_cfg->irq_gpio.port, &(ctx->gpio_cb))) { in dw1000_init()
1563 if (!gpio_is_ready_dt(&hi_cfg->rst_gpio)) { in dw1000_init()
1568 if (gpio_pin_configure_dt(&hi_cfg->rst_gpio, GPIO_INPUT)) { in dw1000_init()
1569 LOG_ERR("Unable to configure GPIO pin %u", hi_cfg->rst_gpio.pin); in dw1000_init()