CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
littlefs_benchmark.h File Reference
#include <stdint.h>
Include dependency graph for littlefs_benchmark.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  LFS_benchmark_mode_enum_t { LFS_SINGLE_FILE , LFS_NEW_FILE }
 

Functions

uint8_t LFS_benchmark_write_read (uint16_t write_chunk_size, uint16_t write_chunk_count, char *response_str, uint16_t response_str_len, LFS_benchmark_mode_enum_t mode)
 Benchmarks the write/read operations on the LittleFS file system.
 
uint8_t LFS_benchmark_write_read_single_and_new (uint16_t write_chunk_size, uint16_t write_chunk_count, char *response_str, uint16_t response_str_len)
 Benchmarks the write/read operations on the LittleFS file system for both cases: writing to a new file and writing to an existing file.
 

Enumeration Type Documentation

◆ LFS_benchmark_mode_enum_t

Enumerator
LFS_SINGLE_FILE 
LFS_NEW_FILE 

Function Documentation

◆ LFS_benchmark_write_read()

uint8_t LFS_benchmark_write_read ( uint16_t write_chunk_size,
uint16_t write_chunk_count,
char * response_str,
uint16_t response_str_len,
LFS_benchmark_mode_enum_t mode )

Benchmarks the write/read operations on the LittleFS file system.

This function will write test data to a static filename, read it back, and verify the read data.

Parameters
write_chunk_sizeNumber of bytes to write in each chunk.
write_chunk_countNumber of chunks to write.
response_str
response_str_len
modeCheck to see if we are writing to a new file or the same file.
Returns
0 on success. >0 if there was an error.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LFS_benchmark_write_read_single_and_new()

uint8_t LFS_benchmark_write_read_single_and_new ( uint16_t write_chunk_size,
uint16_t write_chunk_count,
char * response_str,
uint16_t response_str_len )

Benchmarks the write/read operations on the LittleFS file system for both cases: writing to a new file and writing to an existing file.

This function will write test data to a static filename, read it back, and verify the read data for both cases.

Parameters
write_chunk_sizeNumber of bytes to write in each chunk.
write_chunk_countNumber of chunks to write.
response_str
response_str_len
Returns
0 on success. >0 if there was an error.
Here is the call graph for this function:
Here is the caller graph for this function: