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

Go to the source code of this file.

Functions

uint8_t GNSS_enable_firehose_storage_mode (const char output_file_path[])
 Configures the OBC to receive and store all data from the GNSS receiver to a file.
uint8_t GNSS_disable_firehose_storage_mode (const char reason_for_stopping[])
uint8_t GNSS_subtask_store_firehose_data_to_file ()
 Store pending data in the UART_gnss_buffer to the GNSS firehose file.

Variables

uint8_t GNSS_firehose_file_is_open
volatile uint32_t GNSS_firehose_bytes_lost
lfs_file_t GNSS_firehose_file_pointer
uint32_t GNSS_recording_start_uptime_ms

Function Documentation

◆ GNSS_disable_firehose_storage_mode()

uint8_t GNSS_disable_firehose_storage_mode ( const char reason_for_stopping[])
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNSS_enable_firehose_storage_mode()

uint8_t GNSS_enable_firehose_storage_mode ( const char output_file_path[])

Configures the OBC to receive and store all data from the GNSS receiver to a file.

Returns
0: Success. Non-zero: Error.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNSS_subtask_store_firehose_data_to_file()

uint8_t GNSS_subtask_store_firehose_data_to_file ( )

Store pending data in the UART_gnss_buffer to the GNSS firehose file.

Returns
0 on success or no-op. Non-zero: Error.
Note
Intended to be called in a periodic background loop, but also can be called from telecommand.
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ GNSS_firehose_bytes_lost

volatile uint32_t GNSS_firehose_bytes_lost
extern

◆ GNSS_firehose_file_is_open

uint8_t GNSS_firehose_file_is_open
extern

◆ GNSS_firehose_file_pointer

lfs_file_t GNSS_firehose_file_pointer
extern

◆ GNSS_recording_start_uptime_ms

uint32_t GNSS_recording_start_uptime_ms
extern