AWS IoT Over-the-air Update
v3.1.0
Client library for AWS IoT OTA
|
|
Go to the documentation of this file.
28 #ifndef OTA_PLATFORM_INTERFACE
29 #define OTA_PLATFORM_INTERFACE
78 typedef enum OtaPalMainStatus
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 ) )
213 uint8_t *
const pData,
214 uint32_t blockSize );
297 typedef struct OtaPalInterface
@ OtaPalAbortFailed
Error trying to abort the OTA.
Definition: ota_platform_interface.h:90
OtaPalSetPlatformImageState_t setPlatformImageState
Set the state of the OTA update image.
Definition: ota_platform_interface.h:309
OtaPalGetPlatformImageState_t getPlatformImageState
Get the state of the OTA update image.
Definition: ota_platform_interface.h:310
OTA File Context Information.
Definition: ota_private.h:382
OtaImageState_t
OTA Image states.
Definition: ota_private.h:314
@ OtaPalUninitialized
Result is not yet initialized from PAL.
Definition: ota_platform_interface.h:81
@ OtaPalNullFileContext
The PAL is called with a NULL file context.
Definition: ota_platform_interface.h:83
OtaPalActivateNewImage_t activate
Activate the file received over-the-air.
Definition: ota_platform_interface.h:307
OtaPalWriteBlock_t writeBlock
Write a block of data to the specified file at the given offset.
Definition: ota_platform_interface.h:306
@ OtaPalRxFileTooLarge
The OTA receive file is too big for the platform to support.
Definition: ota_platform_interface.h:86
OtaPalCloseFile_t closeFile
Authenticate and close the receive file.
Definition: ota_platform_interface.h:305
OtaPalAbort_t abort
Abort an OTA transfer.
Definition: ota_platform_interface.h:303
Macros, enums, variables, and definitions internal to the OTA Agent module and shared by other OTA mo...
@ OtaPalFileClose
Error in low level file close.
Definition: ota_platform_interface.h:95
@ OtaPalSuccess
OTA platform interface success.
Definition: ota_platform_interface.h:80
OtaPalImageState_t
OTA Platform Image State.
Definition: ota_private.h:331
@ OtaPalSignatureCheckFailed
The signature check failed for the specified file.
Definition: ota_platform_interface.h:84
@ OtaPalRxFileCreateFailed
The PAL failed to create the OTA receive file.
Definition: ota_platform_interface.h:85
OtaPalCreateFileForRx_t createFile
Create a new receive file.
Definition: ota_platform_interface.h:304
@ OtaPalOutOfMemory
Out of memory.
Definition: ota_platform_interface.h:82
@ OtaPalCommitFailed
The acceptance commit of the new OTA image failed.
Definition: ota_platform_interface.h:92
OtaPalMainStatus_t
The OTA platform interface main status.
Definition: ota_platform_interface.h:79
@ OtaPalBadSignerCert
The signer certificate was not readable or zero length.
Definition: ota_platform_interface.h:88
OTA pal Interface structure.
Definition: ota_platform_interface.h:298
@ OtaPalActivateFailed
The activation of the new OTA image failed.
Definition: ota_platform_interface.h:93
@ OtaPalRejectFailed
Error trying to reject the OTA image.
Definition: ota_platform_interface.h:91
@ OtaPalBadImageState
The specified OTA image state was out of range.
Definition: ota_platform_interface.h:89
OtaPalResetDevice_t reset
Reset the device.
Definition: ota_platform_interface.h:308
@ OtaPalBootInfoCreateFailed
The PAL failed to create the OTA boot info file.
Definition: ota_platform_interface.h:87
@ OtaPalFileAbort
Error in low level file abort.
Definition: ota_platform_interface.h:94