62 <tr> |
62 <tr> |
63 <td><a href="#GenericMicroPythonDevice.__init__">GenericMicroPythonDevice</a></td> |
63 <td><a href="#GenericMicroPythonDevice.__init__">GenericMicroPythonDevice</a></td> |
64 <td>Constructor</td> |
64 <td>Constructor</td> |
65 </tr> |
65 </tr> |
66 <tr> |
66 <tr> |
|
67 <td><a href="#GenericMicroPythonDevice.__activateBootloader">__activateBootloader</a></td> |
|
68 <td>Private slot to switch the board into 'bootloader' mode.</td> |
|
69 </tr> |
|
70 <tr> |
|
71 <td><a href="#GenericMicroPythonDevice.__createGenericMenu">__createGenericMenu</a></td> |
|
72 <td>Private method to create the Generic submenu.</td> |
|
73 </tr> |
|
74 <tr> |
67 <td><a href="#GenericMicroPythonDevice.__deviceVolumeMounted">__deviceVolumeMounted</a></td> |
75 <td><a href="#GenericMicroPythonDevice.__deviceVolumeMounted">__deviceVolumeMounted</a></td> |
68 <td>Private method to check, if the device volume is mounted.</td> |
76 <td>Private method to check, if the device volume is mounted.</td> |
69 </tr> |
77 </tr> |
70 <tr> |
78 <tr> |
71 <td><a href="#GenericMicroPythonDevice.__findWorkspace">__findWorkspace</a></td> |
79 <td><a href="#GenericMicroPythonDevice.__findWorkspace">__findWorkspace</a></td> |
72 <td>Private method to find the workspace directory.</td> |
80 <td>Private method to find the workspace directory.</td> |
73 </tr> |
81 </tr> |
74 <tr> |
82 <tr> |
|
83 <td><a href="#GenericMicroPythonDevice.__firmwareVersionResponse">__firmwareVersionResponse</a></td> |
|
84 <td>Private slot handling the response of the latest version request.</td> |
|
85 </tr> |
|
86 <tr> |
|
87 <td><a href="#GenericMicroPythonDevice.__resetDevice">__resetDevice</a></td> |
|
88 <td>Private slot to reset the connected device.</td> |
|
89 </tr> |
|
90 <tr> |
|
91 <td><a href="#GenericMicroPythonDevice.__showFirmwareVersions">__showFirmwareVersions</a></td> |
|
92 <td>Private slot to show the firmware version of the connected device and the available firmware version.</td> |
|
93 </tr> |
|
94 <tr> |
|
95 <td><a href="#GenericMicroPythonDevice._getSetTimeCode">_getSetTimeCode</a></td> |
|
96 <td>Protected method to get the device code to set the time.</td> |
|
97 </tr> |
|
98 <tr> |
|
99 <td><a href="#GenericMicroPythonDevice.addDeviceMenuEntries">addDeviceMenuEntries</a></td> |
|
100 <td>Public method to add device specific entries to the given menu.</td> |
|
101 </tr> |
|
102 <tr> |
75 <td><a href="#GenericMicroPythonDevice.canRunScript">canRunScript</a></td> |
103 <td><a href="#GenericMicroPythonDevice.canRunScript">canRunScript</a></td> |
76 <td>Public method to determine, if a script can be executed.</td> |
104 <td>Public method to determine, if a script can be executed.</td> |
77 </tr> |
105 </tr> |
78 <tr> |
106 <tr> |
79 <td><a href="#GenericMicroPythonDevice.canStartFileManager">canStartFileManager</a></td> |
107 <td><a href="#GenericMicroPythonDevice.canStartFileManager">canStartFileManager</a></td> |
88 <td>Public method to determine, if a REPL can be started.</td> |
116 <td>Public method to determine, if a REPL can be started.</td> |
89 </tr> |
117 </tr> |
90 <tr> |
118 <tr> |
91 <td><a href="#GenericMicroPythonDevice.deviceName">deviceName</a></td> |
119 <td><a href="#GenericMicroPythonDevice.deviceName">deviceName</a></td> |
92 <td>Public method to get the name of the device.</td> |
120 <td>Public method to get the name of the device.</td> |
|
121 </tr> |
|
122 <tr> |
|
123 <td><a href="#GenericMicroPythonDevice.getDocumentationUrl">getDocumentationUrl</a></td> |
|
124 <td>Public method to get the device documentation URL.</td> |
|
125 </tr> |
|
126 <tr> |
|
127 <td><a href="#GenericMicroPythonDevice.getFirmwareUrl">getFirmwareUrl</a></td> |
|
128 <td>Public method to get the device firmware download URL.</td> |
93 </tr> |
129 </tr> |
94 <tr> |
130 <tr> |
95 <td><a href="#GenericMicroPythonDevice.getWorkspace">getWorkspace</a></td> |
131 <td><a href="#GenericMicroPythonDevice.getWorkspace">getWorkspace</a></td> |
96 <td>Public method to get the workspace directory.</td> |
132 <td>Public method to get the workspace directory.</td> |
97 </tr> |
133 </tr> |
142 <dt><i>parent</i> (QObject)</dt> |
178 <dt><i>parent</i> (QObject)</dt> |
143 <dd> |
179 <dd> |
144 reference to the parent object |
180 reference to the parent object |
145 </dd> |
181 </dd> |
146 </dl> |
182 </dl> |
|
183 <a NAME="GenericMicroPythonDevice.__activateBootloader" ID="GenericMicroPythonDevice.__activateBootloader"></a> |
|
184 <h4>GenericMicroPythonDevice.__activateBootloader</h4> |
|
185 <b>__activateBootloader</b>(<i></i>) |
|
186 |
|
187 <p> |
|
188 Private slot to switch the board into 'bootloader' mode. |
|
189 </p> |
|
190 <a NAME="GenericMicroPythonDevice.__createGenericMenu" ID="GenericMicroPythonDevice.__createGenericMenu"></a> |
|
191 <h4>GenericMicroPythonDevice.__createGenericMenu</h4> |
|
192 <b>__createGenericMenu</b>(<i></i>) |
|
193 |
|
194 <p> |
|
195 Private method to create the Generic submenu. |
|
196 </p> |
147 <a NAME="GenericMicroPythonDevice.__deviceVolumeMounted" ID="GenericMicroPythonDevice.__deviceVolumeMounted"></a> |
197 <a NAME="GenericMicroPythonDevice.__deviceVolumeMounted" ID="GenericMicroPythonDevice.__deviceVolumeMounted"></a> |
148 <h4>GenericMicroPythonDevice.__deviceVolumeMounted</h4> |
198 <h4>GenericMicroPythonDevice.__deviceVolumeMounted</h4> |
149 <b>__deviceVolumeMounted</b>(<i></i>) |
199 <b>__deviceVolumeMounted</b>(<i></i>) |
150 |
200 |
151 <p> |
201 <p> |
187 <dt>Return Type:</dt> |
237 <dt>Return Type:</dt> |
188 <dd> |
238 <dd> |
189 str |
239 str |
190 </dd> |
240 </dd> |
191 </dl> |
241 </dl> |
|
242 <a NAME="GenericMicroPythonDevice.__firmwareVersionResponse" ID="GenericMicroPythonDevice.__firmwareVersionResponse"></a> |
|
243 <h4>GenericMicroPythonDevice.__firmwareVersionResponse</h4> |
|
244 <b>__firmwareVersionResponse</b>(<i>reply</i>) |
|
245 |
|
246 <p> |
|
247 Private slot handling the response of the latest version request. |
|
248 </p> |
|
249 <dl> |
|
250 |
|
251 <dt><i>reply</i> (QNetworkReply)</dt> |
|
252 <dd> |
|
253 reference to the reply object |
|
254 </dd> |
|
255 </dl> |
|
256 <a NAME="GenericMicroPythonDevice.__resetDevice" ID="GenericMicroPythonDevice.__resetDevice"></a> |
|
257 <h4>GenericMicroPythonDevice.__resetDevice</h4> |
|
258 <b>__resetDevice</b>(<i></i>) |
|
259 |
|
260 <p> |
|
261 Private slot to reset the connected device. |
|
262 </p> |
|
263 <a NAME="GenericMicroPythonDevice.__showFirmwareVersions" ID="GenericMicroPythonDevice.__showFirmwareVersions"></a> |
|
264 <h4>GenericMicroPythonDevice.__showFirmwareVersions</h4> |
|
265 <b>__showFirmwareVersions</b>(<i></i>) |
|
266 |
|
267 <p> |
|
268 Private slot to show the firmware version of the connected device and the |
|
269 available firmware version. |
|
270 </p> |
|
271 <a NAME="GenericMicroPythonDevice._getSetTimeCode" ID="GenericMicroPythonDevice._getSetTimeCode"></a> |
|
272 <h4>GenericMicroPythonDevice._getSetTimeCode</h4> |
|
273 <b>_getSetTimeCode</b>(<i></i>) |
|
274 |
|
275 <p> |
|
276 Protected method to get the device code to set the time. |
|
277 </p> |
|
278 <p> |
|
279 Note: This method must be implemented in the various device specific |
|
280 subclasses. |
|
281 </p> |
|
282 <dl> |
|
283 <dt>Return:</dt> |
|
284 <dd> |
|
285 code to be executed on the connected device to set the time |
|
286 </dd> |
|
287 </dl> |
|
288 <dl> |
|
289 <dt>Return Type:</dt> |
|
290 <dd> |
|
291 str |
|
292 </dd> |
|
293 </dl> |
|
294 <a NAME="GenericMicroPythonDevice.addDeviceMenuEntries" ID="GenericMicroPythonDevice.addDeviceMenuEntries"></a> |
|
295 <h4>GenericMicroPythonDevice.addDeviceMenuEntries</h4> |
|
296 <b>addDeviceMenuEntries</b>(<i>menu</i>) |
|
297 |
|
298 <p> |
|
299 Public method to add device specific entries to the given menu. |
|
300 </p> |
|
301 <dl> |
|
302 |
|
303 <dt><i>menu</i> (QMenu)</dt> |
|
304 <dd> |
|
305 reference to the context menu |
|
306 </dd> |
|
307 </dl> |
192 <a NAME="GenericMicroPythonDevice.canRunScript" ID="GenericMicroPythonDevice.canRunScript"></a> |
308 <a NAME="GenericMicroPythonDevice.canRunScript" ID="GenericMicroPythonDevice.canRunScript"></a> |
193 <h4>GenericMicroPythonDevice.canRunScript</h4> |
309 <h4>GenericMicroPythonDevice.canRunScript</h4> |
194 <b>canRunScript</b>(<i></i>) |
310 <b>canRunScript</b>(<i></i>) |
195 |
311 |
196 <p> |
312 <p> |
278 </p> |
394 </p> |
279 <dl> |
395 <dl> |
280 <dt>Return:</dt> |
396 <dt>Return:</dt> |
281 <dd> |
397 <dd> |
282 name of the device |
398 name of the device |
|
399 </dd> |
|
400 </dl> |
|
401 <dl> |
|
402 <dt>Return Type:</dt> |
|
403 <dd> |
|
404 str |
|
405 </dd> |
|
406 </dl> |
|
407 <a NAME="GenericMicroPythonDevice.getDocumentationUrl" ID="GenericMicroPythonDevice.getDocumentationUrl"></a> |
|
408 <h4>GenericMicroPythonDevice.getDocumentationUrl</h4> |
|
409 <b>getDocumentationUrl</b>(<i></i>) |
|
410 |
|
411 <p> |
|
412 Public method to get the device documentation URL. |
|
413 </p> |
|
414 <dl> |
|
415 <dt>Return:</dt> |
|
416 <dd> |
|
417 documentation URL of the device |
|
418 </dd> |
|
419 </dl> |
|
420 <dl> |
|
421 <dt>Return Type:</dt> |
|
422 <dd> |
|
423 str |
|
424 </dd> |
|
425 </dl> |
|
426 <a NAME="GenericMicroPythonDevice.getFirmwareUrl" ID="GenericMicroPythonDevice.getFirmwareUrl"></a> |
|
427 <h4>GenericMicroPythonDevice.getFirmwareUrl</h4> |
|
428 <b>getFirmwareUrl</b>(<i></i>) |
|
429 |
|
430 <p> |
|
431 Public method to get the device firmware download URL. |
|
432 </p> |
|
433 <dl> |
|
434 <dt>Return:</dt> |
|
435 <dd> |
|
436 firmware download URL of the device |
283 </dd> |
437 </dd> |
284 </dl> |
438 </dl> |
285 <dl> |
439 <dl> |
286 <dt>Return Type:</dt> |
440 <dt>Return Type:</dt> |
287 <dd> |
441 <dd> |