|
AM263Px MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
49 #ifndef __FOTAAgent__H_
50 #define __FOTAAgent__H_
65 #include <drivers/flsopskd.h>
66 #include <middleware/tiELFuParser/tielfup32.h>
74 #define CHUNK_SIZE (4096U)
75 #define LOCK_NUM0 (0U)
76 #define LOCK_NUM1 (1U)
FLSOPSKD_handle FLSOPSKDhandle
Definition: fota_agent.h:104
FOTA Agent Driver Handle.
Definition: fota_agent.h:87
uint32_t flashBaseOffset
Definition: fota_agent.h:96
uint32_t currWriteOffset
Definition: fota_agent.h:92
int32_t FOTAAgent_writeUpdate(FOTAAgent_handle *pHandle, uint8_t *buf, uint32_t size)
Sends write scheduling request to hardware IP.
int32_t FOTAAgent_init(FOTAAgent_handle *pHandle)
Initilize the FOTA Agent and the driver.
#define CHUNK_SIZE
Size of write chunk
Definition: fota_agent.h:74
ELFUP_Handle elfuph
Definition: fota_agent.h:102
int32_t FOTAAgent_writeEnd(FOTAAgent_handle *pHandle)
End Fota Write operation.
void FOTAAgent_writeStart(FOTAAgent_handle *pHandle, uint32_t baseAddr, uint32_t wrOffset, uint32_t isXip)
Starts Fota write operation.
uint32_t chunkOffset
Definition: fota_agent.h:90
uint32_t prevWriteOffset
Definition: fota_agent.h:94
uint32_t isXip
Definition: fota_agent.h:98