CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
littlefs_telecommands.c File Reference
#include "littlefs/littlefs_telecommands.h"
#include "littlefs/lfs.h"
#include "littlefs/littlefs_helper.h"
#include <stdint.h>
#include <stdio.h>
Include dependency graph for littlefs_telecommands.c:

Functions

int32_t LFS_list_directory_json_dict (const char root_directory[], uint16_t offset, int16_t count, char *json_output_buf, uint16_t json_output_buf_size)
int8_t LFS_get_filesystem_stats_json (char *json_output_buf, uint16_t json_output_buf_size)
 Generate a JSON string containing filesystem stats and debugging info.

Variables

uint32_t LFS_debug_malloc_total_count = 0
uint32_t LFS_debug_malloc_failed_count = 0
uint32_t LFS_debug_free_total_count = 0

Function Documentation

◆ LFS_get_filesystem_stats_json()

int8_t LFS_get_filesystem_stats_json ( char * json_output_buf,
uint16_t json_output_buf_size )

Generate a JSON string containing filesystem stats and debugging info.

Parameters
json_output_buf
json_output_buf_size
Returns
0 on success. Negative LFS error codes. Positive other error codes.
Note
Used space may be approximate, due to the nature of LittleFS Copy-on-Write (COW).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LFS_list_directory_json_dict()

int32_t LFS_list_directory_json_dict ( const char root_directory[],
uint16_t offset,
int16_t count,
char * json_output_buf,
uint16_t json_output_buf_size )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ LFS_debug_free_total_count

uint32_t LFS_debug_free_total_count = 0

◆ LFS_debug_malloc_failed_count

uint32_t LFS_debug_malloc_failed_count = 0

◆ LFS_debug_malloc_total_count

uint32_t LFS_debug_malloc_total_count = 0