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 32

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 32 nussgipfel
#define MAX_EP0_PKTSIZE       64        /**< max size of EP0 packet on FX2 */
47 9 nussgipfel
 
48
/* ----------------------------------------------------------------
49
 *                      Vendor bmRequestType's
50
 * --------------------------------------------------------------*/
51
 
52 32 nussgipfel
/** bmRequestType for a IN vendor specific command */
53
#define VRT_VENDOR_IN                   0xC0  
54
 
55
/** bmRequestType for a OUT vendor specific command */
56 9 nussgipfel
#define VRT_VENDOR_OUT                  0x40
57
 
58
/* ----------------------------------------------------------------
59
 *                        GECKO3COM Vendor Requests
60
 *
61
 * Note that Cypress reserves [0xA0,0xAF].
62
 * 0xA0 is the firmware load function.
63
 * --------------------------------------------------------------*/
64
 
65
 
66
/* IN commands */
67
 
68
/* #define      VRQ_GET_STATUS                  0x80 */
69
 
70
 
71
/* OUT commands */
72
 
73 32 nussgipfel
#define VRQ_SET_SERIAL                  0x01   /**< set serial number */
74 9 nussgipfel
 
75 32 nussgipfel
#define VRQ_SET_HW_REV                  0x02   /**< set hardware revision */
76 9 nussgipfel
 
77 32 nussgipfel
#define VRQ_SET_FPGA_TYPE               0x03   /**< set fpga type */    
78 9 nussgipfel
 
79 32 nussgipfel
#define VRQ_SET_FPGA_IDCODE             0x04   /**< set fpga jtag idcode */
80 9 nussgipfel
 
81
 
82
#endif /* _GECKO3COM_COMMANDS_H_ */

powered by: WebSVN 2.1.0

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