Over The Air (OTA) Update Library
All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
cy_ota_storage_write_info_t Struct Reference

Description

Struct to hold information on where to write the data.

Information on where to store the downloaded chunk of the OTA image.

Data Fields

uint32_t total_size
 Pass the total size to the storage module; 0 = disregard. More...
 
uint32_t offset
 Offset into file/area where the data belongs. More...
 
uint8_t * buffer
 Pointer to the buffer with the chunk of data. More...
 
uint32_t size
 Size of the data in the buffer. More...
 
uint16_t packet_number
 MQTT: The packet number of this chunk. More...
 
uint16_t total_packets
 MQTT: Total packets (chunks) in the OTA image. More...
 

Field Documentation

uint32_t cy_ota_storage_write_info_t::total_size

Pass the total size to the storage module; 0 = disregard.

uint32_t cy_ota_storage_write_info_t::offset

Offset into file/area where the data belongs.

uint8_t* cy_ota_storage_write_info_t::buffer

Pointer to the buffer with the chunk of data.

uint32_t cy_ota_storage_write_info_t::size

Size of the data in the buffer.

uint16_t cy_ota_storage_write_info_t::packet_number

MQTT: The packet number of this chunk.

uint16_t cy_ota_storage_write_info_t::total_packets

MQTT: Total packets (chunks) in the OTA image.