• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., Ltd. All rights reserved.
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  * bt_task_msg.h
17  */
18 
19 #ifndef BT_TASK_MSG_H
20 #define BT_TASK_MSG_H
21 
22 enum APP_BT_HANDLER_REG_T {
23     HANDLER_REG_0 = 0,
24     HANDLER_REG_1,
25     HANDLER_REG_2,
26     HANDLER_REG_3,
27     HANDLER_REG_4,
28     HANDLER_REG_MAX
29 };
30 
31 typedef void (*APP_BT_HANDLER)(void);
32 
33 
34 int app_bt_handler_register(enum APP_BT_HANDLER_REG_T user, APP_BT_HANDLER handler);
35 void handler_reg_list_poll(void);
36 
37 #endif /* BT_TASK_MSG_H */
38 
39