~ubuntu-branches/ubuntu/maverick/gpsdrive/maverick

« back to all changes in this revision

Viewing changes to src/garmin_legacy.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Frank Kirschner
  • Date: 2004-05-25 11:44:03 UTC
  • Revision ID: james.westby@ubuntu.com-20040525114403-j3rsu57cavfax6z8
Tags: upstream-2.09
ImportĀ upstreamĀ versionĀ 2.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- mode: c++; c-basic-offset: 8; -*-
 
2
// $Id: garmin_legacy.cpp,v 1.1 2003/04/28 15:57:33 ganter Exp $
 
3
// garmin_legacy.cp
 
4
// Danilo Beuche
 
5
// May 26, 1998
 
6
 
 
7
// Copyright (C) 2000 Danilo Beuche
 
8
// <danilo@topmail.de>
 
9
//
 
10
// This program is free software; you can redistribute it and/or
 
11
// modify it under the terms of the GNU General Public License
 
12
// as published by the Free Software Foundation; either version 2
 
13
// of the License, or (at your option) any later version.
 
14
//
 
15
// This program is distributed in the hope that it will be useful,
 
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
// GNU General Public License for more details.
 
19
 
 
20
#include "garmin_legacy.h"
 
21
 
 
22
namespace garmin {
 
23
 
 
24
        legacy_protocols dev73 =
 
25
        {
 
26
                { 'L',  1, { type_end } },
 
27
                { 'A', 10, { type_end } },
 
28
                { 'A', 100, { 103, type_end } },
 
29
                { 'A', 200, { 201, 103, type_end } },
 
30
                { 'A', 300, { 301, type_end } },
 
31
                { 'A', 500, { 501, type_end } },
 
32
                { 'A', 600, { 600, type_end } },
 
33
                { 'A', 700, { 700, type_end } },
 
34
                { 'A', 000, { type_end } },
 
35
                { 'P', 000, { type_end } },
 
36
                {  0, 000, { 0 } },
 
37
        };
 
38
        legacy_protocols dev96 =
 
39
        {
 
40
                { 'L',  1, { type_end } },
 
41
                { 'A', 10, { type_end } },
 
42
                { 'A', 100, { 103, type_end } },
 
43
                { 'A', 200, { 201, 103, type_end } },
 
44
                { 'A', 300, { 301, type_end } },
 
45
                { 'A', 400, { 403, type_end } },
 
46
                { 'A', 500, { 501, type_end } },
 
47
                { 'A', 600, { 600, type_end } },
 
48
                { 'A', 700, { 700, type_end } },
 
49
                { 'A', 000, { type_end } },
 
50
                { 'P', 000, { type_end } },
 
51
                {  0, 000, { 0 } },
 
52
        };
 
53
 
 
54
        // Below is am example from a capability return device
 
55
        // it is an eTrex version 2.06
 
56
        legacy_protocols dev130 =
 
57
        {
 
58
                { 'L',  1, { type_end } },
 
59
                { 'A', 10, { type_end } },
 
60
                { 'A', 100, { 108, type_end } },
 
61
                { 'A', 201, { 202, 108, 201, type_end } },
 
62
                { 'A', 301, { 310, 301, type_end } },
 
63
                { 'A', 500, { 501, type_end } },
 
64
                { 'A', 600, { 600, type_end } },
 
65
                { 'A', 700, { 700, type_end } },
 
66
                { 'A', 800, { 800, type_end } },
 
67
                { 'A', 000, { type_end } },
 
68
                { 'P', 000, { type_end } },
 
69
                {  0, 000, { 0 } },
 
70
        };
 
71
 
 
72
 
 
73
        struct legacy_device legacy_devices[11] =
 
74
        {
 
75
                { 73, min_version, max_version, dev73 },
 
76
                { 77, 301, 349, dev96 },
 
77
                { 77, 361, max_version, dev96 },
 
78
                { 87, min_version, max_version, dev96 },
 
79
                { 95, min_version, max_version, dev96 },
 
80
                { 96, min_version, max_version, dev96 },
 
81
                { 100, min_version, max_version, dev96 },
 
82
                { 105, min_version, max_version, dev96 },
 
83
                { 106, min_version, max_version, dev96 },
 
84
                { 130, min_version, max_version, dev130 },
 
85
                { 0, 0, 0 , 0 }
 
86
        };
 
87
 
 
88
} // namespace