|
CTS-SAT-1-OBC-Firmware
|
#include "main.h"#include "littlefs/littlefs_benchmark.h"#include "littlefs/littlefs_helper.h"#include <string.h>#include <stdio.h>
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. | |
| 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.
| 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. |


| 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.
| write_chunk_size | Number of bytes to write in each chunk. |
| write_chunk_count | Number of chunks to write. |
| response_str | |
| response_str_len |

