// Simultaneous Sample and Hold Card, Used in Conjunction with AD card. #include "ADCARD.H" #ifdef __cplusplus // This function leaves the card in whatever mode it was in, and returns // a buffer of digitized data. extern "C" far pascal int GetData(uint FirstChannel, uint LastChannel, uint *Buffer); // This function enables Hold on the card, using SEL3 extern "C" far pascal void EnableHold(void); // This function sets the card into Hold mode, using SEL3 // This is true only for mode 1. extern "C" far pascal void Hold(void); // This function sets the card into Sample mode, using SEL3 extern "C" far pascal void Sample(void); // This functionn tells the driver the address where the card is, this // should be the first call you make extern "C" far pascal int SetBaseAddress(uint Address); // This is the routine you should call to gather data from the SSH-08 card // The parameters are as follow: // uint FCH, First SSH-08 Channel to acquire during a HOLD // uint LCH, Last SSH-08 Channel to acquire during a HOLD // uint Scans, Total number of HOLD cycles to acquire // uint Trig, Trigger Source : 0=EXT, 1=SOFTWARE // uint D0, divisor of initial delay // uint Rate, divisor to achieve certain rate in acquisition // uint IRQ, IRQ number for timing Conversions, 0 to ignore // uint Mode, Mode that the SSH-08 Master is in. // uint far *Buffer Location in which to store the data. Must be // (LCH-FCH)*Scans unsigned integers long. extern "C" far pascal int PerformSSHDataAcquisition(uint FCH, uint LCH, uint Scans, uint Trig, uint D0, uint Rate, uint IRQ, uint Mode, uint *Buffer); // This routine returns a 1 if EXTTRG is set low, otherwise it returns 0 extern "C" far pascal int ReadTriggerStatus(void); #else extern far pascal int GetData(uint FirstChannel, uint LastChannel, uint *Buffer); extern far pascal void EnableHold(void); extern far pascal void Hold(void); extern far pascal void Sample(void); extern far pascal int SetBaseAddress(uint Address); extern far pascal int PerformSSHDataAcquisition(uint FCH, uint LCH, uint Scans, uint Trig, uint D0, uint Rate, uint IRQ, uint Mode, uint *Buffer); extern far pascal int ReadTriggerStatus(void); #endif