1 /*
2  * Copyright 2018, NXP
3  * All rights reserved.
4  *
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 #ifndef __SRTM_WM8524_ADAPTER_H__
10 #define __SRTM_WM8524_ADAPTER_H__
11 
12 #include "srtm_audio_service.h"
13 #include "fsl_wm8524.h"
14 #include "fsl_codec_common.h"
15 /*!
16  * @addtogroup srtm_service
17  * @{
18  */
19 
20 /*******************************************************************************
21  * Definitions
22  ******************************************************************************/
23 typedef struct _srtm_wm8524_config
24 {
25     wm8524_config_t config;
26 } srtm_wm8524_config_t;
27 
28 /*******************************************************************************
29  * API
30  ******************************************************************************/
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /*!
36  * @brief Create WM8524 adapter.
37  *
38  * @param driver WM8524 driver handle.
39  * @param config WM8524 driver configuration.
40  * @return SRTM WM8524 adapter on success or NULL on failure.
41  */
42 srtm_codec_adapter_t SRTM_Wm8524Adapter_Create(codec_handle_t *driver, srtm_wm8524_config_t *config);
43 
44 /*!
45  * @brief Destroy WM8524 adapter.
46  *
47  * @param adapter WM8524 adapter to destroy.
48  */
49 void SRTM_Wm8524Adapter_Destroy(srtm_codec_adapter_t adapter);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 /*! @} */
56 
57 #endif /* __SRTM_WM8524_ADAPTER_H__ */
58