Edge AI Add-on API
2.2.0
Loading...
Searching...
No Matches
dmic.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
13
#ifndef __DMIC_H__
14
#define __DMIC_H__
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
/* __cplusplus */
19
20
#define SAMPLES_BLOCK_LENGTH_MS (10)
21
#define DMIC_SAMPLE_BYTES (2)
22
#define DMIC_PCM_RATE (16000)
23
#define DMIC_SAMPLES_IN_BLOCK (DMIC_PCM_RATE * SAMPLES_BLOCK_LENGTH_MS / 1000)
24
30
int
dmic_init
(
void
);
31
37
void
free_dmic_buffer
(
void
*buffer);
38
39
#ifdef __cplusplus
40
}
41
#endif
/* __cplusplus */
42
43
#endif
/* __DMIC_H__ */
44
dmic_init
int dmic_init(void)
Initialize DMIC.
free_dmic_buffer
void free_dmic_buffer(void *buffer)
Free the audio buffer acquired with dmic_read.
applications
ww_kws
src
dmic.h
Generated on Thu Jul 9 2026 11:59:51 for Edge AI Add-on API by
1.12.0