25.12.2013 Aufrufe

Gecko3 - CCC Event Weblog

Gecko3 - CCC Event Weblog

Gecko3 - CCC Event Weblog

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

E. Quellcode<br />

#define GECKO GET CONFIGURATION 0xC5<br />

#define GECKO SEND END 0xC6<br />

60 #define GECKO CONFIGURE FPGA 0xC1<br />

#define GECKO CONFIGURE DONE 0xB2<br />

#define GECKO FW VERSION 0xB1<br />

class QGecko : public QObject<br />

65 {<br />

Q OBJECT<br />

public :<br />

QGecko ( QObject ∗ parent = 0) ;<br />

70 ˜QGecko ( ) ;<br />

bool open ( ) ;<br />

bool c l o s e ( ) ;<br />

bool read ( QByteArray ∗ readData , int byteCount ) ;<br />

75 bool w r i t e ( QFile &data ) ;<br />

bool w r i t e ( QByteArray data ) ;<br />

bool admOpen ( ) ;<br />

bool admClose ( ) ;<br />

bool admConfigure ( QFile &configData ) ;<br />

80 bool admDownload ( QFile &configData , int p l a c e ) ;<br />

bool admFirmware ( QFile &configData ) ;<br />

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

85<br />

protected :<br />

private s l o t s :<br />

bool admWrite ( QFile &data ) ;<br />

private :<br />

90 u s b d e v h a ndle ∗geckoCom ; // d e v i c e handler f o r t h e communication i n t e r f a c e<br />

u sb d e v h a ndle ∗geckoAdm ; // d e v i c e handler f o r t h e a d m i n i s t r a t i o n i n t e r f a c e<br />

} ;<br />

#endif<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 />

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

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

∗<br />

11 ∗<br />

∗ Author : Christoph Zimmermann<br />

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

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

∗ Gecko 3 c l a s s<br />

16 ∗ a l l hardware r e l a t e d f u n c t i o n s are in t h i s c l a s s to g e t an<br />

∗ easy a c c e s s to t h e gecko f u n c t i o n s<br />

∗<br />

∗ Changelog :<br />

∗ 4.12.2006<br />

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

∗<br />

∗ 5.12.2006<br />

∗ t e s t i n g and b u g f i x e s<br />

∗<br />

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

#include ” gecko . h”<br />

104 Matthias Zurbrügg, Christoph Zimmermann

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

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!