OTA Agent storage context parameters structure.
These parameters are for describing some storage aspects of the OTA Agent.
Data Fields | |
| void * | storage_loc |
| can be cast as flash_area or FILE as needed | |
| uint8_t | imgID |
| Application ID or Image ID in case of Multi-App Updates. | |
| uint32_t | total_image_size |
| Total size of OTA Image. | |
| uint32_t | total_bytes_written |
| Number of bytes written to FLASH. | |
| uint32_t | last_offset |
| Last offset written to from cy_ota_storage_write() | |
| uint32_t | last_size |
| last size of data written from cy_ota_storage_write() | |
| uint16_t | last_packet_received |
| Last Packet of data we have received. | |
| uint16_t | total_packets |
| Total number of Packets of data for the OTA Image. | |
| uint16_t | num_packets_received |
| Total number of Packets received. | |
| uint16_t | last_num_packets_received |
| last time we saw how many were received, per-packet timer | |
| uint8_t | ota_is_tar_archive |
| !=0, this is a tar file | |
| uint8_t | reboot_upon_completion |
| 1 = Automatically reboot upon download completion and verify. More... | |
| uint8_t | validate_after_reboot |
| 0 = OTA will set upgrade image as permanent before reboot. More... | |
| uint8_t cy_ota_storage_context_t::reboot_upon_completion |
1 = Automatically reboot upon download completion and verify.
| uint8_t cy_ota_storage_context_t::validate_after_reboot |
0 = OTA will set upgrade image as permanent before reboot.
1 = The application should validate and set the upgrade image as the permanent image after reboot.