25.12.2013 Aufrufe

Gecko3 - CCC Event Weblog

Gecko3 - CCC Event Weblog

Gecko3 - CCC Event Weblog

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

E.3. Hostsoftware<br />

}<br />

bool QGecko : : admGetFwVersion ( QString ∗ v e r s i o n ) {<br />

i f ( geckoAdm != 0) {<br />

276 char fw [ 5 ] = ”” ;<br />

// send t h e vendor r e q u e s t to r e q u e s t t h e firmware v e r s i o n . t h e number i s in t h e<br />

format X.XX<br />

int b = u s b c o n t r o l m s g ( geckoAdm , USB TYPE VENDOR | USB ENDPOINT DIR MASK,<br />

GECKO FW VERSION, 0 , 0 , fw , 4 , 1000) ;<br />

i f ( b>=0){<br />

281 // append t h e r e c e i v e d v e r s i o n to t h e passed QString<br />

v e r s i o n −>append ( QByteArray ( fw , 4) ) ;<br />

return true ;<br />

}<br />

}<br />

286 return f a l s e ;<br />

}<br />

E.3.2. Gecko Administrator<br />

/∗ ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗<br />

∗ Diplomwork :<br />

3 ∗ <strong>Gecko3</strong> SoC HW/SW Development Board<br />

∗<br />

∗ ( ‘ \ ( ) ( ) ( )<br />

∗ | ( ) ) | ( | | | | Berne U n i v e r s i t y o f Applied S c i e n c e s<br />

∗ | < ’| ) | | School o f Engineering and<br />

8 ∗ | ( ) ) | | | | | | Information Technology<br />

∗ ( / ’( ) ( ) ( )<br />

∗<br />

∗<br />

∗ Author : Christoph Zimmermann<br />

13 ∗ Date o f c r e a t i o n : 3.12.2006<br />

∗ D e s c r i p t i o n :<br />

∗ main f i l e o f t h e Gecko Administrator programm<br />

∗ a c c e p t s t h e f o l l o w i n g command l i n e arguments :<br />

∗ −−firmware shows t h e download firmware t a b . d e f a u l t i t i s i n v i s i b l e<br />

18 ∗<br />

∗ Changelog :<br />

∗ 3.12.2006<br />

∗ f i r s t v e r s i o n<br />

∗<br />

23 ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗ ∗/<br />

#include <br />

#include ”geckoadm . h”<br />

28 int main ( int argc , char ∗∗ argv ) {<br />

QApplication a ( argc , argv ) ;<br />

geckoadm ∗ mw = new geckoadm ( ) ;<br />

mw−>show ( ) ;<br />

a . connect ( &a , SIGNAL( lastWindowClosed ( ) ) , &a , SLOT( q u i t ( ) ) ) ;<br />

33 return a . exec ( ) ;<br />

}<br />

1 /∗ ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗<br />

∗ Diplomwork :<br />

∗ <strong>Gecko3</strong> SoC HW/SW Development Board<br />

∗<br />

∗ ( ‘ \ ( ) ( ) ( )<br />

6 ∗ | ( ) ) | ( | | | | Berne U n i v e r s i t y o f Applied S c i e n c e s<br />

∗ | < ’| ) | | School o f Engineering and<br />

Project Report 109

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!