OceanDirect  2.4.0
OceanDirect C++/C API
oceandirect::api::LedActivityAPI Class Reference

Public Member Functions

bool getLedActivityEnable (long deviceID, int *errorCode)
 
void setLedActivityEnable (long deviceID, int *errorCode, bool enable)
 

Static Public Member Functions

static LedActivityAPIgetInstance ()
 
static void shutdown ()
 

Member Function Documentation

◆ getLedActivityEnable()

bool oceandirect::api::LedActivityAPI::getLedActivityEnable ( long  deviceID,
int *  errorCode 
)

Get the LED state.

Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
errorCodea code indicating the result of the operation: ERROR_SUCCESS on success; ERROR_NO_DEVICE if the device does not exist; ERROR_FEATURE_NOT_FOUND the feature is not enabled on the specified device; ERROR_TRANSFER_ERROR the device protocol for the feature could not be found.
Returns
true if LED is enabled, false otherwise.

◆ setLedActivityEnable()

void oceandirect::api::LedActivityAPI::setLedActivityEnable ( long  deviceID,
int *  errorCode,
bool  enable 
)

Set the LED state.

Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
errorCodea code indicating the result of the operation: ERROR_SUCCESS on success; ERROR_NO_DEVICE if the device does not exist; ERROR_FEATURE_NOT_FOUND the feature is not enabled on the specified device; ERROR_TRANSFER_ERROR the device protocol for the feature could not be found.
enabletrue to enabble the LED, false to disable the LED.

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