BLE_ABSTRACTION Macro Definition Documentation

 

BOND_INFO_BASE

#define BOND_INFO_BASE FLASH_BOND_INFO_BASE

 

Location: bondlist.h:62

 

Start address and size of the memory region where bond list is stored:

 

  • BOND_INFO_BASE: 3KB from base of data flash array (the first 3KB of data flash array is reserved to ROM use)
  • BOND_INFO_FLASH_SECTORS_COUNT: 8 sectors (2KB) Notes: if needed, user application can re-define BOND_INFO_BASE and BOND_INFO_FLASH_SECTORS_COUNT. Any increase to the number of sectors will also need to be updated in the linker script. Start of address for bond info

 

BOND_INFO_FLASH_SECTORS_COUNT

#define BOND_INFO_FLASH_SECTORS_COUNT 8

 

Location: bondlist.h:66

 

Number of sectors for bond info.

 

BONDLIST_MAX_SIZE

#define BONDLIST_MAX_SIZE ((DATA_SECTOR_LEN_BYTES * BOND_INFO_FLASH_SECTORS_COUNT) / \ sizeof(BondInfo_t))

 

Location: bondlist.h:76

 

The maximum number of bond information records that can be stored in the memory region that is reserved for the bondlist (Default is 2KB -> 8 sectors -> ~28 records)

 

BOND_INFO_STATE_INVALID

#define BOND_INFO_STATE_INVALID 0x00

 

Location: bondlist.h:80

 

Invalid bond info state.

 

BOND_INFO_STATE_EMPTY

#define BOND_INFO_STATE_EMPTY 0xFFFF

 

Location: bondlist.h:83

 

Empty bond info state.

 

BOND_INFO_STATE_VALID

#define BOND_INFO_STATE_VALID ((state != BOND_INFO_STATE_INVALID) && \ (state != BOND_INFO_STATE_EMPTY) && \ (state <= BONDLIST_MAX_SIZE))

 

Location: bondlist.h:86

 

Macro for valid bond info state.