Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
exfat.h
Go to the documentation of this file.
1
16#ifndef INFUSE_SDK_INCLUDE_INFUSE_DFU_EXFAT_H_
17#define INFUSE_SDK_INCLUDE_INFUSE_DFU_EXFAT_H_
18
19#include <zephyr/device.h>
20#include <zephyr/storage/flash_map.h>
21
22#include <infuse/version.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
39typedef void (*dfu_exfat_progress_cb_t)(size_t copied, size_t total);
40
66int dfu_exfat_app_upgrade_exists(const struct device *dev, struct infuse_version *upgrade);
67
79int dfu_exfat_app_upgrade_copy(const struct device *dev, struct infuse_version upgrade,
80 uint8_t flash_area_id, dfu_exfat_progress_cb_t progress_cb);
81
86#ifdef __cplusplus
87}
88#endif
89
90#endif /* INFUSE_SDK_INCLUDE_INFUSE_DFU_EXFAT_H_ */
int dfu_exfat_app_upgrade_exists(const struct device *dev, struct mcuboot_img_sem_ver *upgrade)
Check whether a valid DFU file exists on the filesystem.
void(* dfu_exfat_progress_cb_t)(size_t copied, size_t total)
Progress callback for DFU copy.
Definition exfat.h:39
int dfu_exfat_app_upgrade_copy(const struct device *dev, struct mcuboot_img_sem_ver upgrade, uint8_t flash_area_id, dfu_exfat_progress_cb_t progress_cb)
Copy DFU file from filesystem onto flash area.
#define infuse_version
Definition version.h:37
Infuse application versioning.