#include <linux/kernel.h>#include <math.h>#include "pci32/dspC32/spa/spacmd.h"Go to the source code of this file.
Classes | |
| struct | SCANP | 
| struct | SPALEED | 
Defines | |
| #define | AD_MAX_VOLT 10. | 
| #define | DA_MAX_VOLT 10. | 
| #define | DA_MAX_VAL 0x7ffe | 
| #define | UDA_MAX_VAL 0xffff | 
| #define | U2FLT(X) ((X)*(float)(DA_MAX_VAL)/AD_MAX_VOLT) | 
| #define | U2INT(X) (int)((X)*(float)(DA_MAX_VAL)/AD_MAX_VOLT+.5) | 
| #define | INT2U(X) ((float)(X)/DA_MAX_VAL*AD_MAX_VOLT) | 
| #define | UNI_U2FLT(X) ((X)*(float)(UDA_MAX_VAL)/AD_MAX_VOLT) | 
| #define | UNI_U2INT(X) (int)((X)*(float)(UDA_MAX_VAL)/AD_MAX_VOLT+.5) | 
| #define | UNI_INT2U(X) ((float)(X)/UDA_MAX_VAL*AD_MAX_VOLT) | 
| #define | DPRAMBASE (volatile int*) (spa.dsp->virtual_dpram) | 
| #define | CMD_BUFFER (volatile int*) (DPRAMBASE+0x00) | 
| #define | CMD_PARM (volatile int*) (DPRAMBASE+0x01) | 
| #define | BUFFER (volatile int*) (DPRAMBASE+DSP_BUFFER_START) | 
| #define | BUFFERL (volatile unsigned long*) (DPRAMBASE+DSP_BUFFER_START) | 
| #define | DPRAML (volatile unsigned long*) (DPRAMBASE) | 
| #define | LCDBUFFER (volatile unsigned long*) (DPRAMBASE+DSP_LCDBUFFER) | 
| #define | MAXSCANPOINTS (DSP_DATA_REG_LEN) | 
| #define | DSPack spa.dsp->SrvReqAck=TRUE | 
| #define | MD_CMD 0x08 | 
| #define | MD_SCAN 0x10 | 
| #define | MD_BLK 0x80 | 
| #define | LEDPORT(X) *((unsigned long*)(DPRAMBASE+DSP_USR_DIO))=X | 
Functions | |
| void | LCDclear (void) | 
| int | LCDprintf (const char *format,...) | 
| void | calc_spaparam (void) | 
| void | scan2d (void) | 
| void | linescan (int n, float y) | 
| unsigned long | ChanneltronCounts (float x, float y) | 
| int | GetParamI (unsigned int N) | 
| float | GetParamF (unsigned int N) | 
| int | InitEmu (struct dspsim_thread_data *dsp) | 
| void | ExitEmu (void) | 
| void | ServiceRequest (struct dspsim_thread_data *dsp) | 
| double | phi_xy (double dx, double dy) | 
Variables | |
| SCANP | scanp | 
| SPALEED | spa | 
      
  | 
  
| 
 
 Definition at line 35 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 56 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 57 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 54 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 55 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 37 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 36 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 52 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 58 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 62 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 44 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 59 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 68 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 60 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 66 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 64 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 65 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 42 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 43 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 38 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 49 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 47 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 48 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
 Definition at line 189 of file spaleed_emu.c. References SPALEED::chanhv, SPALEED::chanmult, SPALEED::emission, SPALEED::filament, SPALEED::focusval, SPALEED::gunfocus, and spa. Referenced by InitEmu(), and ServiceRequest().  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  
| 
 
 Definition at line 159 of file spaleed_emu.c.  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
 Definition at line 323 of file spaleed_emu.c. References atan().  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
      
  | 
  
| 
 
 Definition at line 95 of file spaleed_emu.c. Referenced by ChanneltronCounts(), linescan(), scan2d(), and ServiceRequest().  | 
  
      
  | 
  
| 
 
 Definition at line 116 of file spaleed_emu.c.  | 
  
 1.4.6