NetOceanDirectLighthouse 3.1.3
OceanDirect Lighthouse .NET API
NetLighthouseSerialPort.h
Go to the documentation of this file.
1#pragma once
2#include "stdafx.h"
3#include "ManagedObject.h"
4
5using oceandirect::api::LHSerialPortAPI;
6using NetOceanDirect::ManagedObject;
7using NetOceanDirect::MemoryCleanup;
8
9namespace NetLighthouse {
10 // force the instantiation here...otherwise we get build errors
11 typedef ManagedObject<LHSerialPortAPI, MemoryCleanup::noDeletion> SerialPortBase;
12
13 public ref class NetLighthouseSerialPort :
14 public SerialPortBase {
15 protected:
17 public:
20
38 virtual void setBaudRate(unsigned int deviceID, int% errorCode, net_lh_baud_rate_t baudRate);
39
46 virtual net_lh_baud_rate_t getBaudRate(unsigned int deviceID, int %errorCode);
47
53 virtual void saveSettingsToFlash(unsigned int deviceID, int %errorCode);
54
62 virtual void setSerialCommThresholdMode(unsigned int deviceID, int% errorCode, unsigned char thresholdMode);
63
71 virtual unsigned char getSerialCommThresholdMode(unsigned int deviceID, int% errorCode);
72
73 protected:
75
76 };
77}
net_lh_baud_rate_t
Definition NetLighthouse.h:8
Definition NetLighthouseSerialPort.h:14
NetLighthouseSerialPort()
Definition NetLighthouseSerialPort.cpp:7
virtual unsigned char getSerialCommThresholdMode(unsigned int deviceID, int% errorCode)
Definition NetLighthouseSerialPort.cpp:40
virtual void saveSettingsToFlash(unsigned int deviceID, int %errorCode)
Definition NetLighthouseSerialPort.cpp:29
virtual void setBaudRate(unsigned int deviceID, int% errorCode, net_lh_baud_rate_t baudRate)
Definition NetLighthouseSerialPort.cpp:23
virtual net_lh_baud_rate_t getBaudRate(unsigned int deviceID, int %errorCode)
Definition NetLighthouseSerialPort.cpp:18
virtual void setSerialCommThresholdMode(unsigned int deviceID, int% errorCode, unsigned char thresholdMode)
Definition NetLighthouseSerialPort.cpp:34
virtual ~NetLighthouseSerialPort()
Definition NetLighthouseSerialPort.h:18
static NetLighthouseSerialPort serial
Definition NetLighthouseSerialPort.h:74
static NetLighthouseSerialPort getInstance()
Definition NetLighthouseSerialPort.cpp:11
Definition NetLighthouse.h:21
ManagedObject< LHSerialPortAPI, MemoryCleanup::noDeletion > SerialPortBase
Definition NetLighthouseSerialPort.h:11