Home
last modified time | relevance | path

Searched refs:mic_dev (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/samples/shields/x_nucleo_iks02a1/microphone/src/
Dmain.c52 const struct device *const mic_dev = DEVICE_DT_GET_ONE(st_mpxxdtyy); in main() local
54 if (!device_is_ready(mic_dev)) { in main()
55 printk("%s: device not ready.\n", mic_dev->name); in main()
59 ret = dmic_configure(mic_dev, &cfg); in main()
65 ret = dmic_trigger(mic_dev, DMIC_TRIGGER_START); in main()
73 ret = dmic_read(mic_dev, 0, &rx_block[ms], &rx_size, 2000); in main()
80 ret = dmic_trigger(mic_dev, DMIC_TRIGGER_STOP); in main()
/Zephyr-latest/samples/subsys/usb/audio/headphones_microphone/src/
Dmain.c19 static const struct device *const mic_dev = DEVICE_DT_GET_ONE(usb_audio_mic); variable
35 if (size == usb_audio_get_in_frame_size(mic_dev)) { in data_received()
36 ret = usb_audio_send(mic_dev, buffer, size); in data_received()
87 if (!device_is_ready(mic_dev)) { in main()
96 usb_audio_register(mic_dev, &mic_ops); in main()
/Zephyr-latest/samples/boards/96boards/argonkey/microphone/src/
Dmain.c114 const struct device *const mic_dev = DEVICE_DT_GET_ONE(st_mpxxdtyy); in main() local
116 if (!device_is_ready(mic_dev)) { in main()
117 printk("Device %s is not ready\n", mic_dev->name); in main()
121 ret = dmic_configure(mic_dev, &cfg); in main()
127 ret = dmic_trigger(mic_dev, DMIC_TRIGGER_START); in main()
137 ret = dmic_read(mic_dev, 0, &rx_block[ms], &rx_size, 2000); in main()
146 ret = dmic_trigger(mic_dev, DMIC_TRIGGER_STOP); in main()