LibTiePie  0.9.0
Library for interfacing TiePie engineering instruments
Notifications

Description

Notifications that indicate an object change.

LibTiePie can notify the calling application that an object changed in different ways:

Functions

void ObjSetEventCallback (LibTiePieHandle_t hHandle, TpCallbackEvent_t pCallback, void *pData)
 Set a callback function which is called when an event occurs. More...
 
bool8_t ObjGetEvent (LibTiePieHandle_t hHandle, uint32_t *pEvent, uint32_t *pValue)
 Get an event form the event queue. More...
 
void ObjSetEventEvent (LibTiePieHandle_t hHandle, int fdEvent)
 Set an event file descriptor which is set when an event occurs. More...
 
void ObjSetEventEvent (LibTiePieHandle_t hHandle, HANDLE hEvent)
 Set an event object handle which is set when an event occurs. More...
 
void ObjSetEventWindowHandle (LibTiePieHandle_t hHandle, HWND hWnd)
 Set a window handle to which a WM_LIBTIEPIE_EVENT message is sent when an event occurs. More...
 

Function Documentation

void ObjSetEventCallback ( LibTiePieHandle_t  hHandle,
TpCallbackEvent_t  pCallback,
void *  pData 
)

Set a callback function which is called when an event occurs.

Parameters
[in]hHandleA handle identifying the object.
[in]pCallbackA pointer to the callback function. Use NULL to disable.
[in]pDataOptional user data.
Since
0.6
bool8_t ObjGetEvent ( LibTiePieHandle_t  hHandle,
uint32_t *  pEvent,
uint32_t *  pValue 
)

Get an event form the event queue.

Parameters
[in]hHandleA handle identifying the object.
[out]pEventPointer to store the event.
[out]pValuePointer to store the event value or NULL.
Returns
BOOL8_TRUE if an event is available, BOOL8_FALSE otherwise.
See also
ObjSetEventEvent
Since
0.6
void ObjSetEventEvent ( LibTiePieHandle_t  hHandle,
int  fdEvent 
)

Set an event file descriptor which is set when an event occurs.

Parameters
[in]hHandleA handle identifying the object.
[in]fdEventAn event file descriptor. Use <0 to disable.
See also
ObjGetEvent
Since
0.6
void ObjSetEventEvent ( LibTiePieHandle_t  hHandle,
HANDLE  hEvent 
)

Set an event object handle which is set when an event occurs.

Parameters
[in]hHandleA handle identifying the object.
[in]hEventA handle to the event object. Use NULL to disable.
See also
ObjGetEvent
Since
0.6
void ObjSetEventWindowHandle ( LibTiePieHandle_t  hHandle,
HWND  hWnd 
)

Set a window handle to which a WM_LIBTIEPIE_EVENT message is sent when an event occurs.

The parameters of the message contain the following:

Parameters
[in]hHandleA handle identifying the object.
[in]hWndA handle to the window whose window procedure is to receive the message. Use NULL to disable.
Since
0.6