Airoha M0 BLE API  1.0.5.4
bt_contants.h

Macros

#define MAX_NUM_LE_LINK   16
 Maximal Link number.
 
#define BLE_ADDR_LEN   6
 BLE address byte length.
 
#define BLE_GAP_SEC_RAND_LEN   8
 GAP Security Random Number Length.
 
#define BLE_GAP_SEC_KEY_LEN   16
 GAP Security Key Length.
 
#define BLE_GAP_PASSKEY_LEN   6
 GAP Passkey Length.
 

Enumerations

enum  BT_STATUS {
  BT_SUCCESS = 0, BT_ERROR_GENERIC, BT_ERROR_INVALID_PARM, BT_ERROR_NOT_SUPPORT_YET,
  BT_ERROR_NO_RESOURCE
}
 BT API execution status. More...
 
enum  BT_EVENT_BASE { BT_EVENT_MISC = 0x0000, BT_EVENT_GAP = 0x1000, BT_EVENT_SM = 0x2000, BT_EVENT_GATT = 0x3000 }
 Event ID arrangement. More...
 

Detailed Description

bt_contants.h

Some global constants through BT core library.

Enumeration Type Documentation

◆ BT_STATUS

enum BT_STATUS

BT API execution status.

Enumerator
BT_SUCCESS 

Success.

BT_ERROR_GENERIC 

Error, commonly.

BT_ERROR_INVALID_PARM 

Error, invalid parameter.

BT_ERROR_NOT_SUPPORT_YET 

Error, not support.

BT_ERROR_NO_RESOURCE 

Error, no resource.

◆ BT_EVENT_BASE

Event ID arrangement.

Enumerator
BT_EVENT_MISC 

MISC event.

BT_EVENT_GAP 

GAP event.

BT_EVENT_SM 

SM event.

BT_EVENT_GATT 

GATT event.