
Chapter 5 - Smart-Frame Protocol II
CARROLL TOUCH
5-12
Touch System Programmer’s Guide
Error Reporting
SFP-II uses a command error status parameter (Cmderr) to report errors
in commands sent to the touch system. The one-byte parameter is part
of every SFP-II report and indicates whether the SFP-II command
number and/or command parameters were valid.
Note
The use of the Cmderr parameter to indicate unsupported features
is especially useful during the period that the SFP-II specification
is being developed. Features that have been specified but not yet
implemented will be indicated in this manner. The host should
check Cmderr in all reports returned from the touch system to
recognize these unsupported features.
Cmderr has a value of 0 if the command number and parameters are all
valid, or if the report is an unsolicited report.
When an error occurs, the command number and parameter bytes (if
any) that were sent by the host are echoed to the host in the
corresponding report. The touch system does not take any of the actions
and/or change the values of any of the parameters in the command.
Invalid Command Number
When an invalid command number is detected, an SFP-II report packet
is sent with Cmderr set to
FF
.
For example, if function 93H is undefined and the host sends the
following command:
66 01 93 FF
The touch system responds with the following report:
E0 02 FF 93 FF
The first
FF
byte is Cmderr and indicates that there is no command
defined with an opcode value of 93H.
If function 94H is undefined and the host sends the following
command:
66 04 94 01 02 03 FF
Содержание 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 ...