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.3. Hostsoftware<br />
END BEHAVIOR;<br />
E.3. Hostsoftware<br />
E.3.1. Klasse QGecko<br />
/∗ ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗<br />
∗ Diplomwork :<br />
∗ <strong>Gecko3</strong> SoC HW/SW Development Board<br />
∗<br />
5 ∗ ( ‘ \ ( ) ( ) ( )<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 />
∗ | ( ) ) | | | | | | Information Technology<br />
∗ ( / ’( ) ( ) ( )<br />
10 ∗<br />
∗<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 />
15 ∗ Gecko 3 c l a s s h e a d e r f i l e<br />
∗ 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 />
20 ∗ 4.12.2006<br />
∗ 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 />
25 ∗<br />
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗ ∗/<br />
#ifndef GECKO H<br />
#define GECKO H<br />
30<br />
#include <br />
#include <br />
#include <br />
#include <br />
35<br />
#include <br />
// vendor and product i d o f t h e gecko board :<br />
#define ID VENDOR GECKO3 0X0547<br />
40 #define ID PRODUCT GECKO3 0X8888<br />
// r e q u i r e d information about t h e i n t e r f a c e s and a s s o c i a t e d e n d p o i n t s<br />
#define GECKO COM INTERFACE 0<br />
#define GECKO COM EP READ 8<br />
45 #define GECKO COM EP WRITE 6<br />
#define GECKO ADM INTERFACE 1<br />
#define GECKO ADM EP READ 4<br />
#define GECKO ADM EP WRITE 2<br />
50<br />
//number o f c o n f i g u r a t i o n s s t o r a b l e in t h e s p i f l a s h<br />
#define GECKO MAX CONFIGS 2<br />
// t h e d e f i n e d v e n d o r r e q u e s t s o f t h e gecko<br />
55 #define GECKO SEND FW 0xC2<br />
#define GECKO GET FW 0xC3<br />
#define GECKO SEND CONFIGURATION 0xC4<br />
Project Report 103