NetOceanDirect  3.1.1
OceanDirect .NET API
DeviceInformation.h
1 #pragma once
2 #include "ManagedObject.h"
3 #include "api/advanced/DeviceInformationAPI.h"
4 using oceandirect::api::DeviceInformationAPI;
5 
6 namespace NetOceanDirect {
7 
8  public ref class DeviceInformation : public ManagedObject<DeviceInformationAPI>
9  {
10  protected:
12  public:
13  DeviceInformation(DeviceInformationAPI* instance);
14 
15  virtual ~DeviceInformation() {};
16  static DeviceInformation^ getInstance();
17 
19  //* Enables/disables the specified strobe lamp connected to the given device.
20  //*
21  //* @param[in] deviceID the device ID for the device to be configured (from OceanDirect::findDevices())
22  //* @param[out] errorCode set to 0 if successful, an OceanDirect error code (nonzero) otherwise
23  //* ERROR_NO_DEVICE if deviceID is not a valid and open deviceID
24  //* ERROR_FEATURE_NOT_FOUND if device does not support this feature
25  //* ERROR_TRANSFER_ERROR if data transfer to/from device fails
26  //* @param[in] enable if true, lamp is to be enabled - will be disabled otherwise
27  //*
28  //* @see isEnabled()
29  //*/
30 
31  void resetDevice(long deviceID, int% errorCode);
32 
33  std::uint16_t getOriginalUsbVID(long deviceID, int% errorCode);
34  std::uint16_t getOriginalUsbPID(long deviceID, int% errorCode);
35  std::uint16_t getUsbVID(long deviceID, int% errorCode);
36  std::uint16_t getUsbPID(long deviceID, int% errorCode);
37 
38  String^ getOriginalManufacturerString(long deviceID, int% errorCode);
39  String^ getOriginalModelString(long deviceID, int% errorCode);
40  String^ getManufacturerString(long deviceID, int% errorCode);
41  void setManufacturerString(long deviceID, int% errorCode, String^ buffer);
42  String^ getModelString(long deviceID, int% errorCode);
43  void setModelString(long deviceID, int% errorCode, String^ buffer);
44 
45  protected:
46  static DeviceInformation^ deviceInfo;
47 
48  };
49 }
Definition: DeviceInformation.h:9
void resetDevice(long deviceID, int% errorCode)
‍**
Definition: DeviceInformation.cpp:20
Definition: ManagedObject.h:16