-
7.7. Set module’s communication type
Function Description:
Set FP module’s communication port type(1 for RS232, 2 for RS485).
Function call:
WORD BioID_SetType(LPCOMMDATA CommData, LPCONFIG lpConfig);
Parameters(Input):
CommData:
LPCOMMDATA
: refer to BioID_Create()
lpConfig:
LPCONFIG
: Below is definition for LPCONFIG
typedef struct _tagCONFIG {
WORD
Port,
// 1 => Com1, 2 => Com2
Type,
// 1 => RS232, 2 => RS485
Baud;
// 1 => CBR_9600
// 2 => CBR_19200
// 3 => CBR_38400
// 4 => CBR_57600
// 5 => CBR_115200
}
Return code:
WORD: 130
(=CmdErrTime) Timeout
7
(=CmdNO)
Error occurred during receiving data
6 (=CmdYES)
Success.
7.8. Get FP module’s baudrate
Function Description:
Get FP module’s baudrate and save into lpConfig->Baud.
Function call:
WORD BioID_GetBaud(LPCOMMDATA CommData, LPCONFIG lpConfig);
Parameters(Input):
CommData:
LPCOMMDATA
: refer to BioID_Create()
Parameters(Output):
lpConfig:
LPCONFIG
: refer to BioID_GetType()
Return code:
WORD: 130
(=CmdErrTime) Timeout
7
(=CmdNO)
Error occurred during receiving data
6 (=CmdYES)
Success.
7.9. Set FP module’s baudrate
Function Description:
Set FP module’s baudrate.
Function call:
WORD BioID_SetBaud(LPCOMMDATA CommData, LPCONFIG lpConfig);
Parameters(Input):
CommData:
LPCOMMDATA
: refer to BioID_Create()
lpConfig:
LPCONFIG
: refer to BioID_GetType()
Return code:
WORD: 130
(=CmdErrTime) Timeout
7
(=CmdNO)
Error occurred during receiving data
6 (=CmdYES)
Success.
Содержание MR650
Страница 1: ...MR650 Programming Manual V 1 12 1 16 2008 ...
Страница 7: ... 7 13 FUNCTION KEY SETTING ON REGISTRY 65 14 UPDATE NOTES 66 ...
Страница 16: ... it is for internal use send messages ...
Страница 33: ... Be aware to release handles when program ends ...