LibTiePie  0.4.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages
Data ready

Description

Functions

void ScpSetCallbackDataReady (TpDeviceHandle_t hDevice, TpCallback_t pCallback, void *pData)
 Set callback function which is called when the instrument has data ready. More...
 
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. More...
 

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.
Since
0.4.0
void ScpSetEventDataReady ( TpDeviceHandle_t  hDevice,
int  fdEvent 
)
Parameters
hDeviceA device handle.
fdEventEvent file descriptor.
Note
This function is only available on GNU/Linux.
Since
0.4.0
void ScpSetEventDataReady ( TpDeviceHandle_t  hDevice,
HANDLE  hEvent 
)
Parameters
hDeviceA device handle.
hEventA handle to the event object.
Note
This function is only available on Windows.
Since
0.4.0
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 device handle.
hWndA handle to the window whose window procedure is to receive the message. Use NULL to disable.
wParamOptional user value for the messages wParam.
lParamOptional user value for the messages lParam.
Note
This function is only available on Windows.
Since
0.4.0