BLE_API v2.1.3

Macros
BLE Bonding Porting Related
Porting

## Macros
#define | SIZE_OF_KEY_BLK 128
#define | SIZE_OF_DATA_BLK 128
#define | SIZE_OF_INFO_BLK (SIZE_OF_KEY_BLK+SIZE_OF_DATA_BLK)
#define | SIZE_OF_INFO_BLK_FOR_POWER_OF_2 8
#define | NUM_OF_TOTAL_INFO_BLK (SIZE_OF_BONDING_INFORMATION/SIZE_OF_INFO_BLK)
#define | NUM_OF_FLASH_PAGE_FOR_BONDING_INFO_BLK (SIZE_OF_BONDING_INFORMATION/FLASH_PAGE_SIZE)
#define | NUM_OF_INFO_BLK_ONE_PAGE (FLASH_PAGE_SIZE/SIZE_OF_INFO_BLK)
#define | TAB_FLASH_BONDING_INFO_BLK SIZE_OF_INFO_BLK
#define | ERASE_THRESHOLD (NUM_OF_TOTAL_INFO_BLK-1-NUM_HOST_LINK)

## Detailed Description

The detail settings for BLE Bonding.

## Macro Definition Documentation

## ◆ ERASE_THRESHOLD

#define ERASE_THRESHOLD (NUM_OF_TOTAL_INFO_BLK-1-NUM_HOST_LINK)

Can be set 1 ~ (NUM_OF_TOTAL_INFO_BLK-1-NUM_HOST_LINK)

## ◆ NUM_OF_FLASH_PAGE_FOR_BONDING_INFO_BLK

#define NUM_OF_FLASH_PAGE_FOR_BONDING_INFO_BLK (SIZE_OF_BONDING_INFORMATION/FLASH_PAGE_SIZE)

Total number of flash size of bound information block.

## ◆ NUM_OF_INFO_BLK_ONE_PAGE

#define NUM_OF_INFO_BLK_ONE_PAGE (FLASH_PAGE_SIZE/SIZE_OF_INFO_BLK)

Amount of information bound using flash page.

## ◆ NUM_OF_TOTAL_INFO_BLK

#define NUM_OF_TOTAL_INFO_BLK (SIZE_OF_BONDING_INFORMATION/SIZE_OF_INFO_BLK)

Total number of inforamtion size of bound information block.

## ◆ SIZE_OF_DATA_BLK

#define SIZE_OF_DATA_BLK 128

Size of data information.

## ◆ SIZE_OF_INFO_BLK

#define SIZE_OF_INFO_BLK (SIZE_OF_KEY_BLK+SIZE_OF_DATA_BLK)

Size of BLE bonding information block.

## ◆ SIZE_OF_INFO_BLK_FOR_POWER_OF_2

#define SIZE_OF_INFO_BLK_FOR_POWER_OF_2 8

SIZE_OF_INFO_BLK 256 = 2^8.

## ◆ SIZE_OF_KEY_BLK

#define SIZE_OF_KEY_BLK 128

< Total size of BLE bonding information array. Size of bond key information.

## ◆ TAB_FLASH_BONDING_INFO_BLK

#define TAB_FLASH_BONDING_INFO_BLK SIZE_OF_INFO_BLK

Tab Size of BLE bonding information block.