XDK API  3.6.0
Documentation
Macros
LWM2MObjectFirmwareUpdate.c File Reference

This module will handle, FOTA related activities like FOTA resources State change, firmware storage and etc. More...

#include "XdkCommonInfo.h"
#include "BCDS_Fota.h"
#include "LWM2MObjectFirmwareUpdate.h"
#include "LWM2MObjectFirmwareUpdatePrivate.h"
#include "BCDS_FotaConfig.h"
#include "ff.h"
#include "BCDS_NVMConfig.h"
#include "BCDS_FWContainer.h"
#include "Serval_CoapClient.h"
#include "BCDS_CoapBlockwise.h"
#include "BCDS_Retcode.h"
#include "BCDS_SDCardPartitionAgent.h"
#include "BCDS_FotaRegistryAgent.h"
#include "BCDS_FWC1NoCryptoVerificationAgent.h"
#include "BCDS_Block512CopyAgent.h"
#include "BCDS_CoapDownloadAgent.h"
#include "BCDS_EFM32XXPartitionAgent.h"
#include "FreeRTOS.h"
#include "timers.h"
#include "BCDS_BSP_Board.h"
+ Include dependency graph for LWM2MObjectFirmwareUpdate.c:

Macros

#define BCDS_FOTA_REQUEST_RETRY_TIMEOUT_MS   (COAP_ACK_TIMEOUT * 1000UL)
 
#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MOBJECTFIRMWAREUPDATE
 
#define FILE_OPERATION_READ   UINT8_C(0)
 
#define FILE_OPERATION_WRITE   UINT8_C(1)
 
#define FILE_PAGE_SIZE   UINT16_C(512)
 
#define FIRMWARE_FILE_BACKUP   "firmware.bkp"
 
#define FIRMWARE_FILE_DOWNLOAD   "firmware.bin"
 
#define FIRMWARE_FILE_NAME_MAX_SIZE   UINT8_C(16)
 
#define FlushFotaContext()   NVM_Flush(&NVMUser)
 
#define FOTA_FIRMWARE_CRC_SIZE   NVM_ITEM_ID_NEW_FW_CRC_SIZE
 
#define FOTA_FIRMWARE_PACKAGE_URL_SIZE   NVM_ITEM_ID_FIRMWARE_PACKAGE_URL_SIZE
 
#define FOTA_MS_TO_TICKS(X)   ((portTickType) X / portTICK_RATE_MS)
 
#define FOTA_RESOURCE_INDEX_RESULT   5 /* index in resource table below */
 
#define FOTA_RESOURCE_INDEX_STATE   3 /* index in resource table below */
 
#define FOTA_TIMER_TRIGGER_TIMEOUT   FOTA_MS_TO_TICKS(2000) /* 2 seconds */
 
#define FOTA_UPDATE_NOTIFY_TIME_IN_MS   UINT8_C(100)
 
#define FOTA_URIPATH_OBJECT_INDEX   (UINT8_C(2)) /* Object Index Value Represents the Index value of DeviceResource Inofrmation Structure while connecting to server */
 
#define FOTA_URIPATH_OBJECT_INSTANCE   (UINT8_C(2)) /* Object Instance Instance is used to notify the fota object information */
 
#define ReadFotaContext(id, parm, size)   NVM_Read(&NVMUser,*(NvmItems[id]),parm, size)
 
#define WriteFotaContext(id, parm, size)   NVM_Write(&NVMUser, *(NvmItems[id]), parm, size)
 

Macro Definition Documentation

#define BCDS_FOTA_REQUEST_RETRY_TIMEOUT_MS   (COAP_ACK_TIMEOUT * 1000UL)
#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MOBJECTFIRMWAREUPDATE
#define FILE_OPERATION_READ   UINT8_C(0)
#define FILE_OPERATION_WRITE   UINT8_C(1)
#define FILE_PAGE_SIZE   UINT16_C(512)
#define FIRMWARE_FILE_BACKUP   "firmware.bkp"
#define FIRMWARE_FILE_DOWNLOAD   "firmware.bin"
#define FIRMWARE_FILE_NAME_MAX_SIZE   UINT8_C(16)
#define FlushFotaContext ( )    NVM_Flush(&NVMUser)
#define FOTA_FIRMWARE_CRC_SIZE   NVM_ITEM_ID_NEW_FW_CRC_SIZE
#define FOTA_FIRMWARE_PACKAGE_URL_SIZE   NVM_ITEM_ID_FIRMWARE_PACKAGE_URL_SIZE
#define FOTA_MS_TO_TICKS (   X)    ((portTickType) X / portTICK_RATE_MS)
#define FOTA_RESOURCE_INDEX_RESULT   5 /* index in resource table below */
#define FOTA_RESOURCE_INDEX_STATE   3 /* index in resource table below */
#define FOTA_TIMER_TRIGGER_TIMEOUT   FOTA_MS_TO_TICKS(2000) /* 2 seconds */
#define FOTA_UPDATE_NOTIFY_TIME_IN_MS   UINT8_C(100)
#define FOTA_URIPATH_OBJECT_INDEX   (UINT8_C(2)) /* Object Index Value Represents the Index value of DeviceResource Inofrmation Structure while connecting to server */
#define FOTA_URIPATH_OBJECT_INSTANCE   (UINT8_C(2)) /* Object Instance Instance is used to notify the fota object information */
#define ReadFotaContext (   id,
  parm,
  size 
)    NVM_Read(&NVMUser,*(NvmItems[id]),parm, size)
#define WriteFotaContext (   id,
  parm,
  size 
)    NVM_Write(&NVMUser, *(NvmItems[id]), parm, size)

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:40 by doxygen 1.8.8