Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
allanwillms authored Jun 21, 2018
1 parent 0399b60 commit 456979c
Show file tree
Hide file tree
Showing 93 changed files with 21,200 additions and 0 deletions.
58 changes: 58 additions & 0 deletions AxonDev/Comp/Common/ADCDAC.H
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/************************************************************************************************
**
** Copyright (c) 1994-1997 Axon Instruments.
** All rights reserved.
**
*************************************************************************************************
** HEADER: ADCDAC.H
** PURPOSE: Contains #defines for working with ADC and DAC values.
** AUTHOR: BHI Jul 1994
*/

#ifndef INC_ADCDAC_H
#define INC_ADCDAC_H

//
// ADC values are 16 bit integers collected from Analog-to-Digital converters
//
#define ADC_MAX 32767
#define ADC_MIN -32768
typedef short ADC_VALUE;

//
// DAC values are 16 bit integers for output by Digital-to-Analog converters
//
#define DAC_MAX 32767
#define DAC_MIN -32768
typedef short DAC_VALUE;

//
// Define a linked list structure for holding acquisition buffers.
//
struct DATABUFFER
{
UINT uNumSamples; // Number of samples in this buffer.
UINT uFlags; // Flags discribing the data buffer.
ADC_VALUE *pnData; // The buffer containing the data.
BYTE *psDataFlags; // Flags split out from the data buffer.
DATABUFFER *pNextBuffer; // Next buffer in the list.
DATABUFFER *pPrevBuffer; // Previous buffer in the list.
};
typedef DATABUFFER *PDATABUFFER;


//
// Define a linked list structure for holding floating point acquisition buffers.
//
struct FLOATBUFFER
{
UINT uNumSamples; // Number of samples in this buffer.
UINT uFlags; // Flags discribing the data buffer.
float *pfData; // The buffer containing the data.
FLOATBUFFER *pNextBuffer; // Next buffer in the list.
FLOATBUFFER *pPrevBuffer; // Previous buffer in the list.
};
typedef FLOATBUFFER *PFLOATBUFFER;


#endif // INC_ADCDAC_H
Loading

0 comments on commit 456979c

Please sign in to comment.