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

Subversion Repositories gecko3

[/] [gecko3/] [trunk/] [GECKO3COM/] [gecko3com-fw/] [firmware/] [include/] [gecko3com_commands.h] - Diff between revs 9 and 32

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 9 Rev 32
Line 41... Line 41...
#ifndef _GECKO3COM_COMMANDS_H_
#ifndef _GECKO3COM_COMMANDS_H_
#define _GECKO3COM_COMMANDS_H_
#define _GECKO3COM_COMMANDS_H_
 
 
#include <gecko3com_interfaces.h>
#include <gecko3com_interfaces.h>
 
 
#define MAX_EP0_PKTSIZE       64        /* max size of EP0 packet on FX2 */
#define MAX_EP0_PKTSIZE       64        /**< max size of EP0 packet on FX2 */
 
 
/* ----------------------------------------------------------------
/* ----------------------------------------------------------------
 *                      Vendor bmRequestType's
 *                      Vendor bmRequestType's
 * --------------------------------------------------------------*/
 * --------------------------------------------------------------*/
 
 
 
/** bmRequestType for a IN vendor specific command */
#define VRT_VENDOR_IN                   0xC0
#define VRT_VENDOR_IN                   0xC0
 
 
 
/** bmRequestType for a OUT vendor specific command */
#define VRT_VENDOR_OUT                  0x40
#define VRT_VENDOR_OUT                  0x40
 
 
/* ----------------------------------------------------------------
/* ----------------------------------------------------------------
 *                        GECKO3COM Vendor Requests
 *                        GECKO3COM Vendor Requests
 *
 *
Line 65... Line 68...
/* #define      VRQ_GET_STATUS                  0x80 */
/* #define      VRQ_GET_STATUS                  0x80 */
 
 
 
 
/* OUT commands */
/* OUT commands */
 
 
#define VRQ_SET_SERIAL                  0x01    
#define VRQ_SET_SERIAL                  0x01   /**< set serial number */
 
 
#define VRQ_SET_HW_REV                  0x02
#define VRQ_SET_HW_REV                  0x02   /**< set hardware revision */
 
 
#define VRQ_SET_FPGA_TYPE               0x03    
#define VRQ_SET_FPGA_TYPE               0x03   /**< set fpga type */    
 
 
#define VRQ_SET_FPGA_IDCODE             0x04    
#define VRQ_SET_FPGA_IDCODE             0x04   /**< set fpga jtag idcode */
 
 
 
 
#endif /* _GECKO3COM_COMMANDS_H_ */
#endif /* _GECKO3COM_COMMANDS_H_ */
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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