BLE_API
v2.1.3
|
Here shows the BLE bonding related definition.
#define BOND_KEY_TYPE 10 |
The starting position of BLE key type in the information bonding data.
#define BOND_MAX_ENC_KEY_SIZE 9 |
The starting position of BLE KEY Size in the information bonding data.
#define BOND_OWN_ADDR 61 |
The starting position of BLE Own ADDR in the information bonding data.
#define BOND_OWN_ADDR_TYPE 60 |
The starting position of BLE Own ADDR Type in the information bonding data.
#define BOND_OWN_EDIV 75 |
The starting position of BLE Own EDIV in the information bonding data.
#define BOND_OWN_LTK 77 |
The starting position of BLE Own LTK in the information bonding data.
#define BOND_OWN_RAND 67 |
The starting position of BLE Own RAND in the information bonding data.
#define BOND_PEER_ADDR 1 |
The starting position of PEER_ADDR in the information bonding data.
#define BOND_PEER_ADDR_TYPE 0 |
BLE Bonding the Starting Position Related Definition The starting position of PEER_ADDR type in the information bonding data.
#define BOND_PEER_EDIV 19 |
The starting position of BLE PEER EDIV in the information bonding data.
#define BOND_PEER_ID_ADDR 54 |
The starting position of BLE PEER ID ADDR in the information bonding data.
#define BOND_PEER_ID_ADDR_TYPE 53 |
The starting position of BLE PEER ID ADDR Type in the information bonding data.
#define BOND_PEER_IRK 37 |
The starting position of BLE PEER IRK in the information bonding data.
#define BOND_PEER_LTK 21 |
The starting position of BLE PEER LTK in the information bonding data.
#define BOND_PEER_RAND 11 |
The starting position of BLE PEER_RAND in the information bonding data.
#define BOND_ROLE 7 |
The starting position of BLE connection role in the information bonding data.
#define BOND_STK_GEN_METHOD 8 |
The starting position of BLE key gen method in the information bonding data.
#define CMD_FB_CHK_IF_FLASH_INITED 0x04 |
Bonding operation command : Check if bonding space has been initialized.
#define CMD_FB_CHK_IF_FLASHBOND_NEED_TO_ERASE_PAGE 0x0A |
Bonding operation command : Check if bonding space need to be erase or not.
#define CMD_FB_GET_DATA_FLASHBOND_EXIST_HOSTID_DBLK_START 0x07 |
Bonding operation command : Get starting position of the exist data bonding space.
#define CMD_FB_GET_DATA_FLASHBOND_NXT_PID_DBLK_START 0x08 |
Bonding operation command : Get starting position of next data bonding space.
#define CMD_FB_GET_DATA_VALUE_BY_HANDLE 0x0D |
Bonding operation command : Get the backup data by valid handle & host id.
#define CMD_FB_GET_EXIST_PID_BY_HOST_ID 0x05 |
Bonding operation command : Get exist PID number.
#define CMD_FB_GET_INFO_FLASHBOND_WATER_LEVEL 0x0E |
Bonding operation command : Get the water level of the bonding flash.
#define CMD_FB_GET_KEY_FLASHBOND_PARA_BOND 0x06 |
Bonding operation command : Get Bonding key information data.
#define CMD_FB_GET_NEXT_PID 0x01 |
BLE Bonding Operation Command Definition Bonding operation command : Get next PID number.
#define CMD_FB_INIT_DATA_FLASHBOND 0x03 |
Bonding operation command : Initial Data Bonding space.
#define CMD_FB_INIT_INFO_FLASHBOND 0x02 |
Bonding operation command : Initial Information Bonding space.
#define CMD_FB_PSH_BACKUP_DATA_FLASH_PARA_BOND 0x0C |
Bonding operation command : Push (Program) the backup data to new bonding space.
#define CMD_FB_PSH_BACKUP_KEY_FLASH_PARA_BOND 0x0B |
Bonding operation command : Push (Program) the backup key information to new bonding space.
#define CMD_FB_PSH_DATA_FLASHBOND_EXIST_HOSTID_DBLK 0x09 |
Bonding operation command : Push (Program) bonding data to exist bonding space.
#define ERR_BND_ERR_CODE_NOT_EXIST_HANDLE 0x07 |
Bonding operation error code : NOT found the exist handle number.
#define ERR_CODE_FLH_BND_NO_ENOUGH_REST_SPACE 0x06 |
Bonding operation error code : Not enough program space.
#define ERR_CODE_FLH_BND_SYS_ERROR 0xFF |
Bonding operation error code : System Error.
#define FLH_BND_ERR_CODE_FLASH_NOT_INI 0x01 |
Bonding operation error code : Flash space is not initialized.
#define FLH_BND_ERR_CODE_HOST_ID_DNT_MATCH 0x05 |
Bonding operation error code : Host id not match.
#define FLH_BND_ERR_CODE_IN_PROCESS 0x02 |
Bonding operation error code : Processing.
#define FLH_BND_ERR_CODE_NO_ERR 0x00 |
BLE Bonding Operation Error Code Definition Bonding operation error code : No Error.
#define FLH_BND_ERR_CODE_NO_EXIST_HOST_ID 0x04 |
Bonding operation error code : NOT found the exist host id number.
#define FLH_BND_ERR_CODE_NO_FREE_PID 0x03 |
Bonding operation error code : No free adea in bonding space.
#define FLH_BND_ERR_CODE_WATER_LEVEL_EXCEEDS 0x08 |
Bonding operation error code : Water level exceeds threshold.
#define SMP_PARA_BOND_SIZE (BOND_OWN_LTK+16) |
The total size of the information bonding data.
#define TAB_INFO_FLASHBOND_HOSTID 2 |
The tag number of the host ID in the information bonding space.
#define TAB_INFO_FLASHBOND_INI_ADDR 4 |
The tag number of BLE INI_ADDR in the information bonding space.
#define TAB_INFO_FLASHBOND_PID 0 |
BLE Bonding Tag Number Related Definition The tag number of the PID in the information bonding space.
#define TAB_INFO_FLASHBOND_SMP_PARA_BOND (TAB_INFO_FLASHBOND_INI_ADDR+SIZE_BLE_ADDR) |
The tag number of BLE SMP data in the information bonding space.
#define TAB_PARA_DATA_BOND_ROLE 11 |
The tag number of BLE connection role value.
#define TAB_PARA_DATA_DAT (TAB_PARA_DATA_DAT_START_L+5) |
The tag number of data location.
#define TAB_PARA_DATA_DAT_HDL_H (TAB_PARA_DATA_DAT_START_L+1) |
The tag number of data handle location. (High Byte)
#define TAB_PARA_DATA_DAT_HDL_L (TAB_PARA_DATA_DAT_START_L+2) |
The tag number of data handle location. (Low Byte)
#define TAB_PARA_DATA_DAT_SIZE (TAB_PARA_DATA_DAT_START_L+4) |
The tag number of data size location.
#define TAB_PARA_DATA_DAT_START_H 4 |
The tag number of the starting position. (High Byte)
#define TAB_PARA_DATA_DAT_START_L 5 |
The tag number of the starting position. (Low Byte)
#define TAB_PARA_DATA_ERROR_CODE 0 |
The tag number of error code.
#define TAB_PARA_DATA_GATT_ROLE (TAB_PARA_DATA_DAT_START_L+3) |
The tag number of the GATT data role.
#define TAB_PARA_DATA_HOSTID 3 |
The tag number of host id in data space.
#define TAB_PARA_DATA_INI_ADDR 4 |
The tag number of INI_ADDR .
#define TAB_PARA_DATA_OWN_EDIV 79 |
The tag number of own EDIV value.
#define TAB_PARA_DATA_OWN_RAND 71 |
The tag number of own RAND value.
#define TAB_PARA_DATA_PID_H 1 |
The tag number of PID in data space. (High Byte)
#define TAB_PARA_DATA_PID_L 2 |
The tag number of PID in data space. (Low Byte)