#include <stdint.h>
Go to the source code of this file.
|
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.
|
|
◆ LFS_benchmark_mode_enum_t
Enumerator |
---|
LFS_SINGLE_FILE | |
LFS_NEW_FILE | |
◆ 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_size | Number of bytes to write in each chunk. |
write_chunk_count | Number of chunks to write. |
response_str | |
response_str_len | |
mode | Check to see if we are writing to a new file or the same file. |
- Returns
- 0 on success. >0 if there was an error.
◆ 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_size | Number of bytes to write in each chunk. |
write_chunk_count | Number of chunks to write. |
response_str | |
response_str_len | |
- Returns
- 0 on success. >0 if there was an error.