• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
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  * Description: hcc channel.
15  * Author:
16  * Create: 2021-09-23
17  */
18 
19 #ifndef HCC_CHANNEL_HEADER
20 #define HCC_CHANNEL_HEADER
21 
22 #include "td_type.h"
23 #include "hcc.h"
24 #include "hcc_cfg_comm.h"
25 
26 #ifdef __cplusplus
27 #if __cplusplus
28 extern "C" {
29 #endif
30 #endif
31 td_s32 hcc_add_handler(hcc_handler *hcc);
32 td_void hcc_delete_handler(td_u8 chl);
33 hcc_handler *hcc_get_bus_handler(td_u8 bus_type);
34 
35 td_bool hcc_chan_is_busy(td_u8 chl);
36 #ifdef __cplusplus
37 #if __cplusplus
38 }
39 #endif
40 #endif
41 
42 #endif /* HCC_CHANNEL_HEADER */