Chapter 5 - Smart-Frame Protocol II
CARROLL TOUCH
5-18
Touch System Programmer’s Guide
Overloaded Functions
Some SFP-II functions are overloaded in a manner similar to the way
that C++ supports overloaded functions.
An overloaded function is a function that is normally used to set the
values of some parameters, but can also be used to get the values of the
same parameters.
•
To set the parameter values, the host sends the complete command
including all parameters. The touch system sets the parameters
using the values sent by the host, and returns a report that contains
the resulting values for the parameters.
•
To get the parameter values, the host sends only the command
number with none of the parameter values present or a subset of
the parameter values present, depending on the function definition.
The touch system returns a report that contains the parameter
values.
If the host sends a command that includes the command number and a
partial list of parameters, it is an illegal action and an invalid parameter
error is returned in Cmderr.
For example, to get the current touch values using the SetTouchModes
(20H) command, the host sends the command as follows:
66 01 20 FF
The touch system responds with the following report:
E0 05 00 20 01 01 00 FF
This report indicates no errors in Cmderr and reports the values for the
three parameters defined for the function that were in effect when the
command was sent (
01
,
01
, and
00
). No parameter values were
changed.
However, to set the touch values using the SetTouchModes (20H)
command, the host sends the command as follows:
66 04 20 01 01 01 FF
The touch system responds with the following report:
E0 05 00 20 01 01 01 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 ...