v1720drv.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 
00003   Name:         v1720drv.h
00004   Created by:   K.Olchanski
00005 
00006   Contents:     v1720 8-channel 200 MHz 12-bit ADC
00007 
00008   $Id: v1720drv.h 4728 2010-05-12 05:34:44Z svn $
00009                 
00010 *********************************************************************/
00011 #ifndef  V1720DRV_INCLUDE_H
00012 #define  V1720DRV_INCLUDE_H
00013 
00014 #include <stdio.h>
00015 #include <stdint.h>
00016 #include <string.h>
00017 #include "mvmestd.h"
00018 
00019 #include "v1720.h"
00020 
00021 uint32_t v1720_RegisterRead(MVME_INTERFACE *mvme, uint32_t a32base, int offset);
00022 uint32_t v1720_BufferFreeRead(MVME_INTERFACE *mvme, uint32_t a32base);
00023 uint32_t v1720_BufferOccupancy(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t channel);
00024 uint32_t v1720_BufferFree(MVME_INTERFACE *mvme, uint32_t base, int nbuffer);
00025 
00026 void     v1720_AcqCtl(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t operation);
00027 void     v1720_ChannelCtl(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t reg, uint32_t mask);
00028 void     v1720_TrgCtl(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t reg, uint32_t mask);
00029 
00030 void     v1720_RegisterWrite(MVME_INTERFACE *mvme, uint32_t a32base, int offset, uint32_t value);
00031 void     v1720_Reset(MVME_INTERFACE *mvme, uint32_t a32base);
00032 
00033 void     v1720_Status(MVME_INTERFACE *mvme, uint32_t a32base);
00034 int      v1720_Setup(MVME_INTERFACE *mvme, uint32_t a32base, int mode);
00035 void     v1720_info(MVME_INTERFACE *mvme, uint32_t a32base, int *nch, uint32_t *n32w);
00036 uint32_t v1720_DataRead(MVME_INTERFACE *mvme,uint32_t a32base, uint32_t *pdata, uint32_t n32w);
00037 uint32_t v1720_DataBlockRead(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t *pdest, uint32_t *nentry);
00038 void     v1720_ChannelThresholdSet(MVME_INTERFACE *mvme, uint32_t base, uint32_t channel, uint32_t threshold);
00039 void     v1720_ChannelOUThresholdSet(MVME_INTERFACE *mvme, uint32_t base, uint32_t channel, uint32_t threshold);
00040 void     v1720_ChannelDACSet(MVME_INTERFACE *mvme, uint32_t base, uint32_t channel, uint32_t dac);
00041 int      v1720_ChannelDACGet(MVME_INTERFACE *mvme, uint32_t base, uint32_t channel, uint32_t *dac);
00042 void     v1720_ChannelSet(MVME_INTERFACE *mvme, uint32_t base, uint32_t channel, uint32_t what, uint32_t that);
00043 uint32_t v1720_ChannelGet(MVME_INTERFACE *mvme, uint32_t base, uint32_t channel, uint32_t what);
00044 void     v1720_Align64Set(MVME_INTERFACE *mvme, uint32_t base);
00045 
00046 #endif // v1720DRV_INCLUDE_H

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