Azure IoT middleware for FreeRTOS
|
Defines the flash platform interface for devices enabling ADU. More...
Go to the source code of this file.
Functions | |
AzureIoTResult_t | AzureIoTPlatform_Init (AzureADUImage_t *const pxAduImage) |
Initialize the flash platform. More... | |
int64_t | AzureIoTPlatform_GetSingleFlashBootBankSize () |
Get the size of a single boot bank. More... | |
AzureIoTResult_t | AzureIoTPlatform_WriteBlock (AzureADUImage_t *const pxAduImage, uint32_t ulOffset, uint8_t *const pData, uint32_t ulBlockSize) |
Write a block of data to the image. More... | |
AzureIoTResult_t | AzureIoTPlatform_VerifyImage (AzureADUImage_t *const pxAduImage, uint8_t *pucSHA256Hash, uint32_t ulSHA256HashLength) |
Verify the bytes written to the image match a SHA256 hash. More... | |
AzureIoTResult_t | AzureIoTPlatform_EnableImage (AzureADUImage_t *const pxAduImage) |
Enable the update image. More... | |
AzureIoTResult_t | AzureIoTPlatform_ResetDevice (AzureADUImage_t *const pxAduImage) |
Reset the device. More... | |
Defines the flash platform interface for devices enabling ADU.
AzureIoTResult_t AzureIoTPlatform_EnableImage | ( | AzureADUImage_t *const | pxAduImage | ) |
Enable the update image.
pxAduImage | The #AzureADUImage_t to use for this operation. |
int64_t AzureIoTPlatform_GetSingleFlashBootBankSize | ( | ) |
Get the size of a single boot bank.
AzureIoTResult_t AzureIoTPlatform_Init | ( | AzureADUImage_t *const | pxAduImage | ) |
Initialize the flash platform.
pxAduImage | The #AzureADUImage_t to use for this operation. |
AzureIoTResult_t AzureIoTPlatform_ResetDevice | ( | AzureADUImage_t *const | pxAduImage | ) |
Reset the device.
pxAduImage | The #AzureADUImage_t to use for this operation. |
AzureIoTResult_t AzureIoTPlatform_VerifyImage | ( | AzureADUImage_t *const | pxAduImage, |
uint8_t * | pucSHA256Hash, | ||
uint32_t | ulSHA256HashLength | ||
) |
Verify the bytes written to the image match a SHA256 hash.
pxAduImage | The #AzureADUImage_t to use for this operation. |
pucSHA256Hash | The pointer to the SHA256 hash. |
ulSHA256HashLength | The length of pucSHA256Hash . |
AzureIoTResult_t AzureIoTPlatform_WriteBlock | ( | AzureADUImage_t *const | pxAduImage, |
uint32_t | ulOffset, | ||
uint8_t *const | pData, | ||
uint32_t | ulBlockSize | ||
) |
Write a block of data to the image.
pxAduImage | The #AzureADUImage_t to use for this operation. |
ulOffset | The offset into the image from which to start writing. |
pData | The pointer to the data to write. |
ulBlockSize | The length of pData . |