1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef FEEDBACK_H_
8 #define FEEDBACK_H_
9 
10 #include <stdint.h>
11 
12 /* Nominal number of samples received on each SOF. This sample is currently
13  * supporting only 48 kHz sample rate.
14  */
15 #define SAMPLES_PER_SOF     48
16 
17 struct feedback_ctx *feedback_init(void);
18 void feedback_reset_ctx(struct feedback_ctx *ctx);
19 void feedback_process(struct feedback_ctx *ctx);
20 void feedback_start(struct feedback_ctx *ctx, int i2s_blocks_queued);
21 uint32_t feedback_value(struct feedback_ctx *ctx);
22 
23 #endif /* FEEDBACK_H_ */
24