Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_bt_factory_app_config.h File Reference

Provides definitions for application configuration items and API. More...

Macros

#define WICED_BT_FACTORY_PROVISIONING_RECORD_OFFSET   WICED_BT_FACTORY_CONFIG_ITEM_BASE_URI
 
#define WICED_BT_FACTORY_PROVISIONING_RECORD_SIZE   WICED_BT_FACTORY_CONFIG_ITEM_APPEARANCE - WICED_BT_FACTORY_CONFIG_ITEM_BASE_URI + 1
 
Factory Configuration Item Types

The following is the list of items types that can be programmed in the flash

#define WICED_BT_FACTORY_CONFIG_ITEM_FIRST   0x80
 
#define WICED_BT_FACTORY_CONFIG_ITEM_BASE_URI   0xC0
 
#define WICED_BT_FACTORY_CONFIG_ITEM_DEVICE_CERTIFICATE   0xC1
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_1   0xC2
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_2   0xC3
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_3   0xC4
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_4   0xC5
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_5   0xC6
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_6   0xC7
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_7   0xC8
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_8   0xC9
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_9   0xCA
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_A   0xC8
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_B   0xCC
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_C   0xCD
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_D   0xCE
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_E   0xCF
 
#define WICED_BT_FACTORY_CONFIG_ITEM_INTERMEDIATE_CERTIFICATE_F   0xD0
 
#define WICED_BT_FACTORY_CONFIG_ITEM_LOCAL_NAME   0xD1
 
#define WICED_BT_FACTORY_CONFIG_ITEM_APPEARANCE   0xD2
 
#define WICED_BT_FACTORY_CONFIG_ITEM_UUID   0xE0
 
#define WICED_BT_FACTORY_CONFIG_ITEM_OOB_STATIC_DATA   0xE1
 
#define WICED_BT_FACTORY_CONFIG_ITEM_HOMEKIT_TOKEN   0xE2
 
#define WICED_BT_FACTORY_CONFIG_ITEM_PRIVATE_KEY   0xE3
 
#define WICED_BT_FACTORY_CONFIG_ITEM_LAST   0xEF
 

Functions

uint16_t wiced_bt_factory_config_read (uint8_t item_type, uint8_t *buffer, uint16_t read_size, uint16_t read_offset, uint16_t *record_size)
 
uint16_t wiced_bt_factory_config_provisioning_records_get (uint16_t *buffer)
 
uint16_t wiced_bt_factory_config_provisioning_record_req (uint16_t record_id, uint8_t *buffer, uint16_t fragment_length, uint16_t fragment_offset, uint16_t *record_size)
 

Detailed Description

Provides definitions for application configuration items and API.

Some per device information may be programmed in the flash during manufacturing. The data is saved in the Static Section of the flash and is not changed during the DFU or a factory reset. This interface provides standard method for an application to retrieve this data.

Programming of the flash can be done using ss_json script which is provided in the tools directory of the SDK.