Chapter 5 - Smart-Frame Protocol II
CARROLL TOUCH
5-8
Touch System Programmer’s Guide
The bytes within the command packet are indexed beginning at 0 for
the SFP-II command number, and ending at (command packet byte
count - 1) for the last parameter byte. The length of the command
packet is given by the packet byte count from the validation layer.
Example
A simple example of an SFP-II command is the GetTouchState (01)
command, which has one byte of data and no optional command
parameters, is:
66 01 01 FF
A more complex example of a SFP-II command is the imaginary Fubar
command, which expects a one byte parameter (bip) and a two byte
parameter (flap):
66 04 <Fubar> <Bip> <FlapHi> <FlapLo> FF
If the command opcode for Fubar is 27H, and the values of the Bip and
Flap parameters are 18H and 8923H, respectively, the command packet
is as follows:
66 04 27 18 89 23 FF
Reports
An SFP-II report has the format:
header packetbytecount commanderrorstatus
reportnumber optionalreportparameters trailer
header
=
Defined to be EOH.
packetbytecount
=
Length of the report the command error status
+ the report parameters (if any) in bytes. For example, a
report with two bytes of parameters would have a byte
count of 4 (one byte for the command number, one byte
for the command error status, and two bytes for the
parameters).
commanderrorstatus
=
A one byte parameter that indicates whether the SFP-II
command number and/or the SFP-II command
Содержание TouchSystems CarrollTouch Prog
Страница 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Страница 11: ...Table of Contents CARROLL TOUCH viii ...
Страница 13: ...Table of Contents CARROLL TOUCH x ...
Страница 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Страница 25: ...Chapter 1 Introduction to Infrared Touch Systems CARROLL TOUCH 1 8 Touch System Programmer s Guide ...
Страница 29: ...Chapter 2 Introduction to Guided Wave Touch Systems CARROLL TOUCH 2 4 Touch System Programmer s Guide ...
Страница 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Страница 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Страница 87: ...Chapter 6 Touch Application Program Interface TAPI CARROLL TOUCH 6 10 Touch System Programmer s Guide ...
Страница 149: ...Appendix A Smart Frame Protocol Command Reference CARROLL TOUCH A 40 Touch System Programmer s Guide ...
Страница 179: ...Appendix B Smart Frame Protocol II Function Reference CARROLL TOUCH B 30 Touch System Programmer s Guide ...
Страница 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...