Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Macros | Functions | Variables
grusbdc.c File Reference
#include "testmod.h"
#include <stdlib.h>
Include dependency graph for grusbdc.c:

Macros

#define GET_STATUS   0x00
 
#define CLEAR_FEATURE   0x01
 
#define SET_FEATURE   0x03
 
#define SET_ADDRESS   0x05
 
#define GET_DESCRIPTOR   0x06
 
#define SET_DESCRIPTOR   0x07
 
#define GET_CONFIGURATION   0x08
 
#define SET_CONFIGURATION   0x09
 
#define GET_INTERFACE   0x0A
 
#define SET_INTERFACE   0x0B
 
#define SYNCH_FRAME   0x0C
 
#define DEVICE_REMOTE_WAKEUP   0x0100
 
#define ENDPOINT_HALT   0x0000
 
#define TEST_MODE   0x0200
 
#define DEVICE_T   0x01
 
#define CONFIGURATION_T   0x02
 
#define STRING_T   0x03
 
#define INTERFACE_T   0x04
 
#define ENDPOINT_T   0x05
 
#define DEVQUAL_T   0x06
 
#define OSCONF_T   0x07
 
#define INTERFACE_POWER   0x08
 

Functions

int grusbdc_test (int ahbaddr)
 

Variables

char grDD [20]
 
char grCD [32]
 
char grDQ [10]
 
char grOC [32]
 

Macro Definition Documentation

#define CLEAR_FEATURE   0x01
#define CONFIGURATION_T   0x02
#define DEVICE_REMOTE_WAKEUP   0x0100
#define DEVICE_T   0x01
#define DEVQUAL_T   0x06
#define ENDPOINT_HALT   0x0000
#define ENDPOINT_T   0x05
#define GET_CONFIGURATION   0x08
#define GET_DESCRIPTOR   0x06
#define GET_INTERFACE   0x0A
#define GET_STATUS   0x00
#define INTERFACE_POWER   0x08
#define INTERFACE_T   0x04
#define OSCONF_T   0x07
#define SET_ADDRESS   0x05
#define SET_CONFIGURATION   0x09
#define SET_DESCRIPTOR   0x07
#define SET_FEATURE   0x03
#define SET_INTERFACE   0x0B
#define STRING_T   0x03
#define SYNCH_FRAME   0x0C
#define TEST_MODE   0x0200

Function Documentation

int grusbdc_test ( int  ahbaddr)

References i, and report_device().

Here is the call graph for this function:

Variable Documentation

char grCD[32]
char grDD[20]
Initial value:
= {
0x12,
0x01,
0x10, 0x02,
0xFF,
0x00,
0xFF,
0x40,
0x81, 0x17,
0xA0, 0x0A,
0x00, 0x00,
0x00,
0x00,
0x00,
0x01,
0x00,
0x00
}
char grDQ[10]
Initial value:
= {
0x0A,
0x10, 0x02,
0xFF,
0x00,
0xFF,
0x40,
0x01,
0x00
}
#define DEVQUAL_T
Definition: grusbdc.c:41
char grOC[32]