| 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,
31 BT_ERROR_GENERIC,
32 BT_ERROR_INVALID_PARM,
33 BT_ERROR_NOT_SUPPORT_YET,
34 BT_ERROR_NO_RESOURCE,
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,
46 }BT_EVENT_BASE;
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
BT_SUCCESS
Success.
Definition: bt_constants.h:30
BT_EVENT_SM
SM event.
Definition: bt_constants.h:44
BT_EVENT_GATT
GATT event.
Definition: bt_constants.h:45
BT_ERROR_NO_RESOURCE
Error, no resource.
Definition: bt_constants.h:34
BT_ERROR_GENERIC
Error, commonly.
Definition: bt_constants.h:31
BT_ERROR_NOT_SUPPORT_YET
Error, not support.
Definition: bt_constants.h:33
BT_EVENT_GAP
GAP event.
Definition: bt_constants.h:43
BT_EVENT_BASE
BT_EVENT_BASE
Event ID arrangement.
Definition: bt_constants.h:40
BT_EVENT_MISC
MISC event.
Definition: bt_constants.h:42
BT_ERROR_INVALID_PARM
Error, invalid parameter.
Definition: bt_constants.h:32
BT_STATUS
BT_STATUS
BT API execution status.
Definition: bt_constants.h:28