CTS-SAT-1-OBC-Firmware
|
#include "telecommands/uart_telecommand_defs.h"
#include "telecommand_exec/telecommand_args_helpers.h"
#include "uart_handler/uart_handler.h"
#include "mpi/mpi_command_handling.h"
#include "log/log.h"
#include "debug_tools/debug_uart.h"
#include "uart_handler/uart_control.h"
#include <string.h>
#include <stdio.h>
Functions | |
uint8_t | TCMDEXEC_uart_send_hex_get_response_hex (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
Send arbitrary commands to a UART peripheral, and receive the response. | |
uint8_t | TCMDEXEC_uart_get_last_rx_times_json (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
Get a JSON dict of how long, in ms, SINCE each UART ISR handler was last triggered. | |
uint8_t | TCMDEXEC_uart_set_baud_rate (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
Variables | |
static const uint16_t | UART_TX_TIMEOUT_DURATION_MS = 200 |
Timeout duration for transmit HAL call, in milliseconds. | |
static const uint16_t | UART_RX_TIMEOUT_DURATION_MS = 300 |
Timeout duration for receive in milliseconds. Same between bytes and at the start. | |
const uint16_t | tx_buffer_max_size = 5120 |
const uint16_t | rx_buffer_max_size = 5120 |
static uint8_t | tx_buffer [5120] |
static uint8_t | rx_buffer [5120] |
uint8_t TCMDEXEC_uart_get_last_rx_times_json | ( | const char * | args_str, |
char * | response_output_buf, | ||
uint16_t | response_output_buf_len ) |
Get a JSON dict of how long, in ms, SINCE each UART ISR handler was last triggered.
uint8_t TCMDEXEC_uart_send_hex_get_response_hex | ( | const char * | args_str, |
char * | response_output_buf, | ||
uint16_t | response_output_buf_len ) |
Send arbitrary commands to a UART peripheral, and receive the response.
args_str |
|
response_output_buf | The buffer to write the response to |
response_output_buf_len | The maximum length of the response_output_buf (its size) |
uint8_t TCMDEXEC_uart_set_baud_rate | ( | const char * | args_str, |
char * | response_output_buf, | ||
uint16_t | response_output_buf_len ) |
|
static |
const uint16_t rx_buffer_max_size = 5120 |
|
static |
const uint16_t tx_buffer_max_size = 5120 |
|
static |
Timeout duration for receive in milliseconds. Same between bytes and at the start.
|
static |
Timeout duration for transmit HAL call, in milliseconds.