OTA_SERVICE_FH_CtrlBlkWrite
C
bool OTA_SERVICE_FH_CtrlBlkWrite(OTA_CONTROL_BLOCK *controlBlock, uint32_t length)
Summary
Writes control block (Meta-data) to the internal dual bank flash or external memory.
Description
This function writes control block (Meta-data) to the internal dual bank flash or external memory.
Precondition
None.
Parameters
Param | Description |
---|---|
controlBlock | Pointer to the control block buffer |
length | Length of the control block buffer |
Returns
Returns -
true - If control block written successfully
false - If control block write is failed
Example
uint8_t CACHE_ALIGN controlBlockBuffer[OTA_CONTROL_BLOCK_BUFFER_SIZE]; uint32_t ctrlBlkSize = OTA_CONTROL_BLOCK_BUFFER_SIZE; OTA_CONTROL_BLOCK *controlBlock = (OTA_CONTROL_BLOCK *)controlBlockBuffer; if (OTA_SERVICE_FH_CtrlBlkWrite(controlBlock, ctrlBlkSize) == false) { // Error } else { // Success }
Remarks
None.