NetOceanDirectLighthouse 3.1.3
OceanDirect Lighthouse .NET API
NetLighthouseGpio.h
Go to the documentation of this file.
1#pragma once
2#include "stdafx.h"
3#include "ManagedObject.h"
4
5using oceandirect::api::LHGpioAPI;
6using NetOceanDirect::ManagedObject;
7using NetOceanDirect::MemoryCleanup;
8
9namespace 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() {};
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:
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
static NetLighthouseGpio gpio
Definition NetLighthouseGpio.h:76
virtual unsigned int getValue(unsigned int deviceID, int %errorCode)
Definition NetLighthouseGpio.cpp:40
NetLighthouseGpio()
Definition NetLighthouseGpio.cpp:7
static NetLighthouseGpio getInstance()
Definition NetLighthouseGpio.cpp:11
virtual ~NetLighthouseGpio()
Definition NetLighthouseGpio.h:18
virtual void setValue(unsigned int deviceID, int %errorCode, unsigned int value, unsigned int bitmask)
Definition NetLighthouseGpio.cpp:35
Definition NetLighthouse.h:21
ManagedObject< LHGpioAPI, MemoryCleanup::noDeletion > GpioBase
Definition NetLighthouseGpio.h:11