v1740drv.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 
00003   Name:         v1740drv.h
00004   Created by:   P.-A. Amaudruz
00005 
00006   Contents:     v1740 64-channels 65Msps 12-bit ADC
00007 
00008   $Id: v1740drv.h 4725 2010-05-11 19:45:27Z amaudruz $
00009                 
00010 *********************************************************************/
00011 #ifndef  V1740DRV_INCLUDE_H
00012 #define  V1740DRV_INCLUDE_H
00013 
00014 #include <stdio.h>
00015 #include <stdint.h>
00016 #include <string.h>
00017 #include "mvmestd.h"
00018 
00019 #include "v1740.h"
00020 
00021 uint32_t v1740_RegisterRead(MVME_INTERFACE *mvme, uint32_t a32base, int offset);
00022 uint32_t v1740_BufferFreeRead(MVME_INTERFACE *mvme, uint32_t a32base);
00023 uint32_t v1740_BufferOccupancy(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t channel);
00024 uint32_t v1740_BufferFree(MVME_INTERFACE *mvme, uint32_t base, int nbuffer);
00025 
00026 void     v1740_AcqCtl(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t operation);
00027 void     v1740_GroupCtl(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t reg, uint32_t mask);
00028 void     v1740_TrgCtl(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t reg, uint32_t mask);
00029 
00030 void     v1740_RegisterWrite(MVME_INTERFACE *mvme, uint32_t a32base, int offset, uint32_t value);
00031 void     v1740_Reset(MVME_INTERFACE *mvme, uint32_t a32base);
00032 void     v1740_GroupThreshold(MVME_INTERFACE *mvme, uint32_t base, uint16_t group, uint16_t threshold);
00033 void     v1740_GroupDAC(MVME_INTERFACE *mvme, uint32_t base, uint16_t group, uint16_t dac);
00034 void     v1740_Status(MVME_INTERFACE *mvme, uint32_t a32base);
00035 int      v1740_Setup(MVME_INTERFACE *mvme, uint32_t a32base, int mode);
00036 void     v1740_info(MVME_INTERFACE *mvme, uint32_t a32base, int *nch, uint32_t *n32w);
00037 uint32_t v1740_DataRead(MVME_INTERFACE *mvme,uint32_t a32base, uint32_t *pdata, uint32_t n32w);
00038 uint32_t v1740_DataBlockRead(MVME_INTERFACE *mvme, uint32_t a32base, uint32_t *pdest, uint32_t *nentry);
00039 
00040 #endif // v1740DRV_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