summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-07-14 14:42:40 -0700
committerGary E. Miller <gem@rellim.com>2018-07-14 14:42:40 -0700
commit5e95e79c115e5fdcf127aba5668ee8321c2d7747 (patch)
tree0796b7c3892eb5dc6898379f827bac77c185193a /gps.h
parent29ae0aee57b71053f000f8b8cbc0386a6b1a1e4a (diff)
downloadgpsd-5e95e79c115e5fdcf127aba5668ee8321c2d7747.tar.gz
update gpsd to send arbitrary data to GPS from client
New ?DEVICE:{"hexdata":"data" option.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index c5007452..d9bda0c4 100644
--- a/gps.h
+++ b/gps.h
@@ -1898,6 +1898,7 @@ struct version_t {
char remote[GPS_PATH_MAX]; /* could be from a remote device */
};
+#define HEXDATA_MAX 512 /* hex encoded command buffer, max */
struct devconfig_t {
char path[GPS_PATH_MAX];
int flags;
@@ -1907,6 +1908,8 @@ struct devconfig_t {
#define SEEN_AIS 0x08
char driver[64];
char subtype[64];
+ /* a buffer to hold data to output to GPS */
+ char hexdata[HEXDATA_MAX];
double activated;
unsigned int baudrate, stopbits; /* RS232 link parameters */
char parity; /* 'N', 'O', or 'E' */