CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
gnss_telecommand_defs.c File Reference
#include "telecommand_exec/telecommand_definitions.h"
#include "telecommand_exec/telecommand_args_helpers.h"
#include "uart_handler/uart_handler.h"
#include "telecommands/eps_telecommands.h"
#include "gnss_receiver/gnss_internal_drivers.h"
#include "gnss_receiver/gnss_firehose_storage.h"
#include "log/log.h"
#include "littlefs/littlefs_helper.h"
#include "main.h"
#include "transforms/arrays.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for gnss_telecommand_defs.c:

Functions

uint8_t TCMDEXEC_gnss_send_cmd_ascii (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Send a command to the GNSS and receive the response as ASCII.
uint8_t TCMDEXEC_gnss_send_cmd_ascii_get_response_hex (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Send a command to the GNSS (text) and receive the response as hex.
uint8_t TCMDEXEC_gnss_enable_firehose_storage_mode (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
uint8_t TCMDEXEC_gnss_disable_firehose_storage_mode (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Disables the GNSS firehose storage mode (closes the firehose file).

Function Documentation

◆ TCMDEXEC_gnss_disable_firehose_storage_mode()

uint8_t TCMDEXEC_gnss_disable_firehose_storage_mode ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Disables the GNSS firehose storage mode (closes the firehose file).

Parameters
args_strNo args.
Returns
0: Success, >0: Failure
Note
This telecommand does not control EPS power. You must disable the GNSS power afterwards.
Here is the call graph for this function:

◆ TCMDEXEC_gnss_enable_firehose_storage_mode()

uint8_t TCMDEXEC_gnss_enable_firehose_storage_mode ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )
Here is the call graph for this function:

◆ TCMDEXEC_gnss_send_cmd_ascii()

uint8_t TCMDEXEC_gnss_send_cmd_ascii ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Send a command to the GNSS and receive the response as ASCII.

Parameters
args_str
  • Arg 0: Log command to be sent to GNSS eg "log bestxyza once" (string)
response_output_bufThe buffer to write the response to
response_output_buf_lenThe maximum length of the response_output_buf (its size)
Returns
0 on success, > 0 error
Here is the call graph for this function:

◆ TCMDEXEC_gnss_send_cmd_ascii_get_response_hex()

uint8_t TCMDEXEC_gnss_send_cmd_ascii_get_response_hex ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Send a command to the GNSS (text) and receive the response as hex.

Parameters
args_str
  • Arg 0: Log command to be sent to GNSS eg "log bestxyzb once" (string)
response_output_bufThe buffer to write the response to (output as hex)
response_output_buf_lenThe maximum length of the response_output_buf (its size)
Returns
0 on success, > 0 error
Here is the call graph for this function: