SsiResetDevice


Function

Reset a device.

Format

Ret = SsiResetDevice ( Id )

Parameters

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

Return Value

Ret [ 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_SYS_MEMORY

20000

Can not allocate memory.

The others (See also: Details of Error Code)

Initial Value

None

説明

Initialize device's software work.

Example

C
 

long Ret;
Ret = SsiResetDevice(Id);
 

Python

Ret = ctypes.c_long()
Ret.value = cssi.SsiResetDevice(Id)
 

See Also

None