Storage API accessible from the application.
Public Attributes#
Version of this struct.
Get information about the storage – capabilities, layout, configuration.
Get information about storage slot – size, location.
Read bytes from slot into buffer.
Write bytes from buffer into slot.
Erase an entire slot.
Mark a list of slots for bootload.
Mark a list of slots for bootload.
Append a slot to bootload list.
Start image parsing.
Continue image verification.
Get app and bootloader upgrade information from storage slot.
Check whether the bootloader storage is busy.
Read raw bytes from storage.
Write bytes to raw storage.
Erase storage.
Get configured DMA channel.
Public Attribute Documentation#
version#
uint32_t BootloaderStorageFunctions_t::version
Version of this struct.
156
of file platform/bootloader/api/btl_interface_storage.h
getInfo#
void(* BootloaderStorageFunctions_t::getInfo) (BootloaderStorageInformation_t *info)
Get information about the storage – capabilities, layout, configuration.
158
of file platform/bootloader/api/btl_interface_storage.h
getSlotInfo#
int32_t(* BootloaderStorageFunctions_t::getSlotInfo) (uint32_t slotId, BootloaderStorageSlot_t *slot)
Get information about storage slot – size, location.
160
of file platform/bootloader/api/btl_interface_storage.h
read#
int32_t(* BootloaderStorageFunctions_t::read) (uint32_t slotId, uint32_t offset, uint8_t *buffer, size_t length)
Read bytes from slot into buffer.
162
of file platform/bootloader/api/btl_interface_storage.h
write#
int32_t(* BootloaderStorageFunctions_t::write) (uint32_t slotId, uint32_t offset, uint8_t *buffer, size_t length)
Write bytes from buffer into slot.
167
of file platform/bootloader/api/btl_interface_storage.h
erase#
int32_t(* BootloaderStorageFunctions_t::erase) (uint32_t slotId)
Erase an entire slot.
172
of file platform/bootloader/api/btl_interface_storage.h
setImagesToBootload#
int32_t(* BootloaderStorageFunctions_t::setImagesToBootload) (int32_t *slotIds, size_t length)
Mark a list of slots for bootload.
175
of file platform/bootloader/api/btl_interface_storage.h
getImagesToBootload#
int32_t(* BootloaderStorageFunctions_t::getImagesToBootload) (int32_t *slotIds, size_t length)
Mark a list of slots for bootload.
177
of file platform/bootloader/api/btl_interface_storage.h
appendImageToBootloadList#
int32_t(* BootloaderStorageFunctions_t::appendImageToBootloadList) (int32_t slotId)
Append a slot to bootload list.
179
of file platform/bootloader/api/btl_interface_storage.h
initParseImage#
int32_t(* BootloaderStorageFunctions_t::initParseImage) (uint32_t slotId, BootloaderParserContext_t *context, size_t contextSize)
Start image parsing.
182
of file platform/bootloader/api/btl_interface_storage.h
verifyImage#
int32_t(* BootloaderStorageFunctions_t::verifyImage) (BootloaderParserContext_t *context, BootloaderParserCallback_t metadataCallback)
Continue image verification.
186
of file platform/bootloader/api/btl_interface_storage.h
getImageInfo#
int32_t(* BootloaderStorageFunctions_t::getImageInfo) (BootloaderParserContext_t *context, ApplicationData_t *appInfo, uint32_t *bootloaderVersion)
Get app and bootloader upgrade information from storage slot.
189
of file platform/bootloader/api/btl_interface_storage.h
isBusy#
bool(* BootloaderStorageFunctions_t::isBusy) (void)
Check whether the bootloader storage is busy.
193
of file platform/bootloader/api/btl_interface_storage.h
readRaw#
int32_t(* BootloaderStorageFunctions_t::readRaw) (uint32_t address, uint8_t *buffer, size_t length)
Read raw bytes from storage.
195
of file platform/bootloader/api/btl_interface_storage.h
writeRaw#
int32_t(* BootloaderStorageFunctions_t::writeRaw) (uint32_t address, uint8_t *buffer, size_t length)
Write bytes to raw storage.
197
of file platform/bootloader/api/btl_interface_storage.h
eraseRaw#
int32_t(* BootloaderStorageFunctions_t::eraseRaw) (uint32_t address, size_t length)
Erase storage.
199
of file platform/bootloader/api/btl_interface_storage.h
getDMAchannel#
int32_t(* BootloaderStorageFunctions_t::getDMAchannel) (void)
Get configured DMA channel.
201
of file platform/bootloader/api/btl_interface_storage.h