NetOceanDirectLighthouse  3.1.1
OceanDirect Lighthouse .NET API
NetLighthouseSerialPort.h
1 #pragma once
2 #include "stdafx.h"
3 #include "ManagedObject.h"
4 
5 using oceandirect::api::LHSerialPortAPI;
6 using NetOceanDirect::ManagedObject;
7 using NetOceanDirect::MemoryCleanup;
8 
9 namespace 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:
18  virtual ~NetLighthouseSerialPort() {};
19  static NetLighthouseSerialPort^ getInstance();
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:
74  static NetLighthouseSerialPort^ serial;
75 
76  };
77 }
Definition: NetLighthouseSerialPort.h:14
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