SELKIELogger  1.0.0
LoggerGPS.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Swansea University
3  *
4  * This file is part of the SELKIELogger suite of tools.
5  *
6  * SELKIELogger is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the Free
8  * Software Foundation, either version 3 of the License, or (at your option)
9  * any later version.
10  *
11  * SELKIELogger is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this SELKIELogger product.
18  * If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef SL_LOGGER_GPS_H
22 #define SL_LOGGER_GPS_H
23 
24 #include <errno.h>
25 #include <stdbool.h>
26 #include <stdint.h>
27 #include <stdlib.h>
28 #include <string.h>
29 #include <unistd.h>
30 
31 #include "SELKIELoggerBase.h"
32 #include "SELKIELoggerGPS.h"
33 
35 
50 typedef struct {
51  char *portName;
52  char *sourceName;
53  uint8_t sourceNum;
55  int targetBaud;
56  int handle;
57  bool dumpAll;
58 } gps_params;
59 
61 void *gps_setup(void *ptargs);
62 
64 void *gps_logging(void *ptargs);
65 
67 void *gps_shutdown(void *ptargs);
68 
70 void *gps_channels(void *ptargs);
71 
74 
77 
81 #endif
void * gps_channels(void *ptargs)
GPS Channel map.
Definition: LoggerGPS.c:284
void * gps_setup(void *ptargs)
GPS Setup.
Definition: LoggerGPS.c:42
void * gps_shutdown(void *ptargs)
GPS Shutdown.
Definition: LoggerGPS.c:257
device_callbacks gps_getCallbacks(void)
Fill out device callback functions for logging.
Definition: LoggerGPS.c:326
gps_params gps_getParams(void)
Fill out default GPS parameters.
Definition: LoggerGPS.c:337
bool gps_parseConfig(log_thread_args_t *lta, config_section *s)
Parse configuration section.
Definition: LoggerGPS.c:352
void * gps_logging(void *ptargs)
GPS logging (with pthread function signature)
Definition: LoggerGPS.c:122
Configuration file section.
Definition: LoggerConfig.h:54
Device specific function information.
Definition: Logger.h.in:72
GPS Device specific parameters.
Definition: LoggerGPS.h:50
int handle
Handle for currently opened device.
Definition: LoggerGPS.h:56
char * portName
Target port name.
Definition: LoggerGPS.h:51
bool dumpAll
Dump all GPS messages to output queue.
Definition: LoggerGPS.h:57
int targetBaud
Baud rate for operations (currently unused)
Definition: LoggerGPS.h:55
char * sourceName
User defined name for this GPS.
Definition: LoggerGPS.h:52
uint8_t sourceNum
Source ID for messages.
Definition: LoggerGPS.h:53
int initialBaud
Baud rate for initial configuration.
Definition: LoggerGPS.h:54
Logging thread information.
Definition: Logger.h.in:86