mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-10 01:06:09 +00:00
GPS
This commit is contained in:
20
ESP-IDF_GPS/main/nmea_example.h
Normal file
20
ESP-IDF_GPS/main/nmea_example.h
Normal 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);
|
Reference in New Issue
Block a user