Devuan fork of gpsd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
2.4 KiB

  1. <sect1 id="net_dgnss_dispatch.c"><title><filename>dgnss.c</filename></title>
  2. <informaltable frame='all' pgwide='1'>
  3. <tgroup cols='2'>
  4. <colspec colname='c1'></colspec>
  5. <colspec colname='c2'></colspec>
  6. <spanspec spanname='s1' namest='c1' nameend='c2'></spanspec>
  7. <thead>
  8. <row>
  9. <entry>Functions:-</entry><entry>This file provides the interface to Differential GNSS (Global Navigation Satellite Systems) services.</entry>
  10. </row>
  11. </thead>
  12. <tfoot>
  13. <row>
  14. <entry spanname='s1' align='left'>Notes based on code as of Mon Apr 5 21:38:06 2010 -0400.</entry>
  15. </row>
  16. </tfoot>
  17. <tbody>
  18. <row>
  19. <entry><function>bool netgnss_url(char *name)</function></entry>
  20. <entry><para>Check if a URL is valid for GNSS/DGPS service.</para></entry>
  21. </row>
  22. <row>
  23. <entry><function>int netgnss_open(struct gps_context_t *context, char *dgnss_service)</function></entry>
  24. <entry><para>Try to open a connection to the nominated service. If
  25. the service cannot be opened, the return is -1. The supported
  26. services are <function>dgpsip</function> (differential corrections
  27. via IP) and <function>ntrip</function> (differential corrections in
  28. http form).</para></entry>
  29. </row>
  30. <row>
  31. <entry><function>int netgnss_poll(struct gps_context_t *context)</function></entry>
  32. <entry><para>Try to poll the GNSS service for a correction
  33. report. If no socket is active, simply return 0. If a socket is
  34. active, on successful read it stores the current timestamp and the
  35. report in the context buffer then returns 0. If no data is ready or
  36. an error (except <errortype>EAGAIN</errortype>) occurs, drop the
  37. connection and return -1.</para></entry>
  38. </row>
  39. <row>
  40. <entry><function>void netgnss_report(struct gps_device_t *session)</function></entry>
  41. <entry><para>Call the <function>dgpsip_report()</function> or
  42. <function>ntrip_report()</function> function if either is
  43. active.</para></entry>
  44. </row>
  45. <row>
  46. <entry><function>void netgnss_autoconnect(struct gps_context_t *context, double lat, double lon)</function></entry>
  47. <entry><para>Call the <function>autoconnect()</function> function in
  48. <function>dgpsip.c</function></para></entry>
  49. </row>
  50. <row>
  51. <entry><function>void rtcm_relay(struct gps_device_t *session)</function></entry>
  52. <entry><para>If there is a DGNSS connection report in the context buffer, pass it to the caller. If the transaction fails, generate an error log, otherwise, update the session timestamp.</para></entry>
  53. </row>
  54. </tbody>
  55. </tgroup>
  56. </informaltable>
  57. </sect1>