|
ASCEND Flight Software
|
Main functions for Core 1, responsible for sending data to storage peripherals. More...
#include <Arduino.h>#include "ErrorDisplay.h"#include "Logger.h"#include "PayloadConfig.h"#include "Storage.h"#include "CommandMessage.h"#include "FlashStorage.h"#include "RadioStorage.h"#include "SDStorage.h"Functions | |
| int | verifyStorage () |
| Verifies the connection with each storage device, and defines the header_condensed field. | |
| int | verifyStorageRecovery () |
| Verifies the connection with each storage device, and defines the header_condensed field, uses recovery system. | |
| void | storeData (String data) |
| Sends data to each storage device, assumes storage devices take care of newline/data end themselves. | |
| void | storeDataPacket (uint8_t *packet) |
| Sends data to each storage device. | |
| void | real_setup1 () |
| Setup for core 1. | |
| void | real_loop1 () |
| Loop for core 1. | |
Variables | |
| SDStorage | sd_storage |
| RadioStorage | radio_storage |
| FlashStorage | flash_storage |
| Storage * | storages [] = {&sd_storage, &radio_storage, &flash_storage} |
| const int | storages_len = sizeof(storages) / sizeof(storages[0]) |
| queue_t | qt |
| bool | core1_separate_stack = true |
| int | it2 = 0 |
Main functions for Core 1, responsible for sending data to storage peripherals.
| void real_loop1 | ( | ) |
Loop for core 1.
| void real_setup1 | ( | ) |
Setup for core 1.
| void storeData | ( | String | data | ) |
Sends data to each storage device, assumes storage devices take care of newline/data end themselves.
| data | Data in a CSV formatted string |
| void storeDataPacket | ( | uint8_t * | packet | ) |
Sends data to each storage device.
| packet | Pointer to packet bytes |
| int verifyStorage | ( | ) |
Verifies the connection with each storage device, and defines the header_condensed field.
| int verifyStorageRecovery | ( | ) |
Verifies the connection with each storage device, and defines the header_condensed field, uses recovery system.
| bool core1_separate_stack = true |
| FlashStorage flash_storage |
| int it2 = 0 |
|
extern |
| RadioStorage radio_storage |
| SDStorage sd_storage |
| Storage* storages[] = {&sd_storage, &radio_storage, &flash_storage} |