#include <linux/kernel.h>#include <math.h>#include "include/dsp-pci32/spa/spacmd.h"Go to the source code of this file.
Classes | |
| struct | SCANP |
| struct | SPALEED |
Defines | |
| #define | TITLE "KERNEL-SPALEED-EMU" |
| #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 37 of file spaleed_emu.c. |
|
|
Definition at line 58 of file spaleed_emu.c. |
|
|
Definition at line 59 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 39 of file spaleed_emu.c. |
|
|
Definition at line 38 of file spaleed_emu.c. |
|
|
Definition at line 54 of file spaleed_emu.c. |
|
|
Definition at line 60 of file spaleed_emu.c. |
|
|
Definition at line 64 of file spaleed_emu.c. |
|
|
Definition at line 46 of file spaleed_emu.c. |
|
|
Definition at line 61 of file spaleed_emu.c. |
|
|
Definition at line 70 of file spaleed_emu.c. |
|
|
Definition at line 62 of file spaleed_emu.c. |
|
|
Definition at line 68 of file spaleed_emu.c. |
|
|
Definition at line 66 of file spaleed_emu.c. |
|
|
Definition at line 67 of file spaleed_emu.c. |
|
|
Definition at line 34 of file spaleed_emu.c. Referenced by ServiceRequest(). |
|
|
Definition at line 44 of file spaleed_emu.c. |
|
|
Definition at line 45 of file spaleed_emu.c. |
|
|
Definition at line 40 of file spaleed_emu.c. |
|
|
Definition at line 51 of file spaleed_emu.c. |
|
|
Definition at line 49 of file spaleed_emu.c. |
|
|
Definition at line 50 of file spaleed_emu.c. |
|
|
|
|
||||||||||||
|
|
|
|
Definition at line 169 of file spaleed_emu.c. |
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 377 of file spaleed_emu.c. References atan(). |
|
|
|
|
|
|
Definition at line 97 of file spaleed_emu.c. |
|
|
Definition at line 118 of file spaleed_emu.c. |
1.4.6