| BlueNRG-1 ACI APIs and events callbacks

- Main Page
- Modules
- Classes
- Files

- Class List
- Class Members

Public Attributes | List of all members
BlueNRG_Stack_Initialization_t Struct Reference

`#include <bluenrg1_stack.h>`

## Public Attributes

uint8_t * | bleStartFlashAddress
uint32_t | secDbSize
uint32_t | serverDbSize
uint8_t * | stored_device_id_data_p
uint8_t * | bleStartRamAddress
uint16_t | numAttrRecord
uint16_t | numAttrServ
uint16_t | attrValueArrSize
uint8_t | numOfLinks
hardware_config_table_t | hardware_config

## Detailed Description

This structure contains memory and low level hardware configuration data for the device

Definition at line 79 of file bluenrg1_stack.h.

## Member Data Documentation

uint16_t BlueNRG_Stack_Initialization_t::attrValueArrSize

Size of the storage area for Attribute values (ATT_VALUE_ARRAY_SIZE used in the calculation of TOTAL_BUFFER_SIZE) This value depends on the number of attributes used by application. In particular the sum of the following quantities (in octets) should be made for each attribute:

- attribute value length
- 5, if UUID is 16 bit; 19, if UUID is 128 bit
- 2, if server configuration descriptor is used
- 2*numOfLinks, if client configuration descriptor is used
- 2, if extended properties is used

The total amount of memory needed is the sum of the above quantities for each attribute.

Definition at line 87 of file bluenrg1_stack.h.

uint8_t* BlueNRG_Stack_Initialization_t::bleStartFlashAddress

Start address for the non-volatile memory area allocated according to TOTAL_FLASH_BUFFER_SIZE (Aligned to 2048 bytes flash sector boundary)

Definition at line 80 of file bluenrg1_stack.h.

uint8_t* BlueNRG_Stack_Initialization_t::bleStartRamAddress

Start address of the RAM buffer for GATT database allocated according to TOTAL_BUFFER_SIZE (32bit aligned RAM area)

Definition at line 84 of file bluenrg1_stack.h.

hardware_config_table_t BlueNRG_Stack_Initialization_t::hardware_config

Structure containing low level hardware configuration data for the device

Definition at line 98 of file bluenrg1_stack.h.

uint16_t BlueNRG_Stack_Initialization_t::numAttrRecord

Maximum number of Attributes (i.e. the number of characteristic + the number of characteristic values + the number of descriptors, excluding the services) that can be stored in the GATT database. Note that certain characteristics and relative descriptors are added automatically during device initialization so this parameters should be 9 plus the number of user Attributes (NUM_GATT_ATTRIBUTES used in the calculation of TOTAL_BUFFER_SIZE)

Definition at line 85 of file bluenrg1_stack.h.

uint16_t BlueNRG_Stack_Initialization_t::numAttrServ

Maximum number of Services that can be stored in the GATT database. Note that the GAP and GATT services are automatically added so this parameter should be 2 plus the number of user services (NUM_GATT_SERVICES used in the calculation of TOTAL_BUFFER_SIZE)

Definition at line 86 of file bluenrg1_stack.h.

uint8_t BlueNRG_Stack_Initialization_t::numOfLinks

Maximum number of simultaneous connections that the device will support. Valid values are from 1 to 8 (NUM_LINKS used in the calculation of TOTAL_BUFFER_SIZE).

Definition at line 97 of file bluenrg1_stack.h.

uint32_t BlueNRG_Stack_Initialization_t::secDbSize

Size of the database used to store security information for bonded devices (FLASH_SEC_DB_SIZE used in the calculation of TOTAL_FLASH_BUFFER_SIZE)

Definition at line 81 of file bluenrg1_stack.h.

uint32_t BlueNRG_Stack_Initialization_t::serverDbSize

Size of the database used for service change notification for bonded devices (FLASH_SERVER_DB_SIZE used in the calculation of TOTAL_FLASH_BUFFER_SIZE)

Definition at line 82 of file bluenrg1_stack.h.

uint8_t* BlueNRG_Stack_Initialization_t::stored_device_id_data_p

Address of the const device id data vector (56 bytes, 32bit aligned FLASH area, all elements must be initialized to 0xFF)

Definition at line 83 of file bluenrg1_stack.h.

The documentation for this struct was generated from the following file:

- bluenrg1_stack.h