30#ifndef OTA_PLATFORM_INTERFACE
31#define OTA_PLATFORM_INTERFACE
81#define OtaPalSuccess 0x0U
82#define OtaPalUninitialized 0xe0U
83#define OtaPalOutOfMemory 0xe1U
84#define OtaPalNullFileContext 0xe2U
85#define OtaPalSignatureCheckFailed 0xe3U
86#define OtaPalRxFileCreateFailed 0xe4U
87#define OtaPalRxFileTooLarge 0xe5U
88#define OtaPalBootInfoCreateFailed 0xe6U
89#define OtaPalBadSignerCert 0xe7U
90#define OtaPalBadImageState 0xe8U
91#define OtaPalAbortFailed 0xe9U
92#define OtaPalRejectFailed 0xeaU
93#define OtaPalCommitFailed 0xebU
94#define OtaPalActivateFailed 0xecU
95#define OtaPalFileAbort 0xedU
96#define OtaPalFileClose 0xeeU
112#define OTA_PAL_ERR_MASK 0xffffffUL
113#define OTA_PAL_SUB_BITS 24U
114#define OTA_PAL_MAIN_ERR( err ) ( ( OtaPalMainStatus_t ) ( uint32_t ) ( ( uint32_t ) ( err ) >> ( uint32_t ) OTA_PAL_SUB_BITS ) )
115#define OTA_PAL_SUB_ERR( err ) ( ( ( uint32_t ) ( err ) ) & ( ( uint32_t ) OTA_PAL_ERR_MASK ) )
116#define OTA_PAL_COMBINE_ERR( main, sub ) ( ( ( uint32_t ) ( main ) << ( uint32_t ) OTA_PAL_SUB_BITS ) | ( uint32_t ) OTA_PAL_SUB_ERR( sub ) )
217 uint8_t *
const pData,
218 uint32_t blockSize );
301typedef struct OtaPalInterface
uint32_t OtaPalMainStatus_t
The OTA platform interface main status.
Definition: ota_platform_interface.h:80
OtaPalImageState_t
OTA Platform Image State.
Definition: ota_private.h:333
OtaImageState_t
OTA Image states.
Definition: ota_private.h:316
Macros, enums, variables, and definitions internal to the OTA Agent module and shared by other OTA mo...
OTA File Context Information.
Definition: ota_private.h:384
OTA pal Interface structure.
Definition: ota_platform_interface.h:302
OtaPalSetPlatformImageState_t setPlatformImageState
Set the state of the OTA update image.
Definition: ota_platform_interface.h:315
OtaPalWriteBlock_t writeBlock
Write a block of data to the specified file at the given offset.
Definition: ota_platform_interface.h:312
OtaPalResetDevice_t reset
Reset the device.
Definition: ota_platform_interface.h:314
OtaPalAbort_t abort
Abort an OTA transfer.
Definition: ota_platform_interface.h:309
OtaPalGetPlatformImageState_t getPlatformImageState
Get the state of the OTA update image.
Definition: ota_platform_interface.h:316
OtaPalCreateFileForRx_t createFile
Create a new receive file.
Definition: ota_platform_interface.h:310
OtaPalActivateNewImage_t activate
Activate the file received over-the-air.
Definition: ota_platform_interface.h:313
OtaPalCloseFile_t closeFile
Authenticate and close the receive file.
Definition: ota_platform_interface.h:311