OpenCores
URL https://opencores.org/ocsvn/gecko3/gecko3/trunk

Subversion Repositories gecko3

[/] [gecko3/] [trunk/] [GECKO3COM/] [gecko3com-fw/] [firmware/] [include/] [gecko3com_commands.h] - Blame information for rev 9

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 nussgipfel
/***********************************************************
2
 *  Gecko3 SoC HW/SW Development Board
3
 *   ___    ___   _   _
4
 *  (  _`\ (  __)( ) ( )
5
 *  | (_) )| (   | |_| |   Berne University of Applied Sciences
6
 *  |  _ <'|  _) |  _  |   School of Engineering and
7
 *  | (_) )| |   | | | |   Information Technology
8
 *  (____/'(_)   (_) (_)
9
 *
10
 *
11
 * This program is free software: you can redistribute it and/or modify
12
 * it under the terms of the GNU General Public License as published by
13
 * the Free Software Foundation, either version 3 of the License, or
14
 * (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
 */
23
 
24
/************************************************************/
25
/** \file    gecko3com_commands.h
26
 *************************************************************
27
 *  \brief   Commands used by GECKO3COM
28
 *
29
 *           Here are the definitions of the commands interpreted
30
 *           by the GECKO3COM firmware.
31
 *           Mainly these are IEEE488 messages used with the USB
32
 *           Test and Measurement Class (TMC).
33
 *           We implemented also a few vendor specific USB commands
34
 *           to write the serial number and the FPGA type.
35
 *
36
 *  \author  Christoph Zimmermann bfh.ch
37
 *  \date    17.09.2007 first version
38
 *
39
 */
40
 
41
#ifndef _GECKO3COM_COMMANDS_H_
42
#define _GECKO3COM_COMMANDS_H_
43
 
44
#include <gecko3com_interfaces.h>
45
 
46
#define MAX_EP0_PKTSIZE       64        /* max size of EP0 packet on FX2 */
47
 
48
/* ----------------------------------------------------------------
49
 *                      Vendor bmRequestType's
50
 * --------------------------------------------------------------*/
51
 
52
#define VRT_VENDOR_IN                   0xC0
53
#define VRT_VENDOR_OUT                  0x40
54
 
55
/* ----------------------------------------------------------------
56
 *                        GECKO3COM Vendor Requests
57
 *
58
 * Note that Cypress reserves [0xA0,0xAF].
59
 * 0xA0 is the firmware load function.
60
 * --------------------------------------------------------------*/
61
 
62
 
63
/* IN commands */
64
 
65
/* #define      VRQ_GET_STATUS                  0x80 */
66
 
67
 
68
/* OUT commands */
69
 
70
#define VRQ_SET_SERIAL                  0x01    
71
 
72
#define VRQ_SET_HW_REV                  0x02
73
 
74
#define VRQ_SET_FPGA_TYPE               0x03    
75
 
76
#define VRQ_SET_FPGA_IDCODE             0x04    
77
 
78
 
79
#endif /* _GECKO3COM_COMMANDS_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.