trikRuntime
mspBusAutoDetector.h
Go to the documentation of this file.
1 /* Copyright 2015 CyberTech Labs Ltd.
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License. */
14 
15 #pragma once
16 
18 
19 namespace trikHal {
20 class HardwareAbstractionInterface;
21 }
22 
23 namespace trikKernel {
24 class Configurer;
25 }
26 
27 namespace trikControl {
28 
31 {
32 public:
36  static MspCommunicatorInterface *createCommunicator(const trikKernel::Configurer &configurer
37  , trikHal::HardwareAbstractionInterface &hardwareAbstraction);
38 };
39 
40 }
Definition: analogSensor.h:23
Service to automatically select USB or I2C MSP communicator. It tries to use USB when possible...
Definition: mspBusAutoDetector.h:30
Generic configuration helper, parses configuration XML files and presents configuration as a set of a...
Definition: configurer.h:28
Abstract interface for communication with MSP, may be implemented by I2C or USB buses, depending on current MSP configuration.
Definition: mspCommunicatorInterface.h:26
Definition: trikCommunicator.h:27
Definition: brickFactory.h:21
Hardware abstraction, provides devices that are used to communicate with robot hardware or emulate it...
Definition: hardwareAbstractionInterface.h:29