Macros
Defines
Collaboration diagram for Defines:

Macros

#define M2M_ERR_OTA_INVAILD_ARG   ((sint8)-7)
 
#define M2M_ERR_OTA_INVAILD_FLASH_SIZE   ((sint8)-6)
 
#define M2M_ERR_OTA_ROLLBACK_FAIL   ((sint8)-5)
 
#define M2M_ERR_OTA_START_UPDATE_FAIL   ((sint8)-4)
 
#define M2M_ERR_OTA_SWITCH_FAIL   ((sint8)-3)
 
#define OTA_ERR_INVAILD_CONTROL_SEC   ((sint8)-2)
 
#define OTA_ERR_WORKING_IMAGE_LOAD_FAIL   ((sint8)-1)
 
#define OTA_MAGIC_VALUE   (0x1ABCDEF9)
 
#define OTA_SHA256_DIGEST_SIZE   (32)
 
#define OTA_STATUS_INVALID   (0x23987718)
 
#define OTA_STATUS_VALID   (0x12526285)
 
#define OTA_SUCCESS   (0)
 

Detailed Description

Macro Definition Documentation

◆ M2M_ERR_OTA_INVAILD_ARG

#define M2M_ERR_OTA_INVAILD_ARG   ((sint8)-7)

Invalid argument in any OTA Function

Definition at line 384 of file m2m_types.h.

◆ M2M_ERR_OTA_INVAILD_FLASH_SIZE

#define M2M_ERR_OTA_INVAILD_FLASH_SIZE   ((sint8)-6)

The OTA Support requires 8MB flash size. This error indicates the current flash is less than 8M.

Definition at line 380 of file m2m_types.h.

◆ M2M_ERR_OTA_ROLLBACK_FAIL

#define M2M_ERR_OTA_ROLLBACK_FAIL   ((sint8)-5)

Invalid roll-back image.

Definition at line 376 of file m2m_types.h.

◆ M2M_ERR_OTA_START_UPDATE_FAIL

#define M2M_ERR_OTA_START_UPDATE_FAIL   ((sint8)-4)

Failure to start the OTA update. This could be due to a connection failure or a problem with the integrity of the image.

Definition at line 371 of file m2m_types.h.

◆ M2M_ERR_OTA_SWITCH_FAIL

#define M2M_ERR_OTA_SWITCH_FAIL   ((sint8)-3)

Failure to switch to the updated image, due to this being invalid.

Definition at line 367 of file m2m_types.h.

◆ OTA_ERR_INVAILD_CONTROL_SEC

#define OTA_ERR_INVAILD_CONTROL_SEC   ((sint8)-2)

Control structure is being corrupted.

Definition at line 363 of file m2m_types.h.

◆ OTA_ERR_WORKING_IMAGE_LOAD_FAIL

#define OTA_ERR_WORKING_IMAGE_LOAD_FAIL   ((sint8)-1)

Failure to load the firmware image.

Definition at line 359 of file m2m_types.h.

◆ OTA_MAGIC_VALUE

#define OTA_MAGIC_VALUE   (0x1ABCDEF9)

Magic value set at the beginning of the OTA image header.

Definition at line 345 of file m2m_types.h.

◆ OTA_SHA256_DIGEST_SIZE

#define OTA_SHA256_DIGEST_SIZE   (32)

SHA256 digest size in the OTA image. The SHA256 digest is set at the beginning of image before the OTA header.

Definition at line 349 of file m2m_types.h.

◆ OTA_STATUS_INVALID

#define OTA_STATUS_INVALID   (0x23987718)

Magic value in the control structure for a invalid image after ROLLBACK.

Definition at line 341 of file m2m_types.h.

◆ OTA_STATUS_VALID

#define OTA_STATUS_VALID   (0x12526285)

Magic value in the control structure for a valid image after ROLLBACK.

Definition at line 337 of file m2m_types.h.

◆ OTA_SUCCESS

#define OTA_SUCCESS   (0)

OTA success status.

Definition at line 355 of file m2m_types.h.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:07