mfbstd.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 
00003   Name:         mfbstr.h
00004   Created by:   Stefan Ritt
00005 
00006   Cotents:      MIDAS FASTBUS standard routines. Has to be combined
00007                 with either LRS1821.C or STR340.C
00008                 
00009   $Id: mfbstd.h 3205 2006-07-31 22:02:30Z ritt $
00010 
00011 *********************************************************************/
00012 
00013 /*---- replacements if not running under MIDAS ---------------------*/
00014 
00015 #ifndef MIDAS_TYPE_DEFINED
00016 #define MIDAS_TYPE_DEFINED
00017 
00018 typedef unsigned short int WORD;
00019 
00020 #ifndef _MSC_VER
00021 typedef unsigned int DWORD;
00022 #endif
00023 
00024 #define SUCCESS  1
00025 
00026 #endif                          /* MIDAS_TYPE_DEFINED */
00027 
00028 /* make functions under WinNT dll exportable */
00029 #if defined(_MSC_VER) && defined(MIDAS_DLL)
00030 #define EXPRT __declspec(dllexport)
00031 #else
00032 #define EXPRT
00033 #endif
00034 
00035 
00036 /*---- function declarations ---------------------------------------*/
00037 
00038 /* make functions callable from a C++ program */
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042 
00043    int EXPRT fb_init();
00044    void EXPRT fb_exit();
00045    int EXPRT fb_reset(void);
00046 
00047    int EXPRT fb_frd(int paddr, int saddr, DWORD * data);
00048    int EXPRT fb_frc(int paddr, int saddr, DWORD * data);
00049    int EXPRT fb_fwd(int paddr, int saddr, DWORD data);
00050    int EXPRT fb_fwc(int paddr, int saddr, DWORD data);
00051    int EXPRT fb_fwdm(int paddr, int saddr, DWORD data);
00052    int EXPRT fb_fwcm(int b_case, int paddr, int saddr, DWORD data);
00053    int EXPRT fb_frcm(int b_case, DWORD * data);
00054    int EXPRT fb_frdb(int paddr, int saddr, DWORD * data, int *count);
00055    int EXPRT fb_out(DWORD data);
00056    int EXPRT fb_in(void);
00057    void EXPRT fb_frdba(int paddr, int saddr, int count);
00058    int EXPRT fb_load_begin(int addr);
00059    int EXPRT fb_load_end(void);
00060    int EXPRT fb_execute(int addr, void *buffer, int *count);
00061 
00062 #ifdef __cplusplus
00063 }
00064 #endif

Midas DOC Version 3.0.0 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk