• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 
16 #pragma once
17 
18 #include <driver/sbc_types.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 
25 void sbc_decoder_hal_sbc_config(const sbc_config_t *config)
26 ;
27 
28 void sbc_decoder_hal_sbc_enable(void);
29 
30 uint32_t sbc_decoder_hal_get_sbc_status_value(void);
31 
32 void sbc_decoder_hal_sbc_support_msbc(bool enable);
33 
34 uint32_t sbc_decoder_hal_get_sbc_ctrl_value(void);
35 
36 void sbc_decoder_hal_sbc_clear_interrupt_status(void);
37 
38 uint32_t sbc_decoder_hal_get_sbc_interrupt_status(void);
39 
40 uint32_t sbc_decoder_hal_get_sbc_idle_status(void);
41 
42 void sbc_decoder_hal_set_res_bytel_value(uint32_t bytel_value);
43 
44 void sbc_decoder_hal_set_res_bytem_value(uint32_t bytem_value);
45 
46 void sbc_decoder_hal_set_res_byteh_value(uint32_t byteh_value);
47 
48 void sbc_decoder_hal_set_sbc_bit_num(uint32_t value);
49 
50 void sbc_decoder_hal_set_scale_factor(uint32_t value);
51 
52 void sbc_decoder_hal_set_sbc_level(uint32_t value);
53 
54 void sbc_decoder_hal_set_sbc_res_bit(uint32_t value);
55 
56 void sbc_decoder_hal_decode_enable(void);
57 
58 uint32_t sbc_decoder_hal_get_decode_enable_value(void);
59 
60 uint32_t sbc_decoder_hal_get_pcm_data(void);
61 
62 void sbc_decoder_hal_mem_init(void);
63 
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 
70 
71