spacmd.h

Go to the documentation of this file.
00001 /* Gxsm - Gnome X Scanning Microscopy Project
00002  * universal STM/AFM/SARLS/SPALEED/... controlling and
00003  * data analysis software
00004  *
00005  * DSP tools for Linux
00006  *
00007  * Copyright (C) 1999,2000,2001 Percy Zahl
00008  *
00009  * Authors: Percy Zahl <zahl@users.sf.net>
00010  * WWW Home: http://gxsm.sf.net
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
00025  */
00026 
00027 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 8 c-style: "K&R" -*- */
00028 
00029 /*@
00030  *@     File:   spacmd.h
00031  *@     Datum:  28.10.1997
00032  *@     Author: P.Zahl
00033  *@     Zweck:  SPA DSP Komando ID's
00034  *@             DSP Datenuebertragungsmodi: PORT_IO/DPRAM16/DPRAM32
00035  *@
00036  *@     History:
00037  *@     =====================================================================
00038  *@     V1.00 Basisversion
00039  *@@    28.10.97 PZ: Neu
00040  *@@    12.11.99 PZ: Splitting: DPRAM Zuweisungen / CmdIds
00041  */
00042 
00043 #include "dpramdef.h" /* DPRAM Aufteilung */
00044 
00045 
00046 /*
00047  * DSP Komandos zur Komunikation
00048  */
00049 
00050 
00051 #define DSP_CMD_INIT                    0x01    /* DSP Init (Dummy) */
00052 #define DSP_CMD_OKTODATA                0x10    /* Oktopolparameter */
00053 #define DSP_CMD_OKTO_SET                0x11    /* Setze Ux Uy auf X0, Y0 Werte*/
00054 #define DSP_CMD_SPACTRL_SET             0x12    /* SPA-LEED Control Unit Values */
00055 #define DSP_CMD_SCAN_PARAM              0x20    /* Scanparameter */
00056 #define DSP_CMD_SCAN_START              0x21    /* Start Scan in Mem A */
00057 #define DSP_CMD_SWAPDPRAM               0x22    /* Swap Memory1,2,.. from buffer to dpram */
00058 #define DSP_CMD_GETCNT                  0x23    /* Get Count at X,Y */
00059 #define DSP_CMD_SCAN2D                  0x24    /* small 2D Scan (Focus) */
00060 
00061 #define DSP_CMD_OSZI_RUN                0x40    /* Oszi Start */
00062 #define DSP_CMD_OSZI_STOP               0x41    /* Oszi Stop  */
00063 #define DSP_CMD_OSZI_PARAM              0x42    /* Oszi Parameter  */
00064 #define DSP_CMD_OSZI_RESET              0x43    /* Oszi Time Reset  */
00065 
00066 #define DSP_CMD_SSIODCAL                0x50    /* SSIOD Calib. fahren */
00067 #define DSP_CMD_SSIODGAIN               0x51    /* SSIOD Gain Set */
00068 
00069 #define DSP_CMD_PH_PARAM                0x60    /* Puls Heating control */
00070 
00071 #define DSP_CMD_GETINFO                 0xfe    /* Reports info now */
00072 #define DSP_CMD_READY                   0xfe    /* Dummy: nur ACK Antwort -- not used any longer */
00073 
00074 
00075 /* SPA DnD */
00076 #define DSP_X0     0
00077 #define DSP_Y0     1
00078 #define DSP_len    2
00079 #define DSP_N      3
00080 #define DSP_alpha  4
00081 #define DSP_ms     5
00082 #define DSP_E      6
00083 #define DSP_NX     7
00084 #define DSP_NY     8
00085 #define DSP_LXY    9
00086 #define DSP_MXX   10
00087 #define DSP_MXY   11
00088 #define DSP_MYX   12
00089 #define DSP_MYY   13
00090 
00091 
00092 #define DSP_SPACTRL_EXTRACTOR    0
00093 #define DSP_SPACTRL_CHANHV       1
00094 #define DSP_SPACTRL_CHANREPELLER 2
00095 #define DSP_SPACTRL_CRYFOCUS     3
00096 #define DSP_SPACTRL_FILAMENT     4
00097 #define DSP_SPACTRL_GUNFOCUS     5
00098 #define DSP_SPACTRL_GUNANODE     6
00099 #define DSP_SPACTRL_SMPDIST      7
00100 #define DSP_SPACTRL_SMPTEMP      8
00101 #define DSP_SPACTRL_GROWING      9
00102 
00103 /* BF */
00104 #define DSP_BF_LEN 0
00105 #define DSP_BF_N   1
00106 #define DSP_BF_MS  2
00107 
00108 
00109 /* Oszi */
00110 #define DSP_OSZI_TMGRENZ  500
00111 /* ab timebase >= 500ms kein DPRAM Array mehr, sondern Zeit und Chaneldata
00112                   mirror
00113  */
00114 
00115 #define DSP_OSZI_TIMEBASE  0
00116 #define DSP_OSZI_CHANNELS  1
00117 #define DSP_OSZI_NAVG      2
00118 #define DSP_OSZI_NSAMPLES  3
00119 #define DSP_OSZI_MODE      4
00120 
00121 /* Spezialpositionen für Oszi */
00122 #define DSP_OSZI_CH12      15
00123 #define DSP_OSZI_CH34      16
00124 #define DSP_OSZI_CH56      17
00125 #define DSP_OSZI_CH78      18
00126 #define DSP_OSZI_TM        19
00127 #define DSP_OSZI_DATAREADY 20
00128 #define DSP_OSZI_CNT       21
00129 
00130 /* SSIOD */
00131 #define DSP_SSIOD_N        0
00132 #define DSP_SSIOD_DN       1
00133 #define DSP_SSIOD_X1       2
00134 
00135 /* PH Param */
00136 #define DSP_PH_STATE       0
00137 #define DSP_PH_TDELTA      1
00138 #define DSP_PH_TON         2
00139 #define DSP_PH_TOFF        3
00140 
00141 /* Höchste Nummer für Parameterübergabe */
00142 #define DSP_LASTCMD        12
00143 

Generated on Sat Apr 1 09:04:09 2006 for GXSM by  doxygen 1.4.6