DCSModulesAPI  1.0.0
DCS sub project containing all the control modules as libraries.
DCS_ModuleEngineControl.h
Go to the documentation of this file.
1 #ifndef _DCS_ENGINECONTROL_H
2 #define _DCS_ENGINECONTROL_H
3 
4 #pragma once
5 #include "../../config/exports.h"
6 #include "../../DCS_Utils/include/DCS_ModuleUtils.h"
7 
19 namespace DCS
20 {
24  namespace Control
25  {
31  enum class UnitTarget
32  {
33  ESP301,
34  PMC8742
35  };
36 
46  DCS_API void StartServices(const char* esp301_com = "COM3", const char* pmc8742_usb = "104D-4000");
47 
55  DCS_API void StopServices();
56 
74 
96  }
97 }
98 
99 #endif _DCS_ENGINECONTROL_H
The PMC8742 tilt stage controller target.
#define DCS_API
Defines the export interface acessible via the dll-interface. Only important for SHARED LIB Compile M...
Definition: exports.h:116
UnitTarget
Enumerates the diferent devices acessible via COM/USB ports.
Definition: DCS_ModuleEngineControl.h:31
DCS_API DCS::Utils::BasicString IssueGenericCommandResponse(UnitTarget target, DCS::Utils::BasicString full_command)
Issue a generic command to the specified target, waiting for a response.
Definition: external_cmds.cpp:9
A very simple string buffer to hold char values. Used for string information manipulations via tcp/ip...
Definition: DCS_ModuleUtils.h:121
The ESP301 rotation stage controller target.
#define DCS_REGISTER_CALL(...)
Append this definition before function declarations to register it as a tcp connection callable...
Definition: exports.h:74
DCS_API void IssueGenericCommand(UnitTarget target, DCS::Utils::BasicString full_command)
Issue a generic command to the specified target.
Definition: external_cmds.cpp:4
Definition: registry.h:70
DCS_API void StartServices(const char *esp301_com="COM3", const char *pmc8742_usb="104D-4000")
Starts the COM and USB port services.
Definition: control_service.cpp:17
DCS_API void StopServices()
Stops the COM and USB port services.
Definition: control_service.cpp:90