|
CTS-SAT-1-OBC-Firmware
|
#include "main.h"#include "debug_tools/debug_uart.h"#include "debug_tools/debug_i2c.h"#include "gnss_receiver/gnss_internal_drivers.h"#include "uart_handler/uart_handler.h"#include "stm32/stm32_timing_helpers.h"#include "log/log.h"#include <stdint.h>#include <string.h>
Functions | |
| uint8_t | GNSS_send_cmd_get_response (const char *cmd_buf, uint8_t cmd_buf_len, uint8_t rx_buf[], const uint16_t rx_buf_max_size, uint16_t *rx_buf_len_dest) |
| Sends a log command to the GNSS, and receives the response. | |
Variables | |
| UART_HandleTypeDef * | UART_gnss_port_handle |
| const uint32_t | GNSS_RX_TIMEOUT_BEFORE_FIRST_BYTE_MS = 800 |
| const uint32_t | GNSS_RX_TIMEOUT_BETWEEN_BYTES_MS = 2500 |
| uint8_t GNSS_send_cmd_get_response | ( | const char * | cmd_buf, |
| uint8_t | cmd_buf_len, | ||
| uint8_t | rx_buf[], | ||
| const uint16_t | rx_buf_max_size, | ||
| uint16_t * | rx_buf_len_dest ) |
Sends a log command to the GNSS, and receives the response.
| cmd_buf | log command string to send to the GNSS. |
| cmd_buf_len | Exact length of the log command string. |
| rx_buf | Buffer to store the response (not necessarily null terminated). |
| rx_buf_max_size | Maximum length of the response buffer. |
| rx_buf_len_dest | Pointer to place to store the length of the response buffer (not necessarily null terminated). |


| const uint32_t GNSS_RX_TIMEOUT_BEFORE_FIRST_BYTE_MS = 800 |
| const uint32_t GNSS_RX_TIMEOUT_BETWEEN_BYTES_MS = 2500 |
|
extern |