#ifndef DRV_PAD_H #define DRV_PAD_H /* $Id: drvPad.h,v 1.1 2012/05/25 14:33:23 strauman Exp $ */ /* Public Interface to PAD driver */ #ifdef __cplusplus extern "C" { #endif /* * Which Arcturus 'IRQ' pins is used for triggering the FIFOs. * This is the default but can be overridden by setting the * 'drvPadTrigPin' variable. */ #define TRIG_PIN_DFLT 1 extern int drvPadTrigPin; /* Which Arcturus 'IRQ' pins is used for interrupting the CPU. * This is the default but can be overridden by setting the * 'drvPadIrqPin' variable. */ #define IRQ_PIN_DFLT 2 extern int drvPadIrqPin; /* Check for a overrun condition (IRQ happens while trigger * is still high) */ int drvPadCheckOverrun(int irq_pin); /* Issue a software ADC trigger * RETURNS: 0 on success, nonzero if no trigger raised * (but a ongoing acq. is used with no IRQ pending). * */ int drvPadAdcTrigger(int trig_pin, int irq_pin); #ifdef __cplusplus } #endif #endif