~bilalakhtar/ubuntu/maverick/gpsdrive/gpsdrive-fix-325288

« back to all changes in this revision

Viewing changes to src/garmin_command.h

  • 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
// $Id: garmin_command.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
 
2
// garmin_command.h
 
3
// Douglas S. J. De Couto
 
4
// September 9, 1998
 
5
 
 
6
// Copyright (C) 1998 Douglas S. J. De Couto
 
7
// <decouto@lcs.mit.edu>
 
8
//
 
9
// This program is free software; you can redistribute it and/or
 
10
// modify it under the terms of the GNU General Public License
 
11
// as published by the Free Software Foundation; either version 2
 
12
// of the License, or (at your option) any later version.
 
13
//
 
14
// This program is distributed in the hope that it will be useful,
 
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
// GNU General Public License for more details.
 
18
 
 
19
#ifndef _garcmdh
 
20
#define _garcmdh
 
21
 
 
22
// garmin command protocol codes
 
23
 
 
24
namespace garmin
 
25
{
 
26
 
 
27
enum device_cmnd {
 
28
        // protocol A010
 
29
        cmnd_abort_transfer = 0,
 
30
        cmnd_transfer_alm = 1,
 
31
        cmnd_transfer_posn = 2,
 
32
        cmnd_transfer_prx = 3, 
 
33
        cmnd_transfer_rte = 4,
 
34
        cmnd_transfer_time = 5,
 
35
        cmnd_transfer_trk = 6,
 
36
        cmnd_transfer_wpt = 7,
 
37
        cmnd_turn_off_pwr = 8,
 
38
        cmnd_start_pvt_data = 49,
 
39
        cmnd_stop_pvt_data = 50,
 
40
        cmnd_transfer_screenbitmap = 32,
 
41
        
 
42
        // protocol A011
 
43
        cmnd_abort_transfer011 = 0,
 
44
        cmnd_transfer_alm011 = 4,
 
45
        cmnd_transfer_rte011 = 8,
 
46
        cmnd_transfer_time011 = 20,
 
47
        cmnd_transfer_wpt011 = 21,
 
48
        cmnd_turn_off_pwr011 = 26
 
49
};
 
50
 
 
51
} // namespace
 
52
 
 
53
#endif // _garcmdh