|
CTS-SAT-1-OBC-Firmware
|
#include "telecommand_exec/telecommand_args_helpers.h"#include "telecommands/flash_telecommand_defs.h"#include "littlefs/flash_driver.h"#include "littlefs/flash_benchmark.h"#include "debug_tools/debug_uart.h"#include "log/log.h"#include <stdio.h>#include <string.h>#include <inttypes.h>
Functions | |
| uint8_t | TCMDEXEC_flash_activate_each_cs (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Read bytes as hex from a flash address. | |
| uint8_t | TCMDEXEC_flash_each_is_reachable (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Read bytes as hex from a flash address. | |
| uint8_t | TCMDEXEC_flash_read_hex (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Read bytes as hex from a page number. | |
| uint8_t | TCMDEXEC_flash_write_hex (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Write a hex string of bytes to a page number. | |
| uint8_t | TCMDEXEC_flash_erase (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Erase a block of flash memory containing the given page number. | |
| uint8_t | TCMDEXEC_flash_benchmark_erase_write_read (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Benchmarks the erase/write/read operations on the flash memory module. | |
| uint8_t | TCMDEXEC_flash_reset (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Reset the flash memory module. | |
| uint8_t | TCMDEXEC_flash_read_status_register (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Read and print Status Register value as hex from the flash memory module. | |
Variables | |
| uint8_t | read_buf [FLASH_CHIP_PAGE_SIZE_BYTES] |
| uint8_t | bytes_to_write [FLASH_CHIP_PAGE_SIZE_BYTES] |
| uint8_t TCMDEXEC_flash_activate_each_cs | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Telecommand: Read bytes as hex from a flash address.
| args_str | No args. |

| uint8_t TCMDEXEC_flash_benchmark_erase_write_read | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Telecommand: Benchmarks the erase/write/read operations on the flash memory module.
| args_str |
|

| uint8_t TCMDEXEC_flash_each_is_reachable | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Telecommand: Read bytes as hex from a flash address.
| args_str | No args. |

| uint8_t TCMDEXEC_flash_erase | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Telecommand: Erase a block of flash memory containing the given page number.
| args_str |
|

| uint8_t TCMDEXEC_flash_read_hex | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Telecommand: Read bytes as hex from a page number.
| args_str |
|

| uint8_t TCMDEXEC_flash_read_status_register | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Telecommand: Read and print Status Register value as hex from the flash memory module.
| args_str |
|

| uint8_t TCMDEXEC_flash_reset | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Telecommand: Reset the flash memory module.
| args_str |
|

| uint8_t TCMDEXEC_flash_write_hex | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Telecommand: Write a hex string of bytes to a page number.
| args_str |
|

| uint8_t bytes_to_write[FLASH_CHIP_PAGE_SIZE_BYTES] |
| uint8_t read_buf[FLASH_CHIP_PAGE_SIZE_BYTES] |