summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-03-02 19:56:49 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-03-02 19:56:49 +0000
commit58953b69d5823afbbee7f4f7482527008dbd1aac (patch)
tree64fd476edd6155c19374c95b391e3af45c26383e
parente9e56597864207da9735f4cb992a889ea261bfa8 (diff)
downloadgpsd-58953b69d5823afbbee7f4f7482527008dbd1aac.tar.gz
Update driver guide for the recent extension.
-rw-r--r--www/writing-a-driver.xml17
1 files changed, 15 insertions, 2 deletions
diff --git a/www/writing-a-driver.xml b/www/writing-a-driver.xml
index 41e717cd..035cb5ee 100644
--- a/www/writing-a-driver.xml
+++ b/www/writing-a-driver.xml
@@ -16,6 +16,15 @@
<revhistory>
<revision>
+ <revnumber>1.5</revnumber>
+ <date>1 Mar 2009</date>
+ <authorinitials>er</authorinitials>
+ <revremark>
+ Updated by esr to reflect the parity/stopbits
+ extension of the sopeed_switcher method.
+ </revremark>
+ </revision>
+ <revision>
<revnumber>1.4</revnumber>
<date>17 February 2009</date>
<authorinitials>er</authorinitials>
@@ -56,7 +65,7 @@ gpsd version 2.34 compiled from SVN revision 3884 of November 14th
this, but the broad principles should still apply. Check what version
you are using.</para>
-<para><application>gpsd</application> supports auto detection, so
+<para><application>gpsd</application> supports autodetection, so
connect your device and try it; you may be lucky and find it is
already supported. If you are unlucky, you have to be prepared to do a
lot of work and research on your own.</para>
@@ -599,8 +608,12 @@ write of the data, which is provided by the default routine
<function>pass_rtcm</function>. If the device does not
accept differential data, the value is NULL.</para>
+<!-- modified by ESR, 2009 -->
<para><structfield>.speed_switcher</structfield> points to a block of
-code to change baud rate (if supported).</para>
+code to change baud rate, parity, and stop bits (if supported). If
+your ddevice can support some speed/parity/stopbits combinations but
+not others, it should return false on a mode-change request it can't
+handle.</para>
<para><structfield>.mode_switcher</structfield> points to a block of code
to change the mode (if supported) between NMEA (mode 0) and our