Airoha M0 BLE API  1.0.5.4
D:/OneDrive/work/work_airoha/temporary_folder/1600/Trunk/components/BT/bt_constants.h
1 /******************************************************************************
2 Copyright (c) Airoha 2016 - All rights reserved
3 
4 FILE NAME
5  bt_constants.h
6 DESCRIPTION
7 NOTES
8 ********************************************************************************/
9 #ifndef __BT_ERROR_HH
10 #define __BT_ERROR_HH
11 #include <stdint.h>
12 
21 /*************************************************************************
22 * Typedef
23 *************************************************************************/
24 
28 typedef enum
29 {
30  BT_SUCCESS = 0,
35 }BT_STATUS;
36 
40 typedef enum
41 {
42  BT_EVENT_MISC = 0x0000,
43  BT_EVENT_GAP = 0x1000,
44  BT_EVENT_SM = 0x2000,
45  BT_EVENT_GATT = 0x3000,
47 
48 
52 #define MAX_NUM_LE_LINK 16
53 
57 #define BLE_ADDR_LEN 6
58 
62 #define BLE_GAP_SEC_RAND_LEN 8
63 
67 #define BLE_GAP_SEC_KEY_LEN 16
68 
72 #define BLE_GAP_PASSKEY_LEN 6
73 
77 #endif
Success.
Definition: bt_constants.h:30
SM event.
Definition: bt_constants.h:44
GATT event.
Definition: bt_constants.h:45
Error, no resource.
Definition: bt_constants.h:34
Error, commonly.
Definition: bt_constants.h:31
Error, not support.
Definition: bt_constants.h:33
GAP event.
Definition: bt_constants.h:43
BT_EVENT_BASE
Event ID arrangement.
Definition: bt_constants.h:40
MISC event.
Definition: bt_constants.h:42
Error, invalid parameter.
Definition: bt_constants.h:32
BT_STATUS
BT API execution status.
Definition: bt_constants.h:28