N957types.h File Reference

N957 public types definitions. More...

Go to the source code of this file.

Data Structures

struct  _N957_ConfigROM
 N957 board ROM configuration. More...

Defines

#define N957_INVALID_HANDLE_VALUE   (-1)
 Value for not valid handles.
#define N957_TRUE   (-1)
 boolean TRUE
#define N957_FALSE   (0)
 boolean FALSE
#define N957_FLASH_PAGE_SIZE   264
 Flash page byte size.

Typedefs

typedef unsigned char N957_BYTE
 8 bits unsigned int type
typedef unsigned short N957_UINT16
 16 bits unsigned int type
typedef uint32_t N957_UINT32
 32 bits unsigned int type
typedef short N957_INT16
 16 bits signed int type
typedef int32_t N957_INT32
 32 bits signed int type
typedef int N957_BOOL
 boolean type
typedef enum _N957ErrorCodes N957ErrorCodes
typedef enum _N957Registers N957Registers
typedef enum _N957StatusRegMsks N957StatusRegMsks
typedef enum _N957ControlRegMsks N957ControlRegMsks
typedef enum _N957ControlADCRates N957ControlADCRates
typedef enum
_N957ControlADCRatesMsks 
N957ControlADCRatesMsks
typedef enum _N957ControlModes N957ControlModes
typedef enum _N957ControlModesMsks N957ControlModesMsk
typedef enum
_N957ControlOUTPModeMsks 
N957ControlOUTPModeMsks
typedef enum _N957FlashEnaRegMsks N957FlashEnaRegMsks
typedef enum _N957FlashPageTypes N957FlashPageTypes
typedef struct _N957_ConfigROM N957_ConfigROM

Enumerations

enum  _N957ErrorCodes { N957Success = 0, N957CommError = -1, N957GenericError = -2, N957InvalidParam = -3 }
 Error codes. More...
enum  _N957Registers {
  N957StatusReg = 0x0000, N957ControlReg = 0x0001, N957FwRelReg = 0x0002, N957FwDwnldReg = 0x0003,
  N957FlashEnaReg = 0x0004, N957PulserReg = 0x0005, N957DACReg = 0x0006, N957BlDimReg = 0x0007,
  N957PotCtrlReg = 0x0008, N957CalSetReg = 0x0009, N957CalClearReg = 0x000a, N957ScratchReg = 0x000b,
  N957BuffOccReg = 0x000c, N957ScalerLSWReg = 0x000d, N957ScalerMSWReg = 0x000e, N957TimerLSWReg = 0x000f,
  N957TimerMSWReg = 0x0010, N957LiveTimeLSWReg = 0x0011, N957LiveTimeMSWReg = 0x0012, N957SwClearReg = 0x0013,
  N957SwResetReg = 0x0014
}
 Accessible registers. More...
enum  _N957StatusRegMsks { N957StatusRegUSBHiSpeedMsk = 0x0001, N957StatusRegMemEmptyMsk = 0x0002, N957StatusRegMemFullMsk = 0x0004, N957StatusRegFlashBusyMsk = 0x0008 }
 Status register bit masks. More...
enum  _N957ControlRegMsks {
  N957ControlRegAcqModeMsk = 0x0001, N957ControlRegADCRateMsk = 0x000e, N957ControlRegSLSOnMsk = 0x0010, N957ControlRegConvEnMsk = 0x0040,
  N957ControlRegSwConvMsk = 0x0080, N957ControlRegPUREnMsk = 0x0100, N957ControlRegModeMsk = 0x0600, N957ControlRegDACTestEnMsk = 0x0800,
  N957ControlRegSLSTypeMsk = 0x1000, N957ControlRegOUTPModeMsk = 0x6000, N957ControlRegOUTPLevelMsk = 0x8000
}
 Control register bit masks. More...
enum  _N957ControlADCRates {
  N957ControlADCRate600SPS = 0, N957ControlADCRate70KSPS, N957ControlADCRate140KSPS, N957ControlADCRate250KSPS,
  N957ControlADCRate420KSPS, N957ControlADCRate635KSPS, N957ControlADCRate850KSPS, N957ControlADCRate1MSPS
}
 Control register ADC rates. More...
enum  _N957ControlADCRatesMsks {
  N957ControlADCRate600SPSMsk = 0x0000, N957ControlADCRate70KSPSMsk = 0x0002, N957ControlADCRate140KSPSMsk = 0x0004, N957ControlADCRate250KSPSMsk = 0x0006,
  N957ControlADCRate420KSPSMsk = 0x0008, N957ControlADCRate635KSPSMsk = 0x000a, N957ControlADCRate850KSPSMsk = 0x000c, N957ControlADCRate1MSPSMsk = 0x000e
}
 Control register ADC rates masks. More...
enum  _N957ControlModes { N957ControlModeExtGate = 0, N957ControlModeAuto }
 Control register Modes. More...
enum  _N957ControlModesMsks { N957ControlModeExtGateMsk = 0x0000, N957ControlModeAutoMsk = 0x0200 }
 Control register Modes masks. More...
enum  _N957ControlOUTPModeMsks { N957OUTPModeMemFullMsk = 0x00, N957OUTPModePeakMsk = 0x01, N957OUTPModeLevelMsk = 0x10, N957OUTPModePulseMsk = 0x11 }
 Control register OUTP Modes masks. More...
enum  _N957FlashEnaRegMsks { N957FlashEnaRegFCSMsk = 0x0001 }
 Flash enable bit masks. More...
enum  _N957FlashPageTypes { N957FlashPageStandard, N957FlashPageBackup }
 Flash page types. More...


Detailed Description

N957 public types definitions.

Author:
CAEN S.p.A. ( http://www.caen.it )
Version:
1.2
Date:
05/2006
Provides properties and defines for N957 library usage

Definition in file N957types.h.


Generated on Mon Jun 30 09:34:03 2008 for CAEN N957 Lib by  doxygen 1.5.6