cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsCANBus.h
Go to the documentation of this file.
1 /*
2 
3  Author(s): Simon Leonard
4  Created on: Dec 02 2009
5 
6  (C) Copyright 2009 Johns Hopkins University (JHU), All Rights
7  Reserved.
8 
9 --- begin cisst license - do not edit ---
10 
11 This software is provided "as is" under an open source license, with
12 no warranty. The complete license can be found in license.txt and
13 http://www.cisst.org/cisst/license.txt.
14 
15 --- end cisst license ---
16 */
17 
18 
19 #ifndef _mtsCANBus_h
20 #define _mtsCANBus_h
21 
24 
25 #include <sawCANBus/osaCANBus.h>
28 
30 
40 
42 
43  private:
44 
46 
50  osaCANBus* can;
51 
53  void mtsOpen();
54 
56  void mtsClose();
57 
59  void mtsRead( mtsCANBusFrame &frame ) const;
60 
62  void mtsWrite( const mtsCANBusFrame &frame );
63 
64  protected:
65 
68 
71 
72  public:
73 
74  // Main constructor
80  mtsCANBus( const std::string& componentname, osaCANBus* can );
81 
82 };
83 
85 
86 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
MTS interfaces for a sawCANBus device.
Definition: mtsCANBus.h:39
mtsInterfaceProvided * io
The input/output interface.
Definition: mtsCANBus.h:67
#define CMN_LOG_LOD_RUN_ERROR
Definition: cmnLogLoD.h:93
mtsInterfaceProvided * ctl
The control interface.
Definition: mtsCANBus.h:70
Declaration of mtsComponent.
Definition: mtsCANBusFrame.h:26
Definition: mtsComponent.h:150
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
Generic CAN bus.
Definition: osaCANBus.h:15
Definition: mtsInterfaceProvided.h:96
Declaration of mtsInterfaceProvided.
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202