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.

magellan.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright (C) 2002-2005 Robert Lipe, robertlipe@usa.net
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
  14. */
  15. /*
  16. * Table of "interesting" Magellan models.
  17. * Selfishly, if I haven't heard of it, it's not in the table.
  18. * This doesn't mean I actually have TRIED all models listed below.
  19. * (Donations welcome. :-)
  20. */
  21. typedef enum {
  22. mm_unknown = 0 ,
  23. mm_gps315320,
  24. mm_map410,
  25. mm_map330,
  26. mm_gps310,
  27. mm_meridian,
  28. mm_sportrak
  29. } meridian_model;
  30. typedef struct pid_to_model {
  31. meridian_model model;
  32. int pid;
  33. const char* model_n;
  34. } pid_to_model_t;
  35. typedef struct icon_mapping {
  36. const char* token;
  37. const char* icon;
  38. } icon_mapping_t;
  39. QString mag_find_descr_from_token(const char* token);
  40. QString mag_find_token_from_descr(const QString& icon);
  41. unsigned int mag_checksum(const char* const buf);
  42. QString m330_cleanse(const char* istring);
  43. Waypoint* mag_trkparse(char* trkmsg);
  44. void mag_rteparse(char* rtemsg);