1
// -*- mode: c++; c-basic-offset: 8; -*-
2
// $Id: garmin_legacy.cpp,v 1.1 2003/04/28 15:57:33 ganter Exp $
7
// Copyright (C) 2000 Danilo Beuche
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.
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.
20
#include "garmin_legacy.h"
24
legacy_protocols dev73 =
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 } },
38
legacy_protocols dev96 =
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 } },
54
// Below is am example from a capability return device
55
// it is an eTrex version 2.06
56
legacy_protocols dev130 =
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 } },
73
struct legacy_device legacy_devices[11] =
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 },