nRF Connect SDK API
2.8.99
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
22
extern
struct
audio_module_description
*
audio_module_template_description
;
23
28
struct
audio_module_template_configuration
{
29
/* The sample rate, for testing. */
30
uint32_t
sample_rate_hz
;
31
32
/* The bit depth, for testing. */
33
uint8_t
bit_depth
;
34
35
/* A string for testing.*/
36
char
*
module_description
;
37
};
38
43
struct
audio_module_template_context
{
44
/* Array of data to illustrate the data process function. */
45
uint8_t
audio_module_template_data
[
AUDIO_MODULE_TEMPLATE_DATA_BYTES
];
46
47
/* The template configuration. */
48
struct
audio_module_template_configuration
config
;
49
};
50
51
#endif
/* _AUDIO_MODULE_TEMPLATE_H_ */
audio_defines.h
Globally accessible audio related defines.
audio_module.h
audio_module_template_description
struct audio_module_description * audio_module_template_description
Private pointer to the module's parameters.
AUDIO_MODULE_TEMPLATE_DATA_BYTES
#define AUDIO_MODULE_TEMPLATE_DATA_BYTES
Definition
audio_module_template.h:16
audio_module_description
A module's minimum description.
Definition
audio_module.h:215
audio_module_template_configuration::module_description
char * module_description
Definition
audio_module_template.h:36
audio_module_template_configuration::sample_rate_hz
uint32_t sample_rate_hz
Definition
audio_module_template.h:30
audio_module_template_configuration::bit_depth
uint8_t bit_depth
Definition
audio_module_template.h:33
audio_module_template_configuration
The module configuration structure.
Definition
audio_module_template.h:28
audio_module_template_context::config
struct audio_module_template_configuration config
Definition
audio_module_template.h:48
audio_module_template_context::audio_module_template_data
uint8_t audio_module_template_data[(10)]
Definition
audio_module_template.h:45
audio_module_template_context
Private module context.
Definition
audio_module_template.h:43
include
audio
audio_module_template.h
Generated on Tue Nov 5 2024 16:02:08 for nRF Connect SDK API by
1.12.0