cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsRTSocketCAN.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 _mtsRTSocketCAN_h
20 #define _mtsRTSocketCAN_h
21 
22 #include <sawCANBus/mtsCANBus.h>
25 
27 
32 
33  public mtsCANBus, // This adds the MTS CAN interface
34  public osaRTSocketCAN{ // This adds the osaRTSocketCAN code
35 
36  public:
37 
39 
45  mtsRTSocketCAN( const std::string& cmpname,
46  const std::string& canname,
47  osaCANBus::Rate rate,
49  mtsCANBus( cmpname, this ),
50  osaRTSocketCAN( canname, rate, loopback ){}
51 
52 };
53 
54 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
mtsRTSocketCAN(const std::string &cmpname, const std::string &canname, osaCANBus::Rate rate, osaCANBus::Loopback loopback=osaCANBus::LOOPBACK_OFF)
Main constructor.
Definition: mtsRTSocketCAN.h:45
MTS interfaces for a sawCANBus device.
Definition: mtsCANBus.h:39
Loopback
Definition: osaCANBus.h:32
Definition: osaCANBus.h:32
A Real Time Socket CAN device.
Definition: osaRTSocketCAN.h:38
Rate
The different CAN rates.
Definition: osaCANBus.h:20
A RTSocketCAN device wrapped with MTS interfaces.
Definition: mtsRTSocketCAN.h:31