GNU Radio's GNMAX2769 Package
gnmax.h File Reference
#include "gnmax_defines.h"
#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

class  gnmax
 

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_XFER   (0x01)
 
#define VRQ_ENABLE   (0x10)
 
#define VRQ_WRITE_CMD   (0x20)
 
#define VRQ_GET_STATUS   (0x80)
 
#define GS_RX_OVERRUN   (1)
 Returns 1 byte. More...
 
#define GN3S_VID   (0x1781)
 
#define GN3S_PID   (0x0B3C)
 
#define PROG_SET_CMD   (0xE600)
 
#define USB_BUFFER_SIZE   (65536)
 
#define USB_BLOCK_SIZE   (512)
 
#define USB_NBLOCKS   (USB_BUFFER_SIZE / USB_BLOCK_SIZE)
 
#define USB_NTRANSFERS   (16)
 
#define USB_TIMEOUT   (1000)
 

Detailed Description

FILENAME: gnmax.h

DESCRIPTION: Defines the GN3S class.

DEVELOPERS: Gregory W. Heckler (2003-2009) Wojciech Kazubski (2019)

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

This file is based on gn3s.h file, a part of GN3S driver for gnss-sdr project

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   (0x0B3C)

◆ GN3S_VID

#define GN3S_VID   (0x1781)

◆ GS_RX_OVERRUN

#define GS_RX_OVERRUN   (1)

Returns 1 byte.

◆ 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)

◆ USB_BUFFER_SIZE

#define USB_BUFFER_SIZE   (65536)

◆ USB_NBLOCKS

#define USB_NBLOCKS   (USB_BUFFER_SIZE / USB_BLOCK_SIZE)

◆ USB_NTRANSFERS

#define USB_NTRANSFERS   (16)

◆ USB_TIMEOUT

#define USB_TIMEOUT   (1000)

◆ VRQ_ENABLE

#define VRQ_ENABLE   (0x10)

◆ VRQ_GET_STATUS

#define VRQ_GET_STATUS   (0x80)

◆ VRQ_WRITE_CMD

#define VRQ_WRITE_CMD   (0x20)

◆ VRQ_XFER

#define VRQ_XFER   (0x01)

◆ VRT_VENDOR_IN

#define VRT_VENDOR_IN   (0xC0)

◆ VRT_VENDOR_OUT

#define VRT_VENDOR_OUT   (0x40)