LibTiePie  0.4.2
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Groups Pages
Data ready

Functions

void ScpSetCallbackDataReady (TpDeviceHandle_t hDevice, TpCallback_t pCallback, void *pData)
 Set callback function which is called when the instrument has data ready.
 
void ScpSetEventDataReady (TpDeviceHandle_t hDevice, int fdEvent)
 
void ScpSetEventDataReady (TpDeviceHandle_t hDevice, HANDLE hEvent)
 
void ScpSetMessageDataReady (TpDeviceHandle_t hDevice, HWND hWnd, WPARAM wParam, LPARAM lParam)
 Set window handle to which a WM_LIBTIEPIE_SCP_DATAREADY message is sent when the instrument has data ready.
 

Detailed Description

Function Documentation

void ScpSetCallbackDataReady ( TpDeviceHandle_t  hDevice,
TpCallback_t  pCallback,
void *  pData 
)

Set callback function which is called when the instrument has data ready.

Parameters
hDeviceA device handle.
pCallbackPointer to callback function.
pDataOptional user data.
void ScpSetEventDataReady ( TpDeviceHandle_t  hDevice,
int  fdEvent 
)
Parameters
hDeviceA Opening a device "device handle".
fdEventEvent file descriptor.
Note
This function is only supported on GNU/Linux.
void ScpSetEventDataReady ( TpDeviceHandle_t  hDevice,
HANDLE  hEvent 
)
Parameters
hDeviceA Opening a device "device handle".
hEventA handle to the event object.
Note
This function is only supported on Windows.
void ScpSetMessageDataReady ( TpDeviceHandle_t  hDevice,
HWND  hWnd,
WPARAM  wParam,
LPARAM  lParam 
)

Set window handle to which a WM_LIBTIEPIE_SCP_DATAREADY message is sent when the instrument has data ready.

Parameters
hDeviceA Opening a device "device handle".
hWndA handle to the window whose window procedure is to receive the message.
wParamOptional user value for the messages wParam.
lParamOptional user value for the messages lParam.
Note
This function is only supported on Windows.