diff options
author | Gary E. Miller <gem@rellim.com> | 2018-07-14 14:42:40 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-07-14 14:42:40 -0700 |
commit | 5e95e79c115e5fdcf127aba5668ee8321c2d7747 (patch) | |
tree | 0796b7c3892eb5dc6898379f827bac77c185193a /gps.h | |
parent | 29ae0aee57b71053f000f8b8cbc0386a6b1a1e4a (diff) | |
download | gpsd-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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' */ |