This commit is contained in:
2025-08-12 09:14:08 -04:00
parent c9efc6f567
commit d8829d852c

View File

@@ -0,0 +1,20 @@
#pragma once
#include <stddef.h>
/**
* @brief Initialize the interface connected to the GPS (I2C or UART)
*/
void nmea_example_init_interface(void);
/**
* @brief Get one NMEA message line from the GPS.
*
* Note, the returned buffer pointer is only valid until the next call to this function.
* If no data was received, out_line_len is zero.
*
* @param[out] out_line_buf output, pointer to the buffer containing the NMEA message
* @param[out[ out_line_len length of the message, in bytes
* @param[in] timeout_ms timeout for reading the message, in milliseconds
*/
void nmea_example_read_line(char **out_line_buf, size_t *out_line_len, int timeout_ms);