
APPENDIX
Protocol Data Mode
2.10
•
19.01.2007
123
5.1.11.2 DectInit
Function
int DectInit(
int nNumPorts,
char *apszPortNames[] );
Description
Channel-layers initialisation and opening of the serial-devices of the DECT-
modules.
nNumPorts
Number of the delivered COM-port-names.
Parameter
apszPortNames
Pointer to array of char-pointers with serial-device-
names (e.g. “COM1”).
Zero-pointers in the array will be ignored.
0
Ok
Return
< 0
Error
Note
5.1.11.3 DectDestroy
Function
int DectDestroy( void );
Description
Channel-layers de-initialisation and opening the serial-devices of the DECT-
modules.
Parameter
none
0
Ok
Return
< 0
Error
Note
5.1.11.4 DectRegisterCallback
Function
int DectRegisterCallback(
DECT_CALLBACK_FUNC_T pfCallbackFunc );
Description
Registration of a call-back function. Status changes are signalled by this
function.
Parameter
pfCallbackFunc
Pointer to the function from the type
DECT_CALLBACK_FUNC_T.
The hand over of NULL will result in deactivating of
the call-back.
0
Ok
Return
< 0
Error
Note
•
The possible events result from the enum DECT_EVENT_T.
5.1.11.5 DectOpen
Function
int DectOpen( int nChannel );
Description
Open a special channel for activating data-receive.
Parameter
nChannel
Channel-number
0
Ok
Return
< 0
Error
Note
A closed channel will ignore received data.