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 | Only display areas with differences | Details | Blame | View Log

Rev 9 Rev 32
/***********************************************************
/***********************************************************
 *  Gecko3 SoC HW/SW Development Board
 *  Gecko3 SoC HW/SW Development Board
 *   ___    ___   _   _
 *   ___    ___   _   _
 *  (  _`\ (  __)( ) ( )
 *  (  _`\ (  __)( ) ( )
 *  | (_) )| (   | |_| |   Berne University of Applied Sciences
 *  | (_) )| (   | |_| |   Berne University of Applied Sciences
 *  |  _ <'|  _) |  _  |   School of Engineering and
 *  |  _ <'|  _) |  _  |   School of Engineering and
 *  | (_) )| |   | | | |   Information Technology
 *  | (_) )| |   | | | |   Information Technology
 *  (____/'(_)   (_) (_)
 *  (____/'(_)   (_) (_)
 *
 *
 *
 *
 * This program is free software: you can redistribute it and/or modify
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * (at your option) any later version.
 *
 *
 * This program is distributed in the hope that it will be useful,
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 */
 
 
/************************************************************/
/************************************************************/
/** \file    gecko3com_commands.h
/** \file    gecko3com_commands.h
 *************************************************************
 *************************************************************
 *  \brief   Commands used by GECKO3COM
 *  \brief   Commands used by GECKO3COM
 *
 *
 *           Here are the definitions of the commands interpreted
 *           Here are the definitions of the commands interpreted
 *           by the GECKO3COM firmware.
 *           by the GECKO3COM firmware.
 *           Mainly these are IEEE488 messages used with the USB
 *           Mainly these are IEEE488 messages used with the USB
 *           Test and Measurement Class (TMC).
 *           Test and Measurement Class (TMC).
 *           We implemented also a few vendor specific USB commands
 *           We implemented also a few vendor specific USB commands
 *           to write the serial number and the FPGA type.
 *           to write the serial number and the FPGA type.
 *
 *
 *  \author  Christoph Zimmermann bfh.ch
 *  \author  Christoph Zimmermann bfh.ch
 *  \date    17.09.2007 first version
 *  \date    17.09.2007 first version
 *
 *
 */
 */
 
 
#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
 *
 *
 * Note that Cypress reserves [0xA0,0xAF].
 * Note that Cypress reserves [0xA0,0xAF].
 * 0xA0 is the firmware load function.
 * 0xA0 is the firmware load function.
 * --------------------------------------------------------------*/
 * --------------------------------------------------------------*/
 
 
 
 
/* IN commands */
/* IN commands */
 
 
/* #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_ */
 
 

powered by: WebSVN 2.1.0

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