Chapter 5 - Smart-Frame Protocol II
CARROLL TOUCH
5-6
Touch System Programmer’s Guide
respond after another timeout period, the host should send enough FFH
bytes to ensure that the touch system’s input buffer overflows, and then
retry the command again. Note that the host could certainly send the
FFH bytes without retrying the command if it so chose. Refer to “Error
Reporting,” later in this chapter, for more details on error handling.
This design greatly simplifies the handling of command and report
packets for the touch system and the host. The touch system cannot
queue up command packets from the host, thus preventing many
potential overrun and timing problems.
Commands
An SFP-II command has the format:
header packetbytecount commandnumber
optionalparameters trailer
header
=
Defined to be 66H.
packetbytecount
=
Length of the command the command
parameters (if any) in bytes. For example, a command
with two bytes of parameters has a byte count of 3 (one
byte for the command number and two bytes for the
parameters).
commandnumber
=
One byte opcode that identifies the SFP-II command.
Valid opcodes are 00H through BFH.
optionalparameters
=
Parameters for the SFP-II command. The maximum
number of parameter bytes is 252 (FCH).
trailer
=
Defined to be FFH.
The maximum length of an SFP-II command packet is 256 bytes.
The format for SFP-II commands reflects the fact that SFP-II is a
layered protocol. There are two layers, the validation layer and the
interpretation layer.
Содержание 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 ...