|
static void | PIOS_STREAMFS_RegisterTxCallback (uintptr_t fs_id, pios_com_callback tx_out_cb, uintptr_t context) |
|
static void | PIOS_STREAMFS_TxStart (uintptr_t fs_id, uint16_t tx_bytes_avail) |
|
static uintptr_t | streamfs_get_addr (const struct streamfs_state *streamfs, uint32_t arena_id, uint16_t arena_offset) |
| Return the offset in flash of a particular slot within an arena. More...
|
|
enum arena_state | __attribute__ ((packed)) |
|
static int32_t | streamfs_erase_arena (const struct streamfs_state *streamfs, uint32_t arena_id) |
| Erases all sectors within the given arena and sets arena to erased state. More...
|
|
static int32_t | streamfs_erase_all_arenas (const struct streamfs_state *streamfs) |
| Erases all arenas available to this filesystem instance. More...
|
|
static bool | streamfs_validate (const struct streamfs_state *streamfs) |
|
static struct streamfs_state * | streamfs_alloc (void) |
|
static int32_t | streamfs_new_sector (struct streamfs_state *streamfs) |
|
static int32_t | streamfs_close_sector (struct streamfs_state *streamfs) |
|
static int32_t | streamfs_find_first_arena (struct streamfs_state *streamfs, int32_t file_id) |
|
static int32_t | streamfs_find_last_arena (struct streamfs_state *streamfs, int32_t file_id) |
|
static int32_t | streamfs_find_new_sector (struct streamfs_state *streamfs) |
|
static int32_t | streamfs_append_to_file (struct streamfs_state *streamfs, uint8_t *data, uint32_t len) |
|
static int32_t | streamfs_read_from_file (struct streamfs_state *streamfs, uint8_t *data, uint32_t len) |
|
static int32_t | streamfs_scan_filesystem (struct streamfs_state *streamfs) |
|
static void | PIOS_STREAMFS_Task (void *parameters) |
|
int32_t | PIOS_STREAMFS_Init (uintptr_t *fs_id, const struct streamfs_cfg *cfg, enum pios_flash_partition_labels partition_label) |
| Initialize the flash object setting FS. More...
|
|
int32_t | PIOS_STREAMFS_Format (uintptr_t fs_id) |
| Erases all filesystem arenas and activate the first arena. More...
|
|
int32_t | PIOS_STREAMFS_OpenWrite (uintptr_t fs_id) |
|
int32_t | PIOS_STREAMFS_OpenRead (uintptr_t fs_id, uint32_t file_id) |
|
int32_t | PIOS_STREAMFS_MinFileId (uintptr_t fs_id) |
|
int32_t | PIOS_STREAMFS_MaxFileId (uintptr_t fs_id) |
|
int32_t | PIOS_STREAMFS_Close (uintptr_t fs_id) |
|
int32_t | PIOS_STREAMFS_Read (uintptr_t fs_id, uint8_t *data, uint32_t len) |
|
int32_t | PIOS_STREAMFS_Testing_Write (uintptr_t fs_id, uint8_t *data, uint32_t len) |
|