GNU Radio's HOWTO Package
gn3s.h File Reference
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <math.h>
#include <libusb.h>

Go to the source code of this file.

Classes

struct  fx2Config
 
class  gn3s
 

Macros

#define RX_ENDPOINT   (0x86)
 
#define VRT_VENDOR_IN   (0xC0)
 
#define VRT_VENDOR_OUT   (0x40)
 
#define RX_INTERFACE   (2)
 
#define RX_ALTINTERFACE   (0)
 
#define VRQ_GET_STATUS   (0x80)
 
#define GS_RX_OVERRUN   (1)
 Returns 1 byte. More...
 
#define VRQ_XFER   (0x01)
 
#define GN3S_VID   (0x16C0)
 
#define GN3S_PID   (0x072F)
 
#define VID_OLD   (0x1781)
 
#define PID_OLD   (0x0B39)
 
#define PROG_SET_CMD   (0xE600)
 
#define USB_BUFFER_SIZE   (16384)
 8 MB More...
 
#define USB_BLOCK_SIZE   (512)
 16KB is hard limit More...
 
#define USB_NBLOCKS   (USB_BUFFER_SIZE / USB_BLOCK_SIZE)
 
#define USB_NTRANSFERS   (16)
 
#define USB_TIMEOUT   (1000)
 

Variables

char _binary_usrp_gn3s_firmware_ihx_start []
 

Detailed Description

FILENAME: gn3s.h

DESCRIPTION: Defines the GN3S class.

DEVELOPERS: Gregory W. Heckler (2003-2009)

LICENSE TERMS: Copyright (c) Gregory W. Heckler 2009

This file is part of the GPS Software Defined Radio (GPS-SDR)

The GPS-SDR is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GPS-SDR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Note: Comments within this file follow a syntax that is compatible with DOXYGEN and are utilized for automated document extraction

Reference:

Macro Definition Documentation

◆ GN3S_PID

#define GN3S_PID   (0x072F)

◆ GN3S_VID

#define GN3S_VID   (0x16C0)

◆ GS_RX_OVERRUN

#define GS_RX_OVERRUN   (1)

Returns 1 byte.

◆ PID_OLD

#define PID_OLD   (0x0B39)

◆ PROG_SET_CMD

#define PROG_SET_CMD   (0xE600)

◆ RX_ALTINTERFACE

#define RX_ALTINTERFACE   (0)

◆ RX_ENDPOINT

#define RX_ENDPOINT   (0x86)

◆ RX_INTERFACE

#define RX_INTERFACE   (2)

◆ USB_BLOCK_SIZE

#define USB_BLOCK_SIZE   (512)

16KB is hard limit

◆ USB_BUFFER_SIZE

#define USB_BUFFER_SIZE   (16384)

8 MB

◆ USB_NBLOCKS

#define USB_NBLOCKS   (USB_BUFFER_SIZE / USB_BLOCK_SIZE)

◆ USB_NTRANSFERS

#define USB_NTRANSFERS   (16)

◆ USB_TIMEOUT

#define USB_TIMEOUT   (1000)

◆ VID_OLD

#define VID_OLD   (0x1781)

◆ VRQ_GET_STATUS

#define VRQ_GET_STATUS   (0x80)

◆ VRQ_XFER

#define VRQ_XFER   (0x01)

◆ VRT_VENDOR_IN

#define VRT_VENDOR_IN   (0xC0)

◆ VRT_VENDOR_OUT

#define VRT_VENDOR_OUT   (0x40)

Variable Documentation

◆ _binary_usrp_gn3s_firmware_ihx_start

char _binary_usrp_gn3s_firmware_ihx_start[]