GNU Radio's HOWTO Package
gn3s_main.h File Reference
#include "usrp_common.h"
#include "fx2regs.h"
#include "gn3s_regs.h"
#include "gpif_inline.h"
#include "timer.h"
#include "isr.h"
#include "usb_common.h"
#include "fx2utils.h"
#include "gn3s_se4110.h"
#include "eeprom.h"
#include <string.h>

Go to the source code of this file.

Macros

#define VRT_VENDOR_IN   0xC0
 
#define VRT_VENDOR_OUT   0x40
 
#define VRQ_GET_STATUS   0x80
 
#define GS_TX_UNDERRUN   0
 
#define GS_RX_OVERRUN   1
 
#define VRQ_XFER   0x01
 
#define VRQ_XFER_TX   0x02
 
#define bRequestType   SETUPDAT[0]
 
#define bRequest   SETUPDAT[1]
 
#define wValueL   SETUPDAT[2]
 
#define wValueH   SETUPDAT[3]
 
#define wIndexL   SETUPDAT[4]
 
#define wIndexH   SETUPDAT[5]
 
#define wLengthL   SETUPDAT[6]
 
#define wLengthH   SETUPDAT[7]
 
#define GUARD   4073
 
#define VRQ_EEPROM   0xa2
 
#define VRQ_RAM   0xa3
 
#define VRQ_DB_FX   0xa9
 
#define EP0BUFF_SIZE   0x40
 

Functions

static void get_ep0_data (void)
 
unsigned char app_vendor_cmd (void)
 
void guardC (void) interrupt
 
static void main_loop (void)
 
void TD_Init ()
 

Macro Definition Documentation

◆ bRequest

#define bRequest   SETUPDAT[1]

◆ bRequestType

#define bRequestType   SETUPDAT[0]

◆ EP0BUFF_SIZE

#define EP0BUFF_SIZE   0x40

◆ GS_RX_OVERRUN

#define GS_RX_OVERRUN   1

◆ GS_TX_UNDERRUN

#define GS_TX_UNDERRUN   0

◆ GUARD

#define GUARD   4073

◆ VRQ_DB_FX

#define VRQ_DB_FX   0xa9

◆ VRQ_EEPROM

#define VRQ_EEPROM   0xa2

◆ VRQ_GET_STATUS

#define VRQ_GET_STATUS   0x80

◆ VRQ_RAM

#define VRQ_RAM   0xa3

◆ VRQ_XFER

#define VRQ_XFER   0x01

◆ VRQ_XFER_TX

#define VRQ_XFER_TX   0x02

◆ VRT_VENDOR_IN

#define VRT_VENDOR_IN   0xC0

◆ VRT_VENDOR_OUT

#define VRT_VENDOR_OUT   0x40

◆ wIndexH

#define wIndexH   SETUPDAT[5]

◆ wIndexL

#define wIndexL   SETUPDAT[4]

◆ wLengthH

#define wLengthH   SETUPDAT[7]

◆ wLengthL

#define wLengthL   SETUPDAT[6]

◆ wValueH

#define wValueH   SETUPDAT[3]

◆ wValueL

#define wValueL   SETUPDAT[2]

Function Documentation

◆ app_vendor_cmd()

unsigned char app_vendor_cmd ( void  )

◆ get_ep0_data()

static void get_ep0_data ( void  )
static

◆ guardC()

void guardC ( void  )

◆ main_loop()

static void main_loop ( void  )
static

◆ TD_Init()

void TD_Init ( )