Any Operation

RequestOperation

Overview

An API that allows you to send various requests to the camera. The number of requests will increase in the future.

Definition

CrError RequestOperation(CrDeviceHandle deviceHandle, CrOperationCode code, CrInt32u param1 = 0, CrInt32u param2 = 0, CrInt32u param3 = 0, CrInt32u param4 = 0, CrInt32u param5 = 0, void* pData = nullptr, CrInt32u dataSize = 0);

Input parameters

Type

Explanation

CrDeviceHandle

deviceHandle

CrOperationCode

code
Operation request code.
Defined in CrOperationData.h as CrOperationCode

CrInt32u

param1

CrInt32u

param2

CrInt32u

param3

CrInt32u

param4

CrInt32u

param5

void*

pData

CrInt32u

dataSize
If pData is used, specify the size of the data in bytes.

param1 to param5 and pData are parameters used for each operation code. Please refer to each CrOperationCode.

Output parameters

None in particular

Return value

Type

Explanation

CrError

CrError_None on Success
CrError_Init if the SDK is uninitialized
CrError_Generic_InvalidHandle If the deviceHandle is an invalid handle
Other than errors above, see Status code & Error
Related API
Special note (details)

None in particular

ReleaseOperationResultObject

Overview

If the result of “Getting data” with RequestOperation is successful, the data pointer will be notified via callback. This API releases the memory area for the data notified by the callback.

Definition

CrError ReleaseOperationResultObject(CrDeviceHandle deviceHandle, CrOperationResultData*& resultData);

Input parameters

Type

Explanation

CrDeviceHandle

deviceHandle

CrOperationResultData*&

resultData
The info pointer pointing to the result data to be released.
Output parameters

None

Return value

Type

Explanation

CrError

CrError_None on released successfully
CrError_Init if the SDK is uninitialized
CrError_Generic_InvalidHandle If the deviceHandle is an invalid handle
Other than errors above, see Status code & Error
Related API
Special note (details)

None in particular