Smart Remote 3 nRF52 v1.2
Copy URL
Source
Modules
m_audio_frame.h
1
/*$$$LICENCE_NORDIC_STANDARD<2016>$$$*/
2
9
#ifndef __M_AUDIO_FRAME_H__
10
#define __M_AUDIO_FRAME_H__
11
12
#include <stdint.h>
13
#include "sdk_errors.h"
14
#include "sr3_config.h"
15
17
typedef
struct
18
{
19
uint8_t data[CONFIG_AUDIO_FRAME_SIZE_BYTES];
20
uint8_t reference_count;
21
uint16_t data_size;
22
}
m_audio_frame_t
;
23
28
ret_code_t
m_audio_frame_init
(
void
);
29
39
m_audio_frame_t
*
m_audio_frame_get
(
m_audio_frame_t
*p_frame);
40
47
void
m_audio_frame_put
(
m_audio_frame_t
*p_frame);
48
53
uint8_t
m_audio_frame_pool_current_utilization_get
(
void
);
54
59
uint8_t
m_audio_frame_pool_max_utilization_get
(
void
);
60
61
#endif
/* __M_AUDIO_FRAME_H__ */
62