SsiGetSensorType


Function

Get the currently set sensor type.

Format

Ret = SsiGetSensorType ( Id , ChannelNo , &SensorType )

Parameters

Id [ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from SsiInit.

ChannelNo [ C, C++: short ] [ Python: ctypes.c_short ]
CPSN-SSI-4C is common setting for all channels. Please specify 0.

SensorType [ C, C++: short *] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of the variable that stores the sensor type.

Return Value

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

Definition

Value

[Dec]

Description

SSI_ERR_SUCCESS

0

Succeeded

SSI_ERR_DLL_INVALID_ID

10001

Invalid device id.

SSI_ERR_DLL_CALL_DRIVER

10002

Can not call driver (ioctl failed).

SSI_ERR_DLL_BUFF_ADDRESS

10100

Invalid data buffer address.

SSI_ERR_SYS_CH_NO

20100

Channel No. is outside the setting range.

The others (See also: Details of Error Code)

Remarks

Get the currently set sensor type.

Example

Get the sensor type set on the device.

C, C++

long Ret;
short SensorType;
Ret = SsiGetSensorType(Id, 0 , &SensorType );
 

Python

Ret = ctypes.c_long()
SensorType = ctypes.c_short()
Ret.value = cssi.SsiGetSensorType(Id, 0 , ctypes.byref(SensorType))
 

See Also

SsiSetSensorType