TwiceAsNice  2019-02-18
Classes | Macros | Typedefs | Enumerations | Variables
QSI_Global.h File Reference
#include "WinTypes.h"
#include "wincompat.h"
#include "FilterWheel.h"
#include <string>
Include dependency graph for QSI_Global.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  QSI_CCDSpecs_t
 
struct  QSI_DeviceDetails_t
 
struct  QSI_ExposureSettings_t
 
struct  QSI_AdvEnabledOptions_t
 
struct  QSI_FilterDesc_t
 
struct  QSI_AdvSettings_t
 
struct  QSI_AutoZeroData_t
 
struct  QSI_IOTimeouts_t
 

Macros

#define LOG
 

Typedefs

typedef struct QSI_CCDSpecs_t QSI_CCDSpecs
 
typedef struct QSI_DeviceDetails_t QSI_DeviceDetails
 
typedef struct QSI_ExposureSettings_t QSI_ExposureSettings
 
typedef struct QSI_AdvEnabledOptions_t QSI_AdvEnabledOptions
 
typedef struct QSI_FilterDesc_t QSI_FilterDesc
 
typedef struct QSI_AdvSettings_t QSI_AdvSettings
 
typedef struct QSI_AutoZeroData_t QSI_AutoZeroData
 
typedef struct QSI_IOTimeouts_t QSI_IOTimeouts
 
typedef enum QSICameraState_t QSICameraState
 
typedef enum QSICoolerState_t QSICoolerState
 

Enumerations

enum  QSICameraState_t {
  CCD_ERROR = 0, CCD_FILTERWHEELMOVING = 1, CCD_FLUSHING = 2, CCD_WAITTRIGGER = 3,
  CCD_DOWNLOADING = 4, CCD_READING = 5, CCD_EXPOSING = 6, CCD_IDLE = 7
}
 
enum  QSICoolerState_t {
  COOL_OFF = 0, COOL_ON = 1, COOL_ATAMBIENT = 2, COOL_GOTOAMBIENT = 3,
  COOL_NOCONTROL = 4, COOL_INITIALIZING = 5, COOL_INCREASING = 6, COOL_DECREASING = 7,
  COOL_BROWNOUT = 8
}
 
enum  QSI_ReturnStates {
  ALL_OK = 0, ERR_CAM_OverTemp = 1, ERR_CAM_UnderTemp = 2, ERR_CAM_UnderVolt = 3,
  ERR_CAM_OverVolt = 4, ERR_CAM_Filter = 5, ERR_CAM_Shutter = 6, ERR_USB_Load = 50,
  ERR_USB_LoadFunction = 51, ERR_USB_OpenFailed = 100, ERR_USB_WriteFailed = 101, ERR_USB_ReadFailed = 102,
  ERR_PKT_OpenFailed = 200, ERR_PKT_SetTimeOutFailed = 300, ERR_PKT_CloseFailed = 400, ERR_PKT_CheckQueuesFailed = 500,
  ERR_PKT_BothQueuesDirty = 600, ERR_PKT_RxQueueDirty = 700, ERR_PKT_TxQueueDirty = 800, ERR_PKT_SendInitFailed = 900,
  ERR_PKT_TxPacketTooLong = 1000, ERR_PKT_TxFailed = 1100, ERR_PKT_TxNone = 1200, ERR_PKT_TxTooLittle = 1300,
  ERR_PKT_RxHeaderFailed = 1400, ERR_PKT_RxBadHeader = 1500, ERR_PKT_RxPacketTooLong = 1600, ERR_PKT_RxFailed = 1700,
  ERR_PKT_RxNone = 1800, ERR_PKT_RxTooLittle = 1900, ERR_PKT_BlockInitFailed = 2100, ERR_PKT_BlockRxFailed = 2200,
  ERR_PKT_BlockRxTooLittle = 2300, ERR_PKT_SetLatencyFailed = 2400, ERR_PKT_ResetDeviceFailed = 2500, ERR_PKT_SetUSBParmsFailed = 2600,
  ERR_PKT_NoConnection = 2700, ERR_IFC_InitCamera = 10000, ERR_IFC_GetDeviceDetails = 20000, ERR_IFC_StartExposure = 30000,
  ERR_IFC_AbortExposure = 40000, ERR_IFC_TransferImage = 50000, ERR_IFC_ReadBlock = 60000, ERR_IFC_GetDeviceState = 70000,
  ERR_IFC_SetTemperature = 80000, ERR_IFC_GetTemperature = 90000, ERR_IFC_ActivateRelay = 100000, ERR_IFC_IsRelayDone = 110000,
  ERR_IFC_SetFilterWheel = 120000, ERR_IFC_CameraNotOpen = 130000, ERR_IFC_FilterNotOpen = 140000, ERR_IFC_CameraError = 150000,
  ERR_IFC_CameraHasNoFilter = 160000, ERR_IFC_FilterAlreadyOpen = 170000, ERR_IFC_Initialize = 180000, ERR_IFC_CountDevices = 190000,
  ERR_IFC_ListSerial = 200000, ERR_IFC_ListDescription = 210000, ERR_IFC_ListMismatch = 220000, ERR_IFC_GetDeviceInfo = 230000,
  ERR_IFC_AbortRelays = 240000, ERR_IFC_GetLastExposure = 250000, ERR_IFC_CanAbortExposure = 260000, ERR_IFC_CanStopExposure = 270000,
  ERR_IFC_GetFilterPosition = 280000, ERR_IFC_GetCCDSpecs = 290000, ERR_IFC_GetAdvDetails = 300000, ERR_IFC_NegAutoZero = 310000,
  ERR_IFC_SendAdvSettings = 320000, ERR_IFC_TriggerCCDError = 330000, ERR_IFC_NotSupported = 340000, ERR_IFC_GetShutterStateError = 350000
}
 

Variables

const int MAX_DEVICES = 31
 
const int MAX_PKT_LENGTH = 128
 
const int READ_TIMEOUT = 15000
 
const int WRITE_TIMEOUT = 5000
 
const int SHORT_READ_TIMEOUT = 1000
 
const int SHORT_WRITE_TIMEOUT = 1000
 
const int LONG_READ_TIMEOUT = 20000
 
const int LONG_WRITE_TIMEOUT = 20000
 
const int MINIMUM_READ_TIMEOUT = 1000
 
const int MINIMUM_WRITE_TIMEOUT = 1000
 
const int PKT_COMMAND = 0
 
const int PKT_LENGTH = 1
 
const int PKT_HEAD_LENGTH = 2
 
const int AUTOZEROSATTHRESHOLD = 10000
 
const int AUTOZEROMAXADU = 64000
 
const int AUTOZEROSKIPSTARTPIXELS = 32
 
const int AUTOZEROSKIPENDPIXELS = 32
 

Macro Definition Documentation

◆ LOG

#define LOG

Typedef Documentation

◆ QSI_AdvEnabledOptions

◆ QSI_AdvSettings

◆ QSI_AutoZeroData

◆ QSI_CCDSpecs

typedef struct QSI_CCDSpecs_t QSI_CCDSpecs

◆ QSI_DeviceDetails

◆ QSI_ExposureSettings

◆ QSI_FilterDesc

◆ QSI_IOTimeouts

◆ QSICameraState

◆ QSICoolerState

Enumeration Type Documentation

◆ QSI_ReturnStates

Enumerator
ALL_OK 
ERR_CAM_OverTemp 
ERR_CAM_UnderTemp 
ERR_CAM_UnderVolt 
ERR_CAM_OverVolt 
ERR_CAM_Filter 
ERR_CAM_Shutter 
ERR_USB_Load 
ERR_USB_LoadFunction 
ERR_USB_OpenFailed 
ERR_USB_WriteFailed 
ERR_USB_ReadFailed 
ERR_PKT_OpenFailed 
ERR_PKT_SetTimeOutFailed 
ERR_PKT_CloseFailed 
ERR_PKT_CheckQueuesFailed 
ERR_PKT_BothQueuesDirty 
ERR_PKT_RxQueueDirty 
ERR_PKT_TxQueueDirty 
ERR_PKT_SendInitFailed 
ERR_PKT_TxPacketTooLong 
ERR_PKT_TxFailed 
ERR_PKT_TxNone 
ERR_PKT_TxTooLittle 
ERR_PKT_RxHeaderFailed 
ERR_PKT_RxBadHeader 
ERR_PKT_RxPacketTooLong 
ERR_PKT_RxFailed 
ERR_PKT_RxNone 
ERR_PKT_RxTooLittle 
ERR_PKT_BlockInitFailed 
ERR_PKT_BlockRxFailed 
ERR_PKT_BlockRxTooLittle 
ERR_PKT_SetLatencyFailed 
ERR_PKT_ResetDeviceFailed 
ERR_PKT_SetUSBParmsFailed 
ERR_PKT_NoConnection 
ERR_IFC_InitCamera 
ERR_IFC_GetDeviceDetails 
ERR_IFC_StartExposure 
ERR_IFC_AbortExposure 
ERR_IFC_TransferImage 
ERR_IFC_ReadBlock 
ERR_IFC_GetDeviceState 
ERR_IFC_SetTemperature 
ERR_IFC_GetTemperature 
ERR_IFC_ActivateRelay 
ERR_IFC_IsRelayDone 
ERR_IFC_SetFilterWheel 
ERR_IFC_CameraNotOpen 
ERR_IFC_FilterNotOpen 
ERR_IFC_CameraError 
ERR_IFC_CameraHasNoFilter 
ERR_IFC_FilterAlreadyOpen 
ERR_IFC_Initialize 
ERR_IFC_CountDevices 
ERR_IFC_ListSerial 
ERR_IFC_ListDescription 
ERR_IFC_ListMismatch 
ERR_IFC_GetDeviceInfo 
ERR_IFC_AbortRelays 
ERR_IFC_GetLastExposure 
ERR_IFC_CanAbortExposure 
ERR_IFC_CanStopExposure 
ERR_IFC_GetFilterPosition 
ERR_IFC_GetCCDSpecs 
ERR_IFC_GetAdvDetails 
ERR_IFC_NegAutoZero 
ERR_IFC_SendAdvSettings 
ERR_IFC_TriggerCCDError 
ERR_IFC_NotSupported 
ERR_IFC_GetShutterStateError 

◆ QSICameraState_t

Enumerator
CCD_ERROR 
CCD_FILTERWHEELMOVING 
CCD_FLUSHING 
CCD_WAITTRIGGER 
CCD_DOWNLOADING 
CCD_READING 
CCD_EXPOSING 
CCD_IDLE 

◆ QSICoolerState_t

Enumerator
COOL_OFF 
COOL_ON 
COOL_ATAMBIENT 
COOL_GOTOAMBIENT 
COOL_NOCONTROL 
COOL_INITIALIZING 
COOL_INCREASING 
COOL_DECREASING 
COOL_BROWNOUT 

Variable Documentation

◆ AUTOZEROMAXADU

const int AUTOZEROMAXADU = 64000

◆ AUTOZEROSATTHRESHOLD

const int AUTOZEROSATTHRESHOLD = 10000

◆ AUTOZEROSKIPENDPIXELS

const int AUTOZEROSKIPENDPIXELS = 32

◆ AUTOZEROSKIPSTARTPIXELS

const int AUTOZEROSKIPSTARTPIXELS = 32

◆ LONG_READ_TIMEOUT

const int LONG_READ_TIMEOUT = 20000

◆ LONG_WRITE_TIMEOUT

const int LONG_WRITE_TIMEOUT = 20000

◆ MAX_DEVICES

const int MAX_DEVICES = 31

◆ MAX_PKT_LENGTH

const int MAX_PKT_LENGTH = 128

◆ MINIMUM_READ_TIMEOUT

const int MINIMUM_READ_TIMEOUT = 1000

◆ MINIMUM_WRITE_TIMEOUT

const int MINIMUM_WRITE_TIMEOUT = 1000

◆ PKT_COMMAND

const int PKT_COMMAND = 0

◆ PKT_HEAD_LENGTH

const int PKT_HEAD_LENGTH = 2

◆ PKT_LENGTH

const int PKT_LENGTH = 1

◆ READ_TIMEOUT

const int READ_TIMEOUT = 15000

◆ SHORT_READ_TIMEOUT

const int SHORT_READ_TIMEOUT = 1000

◆ SHORT_WRITE_TIMEOUT

const int SHORT_WRITE_TIMEOUT = 1000

◆ WRITE_TIMEOUT

const int WRITE_TIMEOUT = 5000