diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-02-28 18:10:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-02-28 18:10:11 +0000 |
commit | 08a01e8e6522b884f840900fc1f6a5cc2e2dc53d (patch) | |
tree | c13c249916faddbb60f630e6196a156f13fe5a9c /gpsd.h-tail | |
parent | 6f0f1f9f49616b03361872b9d355638cb28a3a4e (diff) | |
download | gpsd-08a01e8e6522b884f840900fc1f6a5cc2e2dc53d.tar.gz |
Create infrastructure for allowing changes of parity and stop bits.
Mainly useful for debugging odd stuff like Trimbles, most things run
8N1 these days. Don't expose it to the user yet.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index 9993b817..13095950 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -195,7 +195,8 @@ struct gps_type_t { /*@null@*/ssize_t (*get_packet)(struct gps_device_t *session); /*@null@*/gps_mask_t (*parse_packet)(struct gps_device_t *session); /*@null@*/ssize_t (*rtcm_writer)(struct gps_device_t *session, char *rtcmbuf, size_t rtcmbytes); - /*@null@*/bool (*speed_switcher)(struct gps_device_t *session, speed_t speed); + /*@null@*/bool (*speed_switcher)(struct gps_device_t *session, + speed_t speed, char parity, int stopbits); /*@null@*/void (*mode_switcher)(struct gps_device_t *session, int mode); #define MODE_NMEA 0 #define MODE_BINARY 1 |