![AVAL APX-3302 Скачать руководство пользователя страница 97](http://html.mh-extra.com/html/aval/apx-3302/apx-3302_user-manual_3024178097.webp)
APX-3302 User's Manual (OM110000019A)
-90 -
6.13.2 Callback function usage
This section describes standby method of interrupt by callback function.
Registration function has 2 kinds; AcapRegistCallback and AcapRegistCallbackEx.
■
Prototype of Callback Function
The callback function registered into AcapRegistCallback must have following prototype.
The callback function registered into AcapRegistCallbackEx must have following prototype.
void
CALLBACK CallbackFunc (
int
nChannel, DWORD dwEvent,
int
nFrameNo,
int
nMemoryNo);
nChannel : The channel which detected interruption
dwEvent : Detected interrupt(ACL_INT_FRAMEEND and more)
nFrameNo : Current “frame number finished input”(Last result during stop capturing )
nMemoryNo : Current “memory number(1-) which finished input lastly”(Last result at stop capturing)
nMemoryNo : the present "the memory number which the input finally completed (1-)" (result of having taken in
at the end at the time of a taking-in stop)
void
CALLBACK CallbackExFunc (
int
nChannel, DWORD dwEvent,
int
nFrameNo,
int
nMemoryNo,
void
* pParam);
nChannel : The channel which detected interruption
dwEvent : Detected interrupt(ACL_INT_FRAMEEND and more)
nFrameNo : Current “frame number finished input”(Last result during stop capturing)
nMemoryNo : Current “memory number gets from last input(1-)”(Last result during stop capturing)
pParam : Address which is given to 5
th
argument by AcapRegistCallbackEx
*Note:pParam becomes pointer of user buffer. It becomes cause of violation of segmentation if memory
which is given at registration is released.
You can use either AcapRegistCallback or AcapRegistCallbackEx.
You cannot use both at same time.
Содержание APX-3302
Страница 1: ...APX 3302 User s Manual ...