vmeio.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 
00003   Name:         vmeio.h
00004   Created by:   Pierre-Andre Amaudruz
00005 
00006   Cotents:      Routines for accessing the VMEIO Triumf board
00007 
00008   $Id: vmeio.h 3746 2007-07-10 08:26:11Z amaudruz $
00009 *********************************************************************/
00010 #ifndef __VMEIO_INCLUDE_H__
00011 #define __VMEIO_INCLUDE_H__
00012 
00013 #include "mvmestd.h"
00014 
00015 #define VMEIO_IRQENBL    (0x00)
00016 #define VMEIO_INTSRC     (0x04)
00017 #define VMEIO_OUTSET     (0x08)
00018 #define VMEIO_OUTPULSE   (0x0c)
00019 #define VMEIO_OUTLATCH   (0x10)
00020 #define VMEIO_RDSYNC     (0x14)
00021 #define VMEIO_RDASYNC    (0x18)
00022 #define VMEIO_RDCNTL     (0x1c)
00023 #define VMEIO_CLSTB      (0x1c)
00024 
00025 void vmeio_SyncWrite(MVME_INTERFACE *mvme, DWORD base, DWORD data);
00026 void vmeio_AsyncWrite(MVME_INTERFACE *mvme, DWORD base, DWORD data);
00027 void vmeio_OutputSet(MVME_INTERFACE *mvme, DWORD base, DWORD data);
00028 int  vmeio_CsrRead(MVME_INTERFACE *mvme, DWORD base);
00029 int  vmeio_AsyncRead(MVME_INTERFACE *myvme, DWORD base);
00030 int  vmeio_SyncRead(MVME_INTERFACE *myvme, DWORD base);
00031 void vmeio_StrobeClear(MVME_INTERFACE *mvme, DWORD base);
00032 void vmeio_IntEnable(MVME_INTERFACE *myvme, DWORD base, int input);
00033 void vmeio_IntRearm(MVME_INTERFACE *myvme, DWORD base, int input);
00034 #endif

Midas DOC Version 2.0.2 ---- 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