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

Go to the source code of this file.

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.

Function Documentation

◆ GNSS_send_cmd_get_response()

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.

Parameters
cmd_bufLog command string to send to the GNSS, without EOL characters.
cmd_buf_lenExact length of the log command string.
rx_bufBuffer to store the response (not necessarily null terminated).
rx_buf_max_sizeSize of the response buffer.
rx_buf_len_destPointer to place to store the length of the response buffer (not necessarily null terminated).
Returns
0 on success, >0 if error.
Note
This function is intended for "once" log commands and control commands.
This function does not validate the response, as related to the request.
Here is the call graph for this function:
Here is the caller graph for this function: