Gecko3 - CCC Event Weblog
Gecko3 - CCC Event Weblog
Gecko3 - CCC Event Weblog
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
E. Quellcode<br />
#include ” gecko . h”<br />
47<br />
class QTextEdit ;<br />
class simplecom : public QWidget<br />
{<br />
52 Q OBJECT<br />
57<br />
public :<br />
simplecom ( QWidget ∗ parent = 0) ;<br />
˜ simplecom ( ) ;<br />
protected :<br />
private s l o t s :<br />
void c l o s e E v e n t ( QClose<strong>Event</strong> ∗) ;<br />
62 void send ( ) ;<br />
void r e c e i v e ( ) ;<br />
bool geckoConnect ( ) ;<br />
QString toHex ( QByteArray data ) ;<br />
uchar nibbleToHex ( uchar value ) ;<br />
67<br />
private :<br />
QTextEdit ∗ e ;<br />
QPushButton ∗ f i l e O p e n ;<br />
QPushButton ∗ r e c e i v e D a t a ;<br />
72 QLineEdit ∗ numberInput ;<br />
QVBoxLayout ∗ l a y o u t ;<br />
QGecko ∗ gecko ;<br />
QString path ;<br />
} ;<br />
77<br />
#endif<br />
/∗ ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗<br />
2 ∗ Diplomwork :<br />
∗ <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 />
7 ∗ | < ’| ) | | School o f Engineering and<br />
∗ | ( ) ) | | | | | | Information Technology<br />
∗ ( / ’( ) ( ) ( )<br />
∗<br />
∗<br />
12 ∗ Author : Christoph Zimmermann<br />
∗ Date o f c r e a t i o n : 20.11.2006<br />
∗ D e s c r i p t i o n :<br />
∗<br />
∗<br />
17 ∗ Changelog :<br />
∗ 29.11.2006<br />
∗ f i r s t v e r s i o n<br />
∗<br />
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗ ∗/<br />
22<br />
#include ” simplecom . h”<br />
simplecom : : simplecom ( QWidget ∗ parent )<br />
: QWidget ( parent )<br />
27 {<br />
gecko = new QGecko ( ) ;<br />
QString path = QString : : n u l l ;<br />
118 Matthias Zurbrügg, Christoph Zimmermann