
APPENDIX
Protocol Data Mode
122
2.10
•
19.01.2007
5.1.11 API of the dectprot.dll
The dectprot.dll is a library containing functions for using the HW 86012/22 module. In the
following the API of this .dll will be explained.
5.1.11.1 DECT_CALLBACK_FUNC_T
Typedef
typedef int(*DECT_CALLBACK_FUNC_T)
(
int nChannel,
DECT_EVENT_T event,
void *pArg1,
void *pArg2 );
Description
Call-back-function for notification of events; for registering use
DectRegisterCallback().
Note
Parameters pArg1 and pArg2 depend from the event-type of the addicted data shown in the
table below.
event
parg1
parg2
event description
dectEvNone
NULL
NULL
for internal administration
dectEvDataInd
int = number of
bytes
NULL
data available for reading
dectEvConnStatusInd
int
= 1 establishment
= 0 termination
structure
DECT_IPUI_T
connection establishment
/
- termination
dectEvLineStatusInd
int = line-status-
register
NULL
line-status-register
(current only DSR)
dectEvLapStateInd
structure
DECT_IPUI_T
LAP-state
datablock
LAP-state of an aborted
connection. Pointer to
LAP-state valid only
during callback!
dectEvLapStateReq
structure
DECT_IPUI_T
int = call-number connection-
reestablishment:
requirement of the LAP-
state (confirm by using
DectLapStateCfm())
dectEvLocationInd
int = modul-
number
structure
DECT_IPUI_T
location-registration:
allow the device to
synchronise (reply by
using DectLocationRes())