nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
audio_module_template.h
Go to the documentation of this file.
1/*
2 * Copyright(c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6#ifndef _AUDIO_MODULE_TEMPLATE_H_
7#define _AUDIO_MODULE_TEMPLATE_H_
8
9#include <stdbool.h>
10#include <stddef.h>
11#include <stdint.h>
12#include "audio_defines.h"
13#include "audio_module.h"
14
15/* @brief Size of the data block within the template context, for testing. */
16#define AUDIO_MODULE_TEMPLATE_DATA_BYTES (10)
17
23
29 /* The sample rate, for testing. */
31
32 /* The bit depth, for testing. */
33 uint8_t bit_depth;
34
35 /* A string for testing.*/
37};
38
44 /* Array of data to illustrate the data process function. */
46
47 /* The template configuration. */
49};
50
51#endif /* _AUDIO_MODULE_TEMPLATE_H_ */
Globally accessible audio related defines.
struct audio_module_description * audio_module_template_description
Private pointer to the module's parameters.
#define AUDIO_MODULE_TEMPLATE_DATA_BYTES
Definition: audio_module_template.h:16
A module's minimum description.
Definition: audio_module.h:215
char * module_description
Definition: audio_module_template.h:36
uint32_t sample_rate_hz
Definition: audio_module_template.h:30
uint8_t bit_depth
Definition: audio_module_template.h:33
The module configuration structure.
Definition: audio_module_template.h:28
struct audio_module_template_configuration config
Definition: audio_module_template.h:48
uint8_t audio_module_template_data[(10)]
Definition: audio_module_template.h:45
Private module context.
Definition: audio_module_template.h:43