v513.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 
00003   Name:         v513.h
00004   Created by:   K.Olchanski
00005 
00006   Contents:     CAEN V513 16-channel NIM I/O register
00007 
00008   $Id: v513.h 3747 2007-07-10 08:30:09Z amaudruz $
00009 *********************************************************************/
00010 
00011 #ifndef  V513_INCLUDE_H
00012 #define  V513_INCLUDE_H
00013 
00014 #include <stdio.h>
00015 #include <stdint.h>
00016 #include <string.h>
00017 #include "mvmestd.h"
00018 
00019 #define V513_CHANMODE_OUTPUT    0
00020 #define V513_CHANMODE_INPUT     1
00021 #define V513_CHANMODE_NEG       0
00022 #define V513_CHANMODE_POS       2
00023 #define V513_CHANMODE_IGLITCHED 0
00024 #define V513_CHANMODE_INORMAL   4
00025 #define V513_CHANMODE_TRANSP    0
00026 #define V513_CHANMODE_EXTSTROBE 8
00027 
00028 uint16_t v513_RegisterRead(MVME_INTERFACE *mvme, DWORD base, int offset);
00029 void     v513_RegisterWrite(MVME_INTERFACE *mvme, DWORD base, int offset, uint16_t value);
00030 uint16_t v513_Read(MVME_INTERFACE *mvme, DWORD base);
00031 void     v513_Write(MVME_INTERFACE *mvme, DWORD base, uint16_t data);
00032 void     v513_Reset(MVME_INTERFACE *mvme, DWORD base);
00033 void     v513_Status(MVME_INTERFACE *mvme, DWORD base);
00034 void     v513_SetChannelMode(MVME_INTERFACE *mvme, DWORD base, int channel, int mode); // mode are V513_CHANMODE_XXX bits
00035 int      v513_GetChannelMode(MVME_INTERFACE *mvme, DWORD base, int channel);
00036 
00037 #endif // V513_INCLUDE_H

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