Lines Matching full:pdm
25 const nrfx_pdm_t *pdm; member
59 nrfx_pdm_stop(drv_data->pdm); in stop_pdm()
85 err = nrfx_pdm_buffer_set(drv_data->pdm, buffer, drv_data->block_size / 2); in event_handler()
360 LOG_INF("PDM clock frequency: %u, actual PCM rate: %u", in find_suitable_clock()
421 nrfx_pdm_uninit(drv_data->pdm); in dmic_nrfx_pdm_configure()
446 LOG_ERR("Cannot find suitable PDM clock configuration."); in dmic_nrfx_pdm_configure()
451 nrfx_pdm_uninit(drv_data->pdm); in dmic_nrfx_pdm_configure()
455 err = nrfx_pdm_init(drv_data->pdm, &nrfx_cfg, drv_cfg->event_handler); in dmic_nrfx_pdm_configure()
457 LOG_ERR("Failed to initialize PDM: 0x%08x", err); in dmic_nrfx_pdm_configure()
479 err = nrfx_pdm_start(drv_data->pdm); in start_transfer()
484 LOG_ERR("Failed to start PDM: 0x%08x", err); in start_transfer()
554 nrfx_pdm_stop(drv_data->pdm); in dmic_nrfx_pdm_trigger()
631 #define PDM(idx) DT_NODELABEL(pdm##idx) macro
632 #define PDM_CLK_SRC(idx) DT_STRING_TOKEN(PDM(idx), clock_source)
635 static void *rx_msgs##idx[DT_PROP(PDM(idx), queue_size)]; \
640 IRQ_CONNECT(DT_IRQN(PDM(idx)), DT_IRQ(PDM(idx), priority), \
648 dmic_nrfx_pdm_data##idx.pdm = &dmic_nrfx_pdm##idx; \
658 event_handler(DEVICE_DT_GET(PDM(idx)), evt); \
660 PINCTRL_DT_DEFINE(PDM(idx)); \
666 .pcfg = PINCTRL_DT_DEV_CONFIG_GET(PDM(idx)), \
668 .mem_reg = DMM_DEV_TO_REG(PDM(idx)), \
677 DEVICE_DT_DEFINE(PDM(idx), pdm_nrfx_init##idx, NULL, \