AioResetDevice


Function

Resets device and initializes driver.

Format

Ret = AioResetDevice ( Id )

Parameters

Id [ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short ]
Specifies the device ID retrieved from AioInit.

Return value

Ret [ VB.NET : Integer ] [ C, C++ : long ] [ C# : int ] [ Python : ctypes.c_long ]

Return values

Content

0

Normality completion

10001

Invalid Id was specified
Use the Id retrieved from AioInit to specify the Id in this function.

10002

AIO driver can't be called
At first, perform AioInit function.

20003

Can not use because another process is using the device
When another process is using the device, all functions except for those that support multi-process can not be performed.

Remarks

Outputs reset command to device, all of the parameters in device return to initial values.
Even if the device is in operation, the function can be performed and the operation of device stops.

Example

Resets device and initializes driver.

VB.NET

Dim Ret As Integer
Ret = AioResetDevice ( Id )
 

C, C++

long Ret;
Ret = AioResetDevice ( Id );
 

C#
 

int Ret;
Ret = aio.ResetDevice ( Id );
 

Python

Ret = ctypes.c_long()
Ret.value = caio.AioResetDevice ( Id )
 

See also

Driver ID