-
2.23. Send scanner command to decoding chip
Function Description:
Send scanner command to decoder chip. This command will send a serial of bytes to decoder chip
as following: (Esc and BCC will be calculated and added automatically)
Esc, high-length, low-length, command-ID, operation, set, BCC
Please refer to complete command reference on section 4
BOOL HAM_SendCommand(BYTE highlen, BYTE lowlen, BYTE cmdID, BYTE op, BYTE set);
Parameter: (input)
highlen:
BYTE
: high byte of command length
lowlen:
BYTE
: low byte of command length
cmdID:
BYTE
:
command
ID
op:
BYTE
: operation mode for this command
set:
BYTE
: operand for this command
Return:
TRUE = Indicates the command has been successfully sent to queue to output.
2.24. Only send single command decoding chip
Function Description:
Send command to decoder chip. This is a variation of command HAM_SendCommand. It sends
following command to Hamster: (note, only two bytes without BCC)
Esc, 0x80+cmd
Function call:
BOOL HAM_SendCommand1(BYTE cmd);
Parameter: (input)
cmd:
BYTE
:
command
Return:
TRUE = indicates the command has been successfully sent to queue to output.
2.25. Send command to decoding chip
Function Description:
Send command to decoder chip. This is a variation of command HAM_SendCommand. It will read
a number of parameters and packet them as in following format and send it to decoder chip.
Esc, parameter1, parameter2,
…
, BCC
The total number of parameters is specified by first parameter num.
Function call:
BOOL HAM_SendCommand2(BYTE num, BYTE parameter1,
…
);
Parameter: (input)
num:
BYTE
: number of total parameters
parameterx: BYTE
:
Parameter
Return:
TRUE = indicates the command has been successfully sent to queue to output.
Summary of Contents for PA600
Page 1: ...PA600 Programming Manual V 1 6 1 11 2008...
Page 9: ...9...