|
K-FSW ec10f94
Modular flight software on Zephyr, for small satellites
|
#include <stdbool.h>#include <stdint.h>Data Structures | |
| struct | kfsw_storage_info |
Macros | |
| #define | KFSW_STORAGE_MOUNT_POINT "/kfsw" |
Functions | |
| int | kfsw_storage_init (void) |
| int | kfsw_storage_mount (void) |
| int | kfsw_storage_unmount (void) |
| bool | kfsw_storage_is_ready (void) |
| int | kfsw_storage_get_info (struct kfsw_storage_info *info) |
LittleFS setup, mount and capacity API.
| int kfsw_storage_get_info | ( | struct kfsw_storage_info * | info | ) |
Read current K-FSW storage information.
Capacity values are reported only while the volume is mounted.
| [out] | info | Storage information. |
| 0 | Information was returned successfully. |
| -EINVAL | info is NULL. |
| int kfsw_storage_init | ( | void | ) |
Initialize the configured flash storage backend.
Repeated successful calls are harmless. This does not mount or format the filesystem.
| 0 | The backend is initialized and available. |
| bool kfsw_storage_is_ready | ( | void | ) |
| int kfsw_storage_mount | ( | void | ) |
Mount the K-FSW storage volume.
Repeated successful calls are harmless. If the initial no-format mount reports a corrupt filesystem and every byte in the partition still has the flash erase value, the partition is treated as first-boot media, formatted, and mounted once more. Non-erased media is never automatically formatted.
| 0 | The volume is mounted and ready. |
| int kfsw_storage_unmount | ( | void | ) |
Unmount the K-FSW storage volume.
Repeated calls while unmounted are harmless.
| 0 | The volume is unmounted. |