• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  *  Copyright (C) 1999-2014 Broadcom Corporation
4  *  Copyright 2018-2019 NXP
5  *
6  *  Licensed under the Apache License, Version 2.0 (the "License");
7  *  you may not use this file except in compliance with the License.
8  *  You may obtain a copy of the License at:
9  *
10  *  http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *  Unless required by applicable law or agreed to in writing, software
13  *  distributed under the License is distributed on an "AS IS" BASIS,
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *  See the License for the specific language governing permissions and
16  *  limitations under the License.
17  *
18  ******************************************************************************/
19 /******************************************************************************
20  *
21  *  this file contains the UCI transport internal definitions and functions.
22  *
23  ******************************************************************************/
24 
25 #ifndef UWB_HAL_INT_H
26 #define UWB_HAL_INT_H
27 
28 #include "uci_defs.h"
29 #include "uwb_gki.h"
30 #include "uwb_hal_api.h"
31 
32 enum {
33   HAL_UWB_OPEN_CPLT_EVT = 0x00,
34   HAL_UWB_CLOSE_CPLT_EVT = 0x01,
35   HAL_UWB_ERROR_EVT = 0x02
36 };
37 
38 typedef uint8_t uwb_event_t;
39 typedef uint8_t uwb_status_t;
40 
41 /*`
42  * The callback passed in from the UWB stack that the HAL
43  * can use to pass events back to the stack.
44  */
45 typedef void(uwb_stack_callback_t)(uwb_event_t event,
46                                    uwb_status_t event_status);
47 
48 /*
49  * The callback passed in from the UWB stack that the HAL
50  * can use to pass incoming data to the stack.
51  */
52 typedef void(uwb_stack_data_callback_t)(uint16_t data_len, uint8_t* p_data);
53 
54 #endif /* UWB_HAL_INT_H */
55