3
<title>Header File Index</title>
4
<link rel="STYLESHEET" type="TEXT/CSS" href="style.css">
6
<body bgcolor="#fffff8">
7
<table class="INVTABLE" width="100%">
10
<td class="NOBORDER" width="40"><img src="info.gif" border="0"
11
height="32" width="32"> </td>
12
<td class="TITLE">Automatic probing of hand-held model
19
<h3><a name="ticalcs_probe_calc_2"></a>ticalcs_probe_calc_2</h3>
20
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
23
<td style="vertical-align: top;">static int ticalcs_probe_calc_2(CalcHandle* handle, CalcModel* model)
29
This function tries and detect the calculator type for non-silent models
30
by requesting a screedump and analyzing the Machine ID.
31
It supposes your calc is on and plugged.
34
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
37
<td style="vertical-align: top;">handle :<br></td>
38
<td style="vertical-align: top;">a previously allocated handle
42
<td style="vertical-align: top;">type :<br></td>
43
<td style="vertical-align: top;">the calculator model
47
<td style="vertical-align: top;">Return value :<br></td>
48
<td style="vertical-align: top;">08 6D 00 00 PC request a screen dump
49
TI: MId 56 00 00 TI reply OK
50
Beware: the call sequence is very important: 86, 85, 73, 83, 82 !!!
51
Return value: 0 if successful, an error code otherwise.
57
<h3><a name="ticalcs_probe_calc_1"></a>ticalcs_probe_calc_1</h3>
58
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
61
<td style="vertical-align: top;">static int ticalcs_probe_calc_1(CalcHandle* handle, CalcModel* model)
67
Check if the calculator is ready and detect the type.
68
Works only on FLASH calculators with an AMS2.08 or OS2.00 by requesting the
69
version. A previous version was based on MID but TI83+/84+, TI89/TI89t, TI92+/V200
70
could not be distinguished ;-(
73
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
76
<td style="vertical-align: top;">handle :<br></td>
77
<td style="vertical-align: top;">a previously allocated handle
81
<td style="vertical-align: top;">type :<br></td>
82
<td style="vertical-align: top;">the calculator model
86
<td style="vertical-align: top;">Return value :<br></td>
87
<td style="vertical-align: top;">0 if successful, an error code otherwise.
93
<h3><a name="ticalcs_probe_calc"></a>ticalcs_probe_calc</h3>
94
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
97
<td style="vertical-align: top;">TIEXPORT3 int TICALL ticalcs_probe_calc (CableHandle* cable, CalcModel* model)
103
This function attempts to detect the calculator model plugged onto the cable.
104
It works in a heuristic fashion.
107
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
110
<td style="vertical-align: top;">cable :<br></td>
111
<td style="vertical-align: top;">a valid (=opened/attached) link cable handle
115
<td style="vertical-align: top;">model :<br></td>
116
<td style="vertical-align: top;">the calculator model which have been detected
120
<td style="vertical-align: top;">Return value :<br></td>
121
<td style="vertical-align: top;">0 if successful, an error code otherwise.
127
<h3><a name="ticalcs_probe_usb_calc"></a>ticalcs_probe_usb_calc</h3>
128
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
131
<td style="vertical-align: top;">TIEXPORT3 int TICALL ticalcs_probe_usb_calc(CableHandle* cable, CalcModel* model)
137
This function attempts to detect the calculator model plugged onto the cable.
138
It works in a heuristic fashion and with FLASH hand-helds only.
141
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
144
<td style="vertical-align: top;">cable :<br></td>
145
<td style="vertical-align: top;">a valid (=opened/attached) link cable handle
149
<td style="vertical-align: top;">model :<br></td>
150
<td style="vertical-align: top;">the calculator model which have been detected
154
<td style="vertical-align: top;">Return value :<br></td>
155
<td style="vertical-align: top;">0 if successful, an error code otherwise.
161
<h3><a name="ticalcs_probe"></a>ticalcs_probe</h3>
162
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
165
<td style="vertical-align: top;">TIEXPORT3 int TICALL ticalcs_probe(CableModel c_model, CablePort c_port, CalcModel* model, int all)
171
This function attempts to detect the calculator model plugged onto a
172
given link cable model/port. It works in a heuristic fashion.
173
This function handles device opening/closing for you.
176
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
179
<td style="vertical-align: top;">c_model :<br></td>
180
<td style="vertical-align: top;">link cable model
184
<td style="vertical-align: top;">c_port :<br></td>
185
<td style="vertical-align: top;">link cable port
189
<td style="vertical-align: top;">model :<br></td>
190
<td style="vertical-align: top;">hand-held model detected/found [out]
194
<td style="vertical-align: top;">all :<br></td>
195
<td style="vertical-align: top;">which hand-helds to detect (FLASH only or all)
199
<td style="vertical-align: top;">Return value :<br></td>
200
<td style="vertical-align: top;">0 if successful, an error code otherwise.
206
<h3><a href="file:index.html">Return to the main index</a> </h3><br><br><br></body>