From d8829d852ce94798bda2f4915c4ca9f827a7a364 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Tue, 12 Aug 2025 09:14:08 -0400 Subject: [PATCH] GPS --- ESP-IDF_GPS/main/nmea_example.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ESP-IDF_GPS/main/nmea_example.h diff --git a/ESP-IDF_GPS/main/nmea_example.h b/ESP-IDF_GPS/main/nmea_example.h new file mode 100644 index 000000000..95bdf9b40 --- /dev/null +++ b/ESP-IDF_GPS/main/nmea_example.h @@ -0,0 +1,20 @@ +#pragma once + +#include + +/** + * @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); \ No newline at end of file