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.0 KiB

  1. <sect1 id="libgps.c"><title><filename>libgps.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>The client interface library for the <application>gpsd</application> daemon.</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>
  20. <function>char *deg_to_str(enum deg_str_type type, double f)</function>
  21. </entry>
  22. <entry>
  23. <para>Convert the absolute value of double degrees to a static string
  24. and return a pointer to it.</para>
  25. <para>Makes a simple check on invalid degree values (not more
  26. than 360) and returns "nan" on error.</para>
  27. <para>For valid values, it generates the appropriate string according
  28. to the string type enumeration: dd, ddmm or ddmmss.</para>
  29. <para>Warning: not thread safe.</para>
  30. </entry>
  31. </row>
  32. <row>
  33. <entry>
  34. <function>char *deg_to_str2(enum deg_str_type type, double f, char *buf,
  35. unsigned int buf_size, const char *suffix_pos, const char *suffix_neg)
  36. </function>
  37. </entry>
  38. <entry>
  39. <para>Convert the absolute value of double degrees to a string
  40. and place in the buffer "buf". Return a pointer to the buffer.
  41. "buf_size" is the size of the buffer.</para>
  42. <para>Makes a simple check on invalid degree values (not more
  43. than 360) and returns "nan" on error.</para>
  44. <para>For valid values, it generates the appropriate string according
  45. to the string type enumeration: dd, ddmm or ddmmss. If the
  46. degrees are positive, append "suffix_pos", else append "suffix_neg".
  47. </para>
  48. </entry>
  49. </row>
  50. <row>
  51. <entry><function>enum unit gpsd_units(void)</function></entry>
  52. <entry><para>Simple check of the environment to determine what units are required. If all else fails, use compiled in units.</para></entry>
  53. </row>
  54. </tbody>
  55. </tgroup>
  56. </informaltable>
  57. </sect1>