NetOceanDirect  2.4.0
OceanDirect .NET API
Public Member Functions | Static Public Member Functions | List of all members
NetOceanDirect::Lamp Class Reference

Inherits NetOceanDirect::ManagedObject< LampAPI >.

Public Member Functions

bool isEnable (long deviceID, int% errorCode)
 
void setEnable (long deviceID, int% errorCode, bool enable)
 
- Public Member Functions inherited from NetOceanDirect::ManagedObject< LampAPI >
 ManagedObject (LampAPI *instance)
 
LampAPI * GetInstance ()
 

Static Public Member Functions

static Lamp getInstance ()
 

Additional Inherited Members

- Protected Attributes inherited from NetOceanDirect::ManagedObject< LampAPI >
LampAPI * m_Instance
 

Member Function Documentation

◆ setEnable()

void Lamp::setEnable ( long  deviceID,
int%  errorCode,
bool  enable 
)

Enables/disables the specified strobe lamp connected to the given device.

Parameters
[in]deviceIDthe device ID for the device to be configured (from OceanDirect::findDevices())
[out]errorCodeset to 0 if successful, an OceanDirect error code (nonzero) otherwise ERROR_NO_DEVICE if deviceID is not a valid and open deviceID ERROR_FEATURE_NOT_FOUND if device does not support this feature ERROR_TRANSFER_ERROR if data transfer to/from device fails
[in]enableif true, lamp is to be enabled - will be disabled otherwise
See also
isEnabled()

The documentation for this class was generated from the following files: