NetOceanDirectLighthouse  3.1.1
OceanDirect Lighthouse .NET API
NetLighthouseGpio.h
1 #pragma once
2 #include "stdafx.h"
3 #include "ManagedObject.h"
4 
5 using oceandirect::api::LHGpioAPI;
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<LHGpioAPI, MemoryCleanup::noDeletion> GpioBase;
12 
13  public ref class NetLighthouseGpio :
14  public GpioBase {
15  protected:
17  public:
18  virtual ~NetLighthouseGpio() {};
19  static NetLighthouseGpio^ getInstance();
20 
27  virtual unsigned char getNumberOfGPIO(unsigned int deviceID, int %errorCode);
28 
42  virtual void setOutputState(unsigned int deviceID, int %errorCode, unsigned int direction, unsigned int bitmask);
43 
53  virtual unsigned int getOutputState(unsigned int deviceID, int %errorCode);
54 
65  virtual void setValue(unsigned int deviceID, int %errorCode, unsigned int value, unsigned int bitmask);
66 
74  virtual unsigned int getValue(unsigned int deviceID, int %errorCode);
75  protected:
76  static NetLighthouseGpio^ gpio;
77 
78  };
79 }
Definition: NetLighthouseGpio.h:14
virtual void setOutputState(unsigned int deviceID, int %errorCode, unsigned int direction, unsigned int bitmask)
Definition: NetLighthouseGpio.cpp:23
virtual unsigned char getNumberOfGPIO(unsigned int deviceID, int %errorCode)
Definition: NetLighthouseGpio.cpp:18
virtual unsigned int getOutputState(unsigned int deviceID, int %errorCode)
Definition: NetLighthouseGpio.cpp:30
virtual unsigned int getValue(unsigned int deviceID, int %errorCode)
Definition: NetLighthouseGpio.cpp:40
virtual void setValue(unsigned int deviceID, int %errorCode, unsigned int value, unsigned int bitmask)
Definition: NetLighthouseGpio.cpp:35