LibTiePie  0.9.8
Library for interfacing TiePie engineering instruments
Device can open changed

Description

Functions to set notifications that are triggered when a device is removed from the list.

Functions

void LstSetCallbackDeviceCanOpenChanged (TpCallbackDeviceList_t pCallback, void *pData)
 Set a callback function which is called when the device can open property changes. More...
 
void LstSetEventDeviceCanOpenChanged (int fdEvent)
 Set an event file descriptor which is set when the device can open property changes. More...
 
void LstSetEventDeviceCanOpenChanged (HANDLE hEvent)
 Set an event object handle which is set when the device can open property changes. More...
 
void LstSetMessageDeviceCanOpenChanged (HWND hWnd)
 Set a window handle to which a WM_LIBTIEPIE_LST_DEVICEREMOVED message is sent when the device can open property changes. More...
 

Function Documentation

void LstSetCallbackDeviceCanOpenChanged ( TpCallbackDeviceList_t  pCallback,
void *  pData 
)

Set a callback function which is called when the device can open property changes.

Parameters
[in]pCallbackA pointer to the callback function. Use NULL to disable.
[in]pDataOptional user data.
Status values
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
LIBTIEPIESTATUS_SUCCESS
Since
0.6
void LstSetEventDeviceCanOpenChanged ( int  fdEvent)

Set an event file descriptor which is set when the device can open property changes.

Parameters
[in]fdEventan event file descriptor. Use <0 to disable.
Note
This function is only available on GNU/Linux.
Status values
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
LIBTIEPIESTATUS_SUCCESS
Since
0.6
void LstSetEventDeviceCanOpenChanged ( HANDLE  hEvent)

Set an event object handle which is set when the device can open property changes.

Parameters
[in]hEventA handle to the event object. Use NULL to disable.
Note
This function is only available on Windows.
Status values
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
LIBTIEPIESTATUS_SUCCESS
Since
0.6
void LstSetMessageDeviceCanOpenChanged ( HWND  hWnd)

Set a window handle to which a WM_LIBTIEPIE_LST_DEVICEREMOVED message is sent when the device can open property changes.

The parameters of the message contain the following:

  • wParam contains the device type.
  • lParam contains the serial number of the changed device.
Parameters
[in]hWndA handle to the window whose window procedure is to receive the message. Use NULL to disable.
Note
This function is only available on Windows.
Status values
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
LIBTIEPIESTATUS_SUCCESS
Since
0.6