TwiceAsNice
2019-02-18
|
#include <QSI_Interface.h>
Public Member Functions | |
QSI_Interface (void) | |
~QSI_Interface (void) | |
void | Initialize (void) |
int | CountDevices (void) |
int | GetDeviceInfo (int iIndex, CameraID &cID) |
int | ListDevices (std::vector< CameraID > &vQSIID, int &iNumFound) |
int | ListDevices (std::vector< CameraID > &vQSIID, CameraID::ConnProto_t proto, int &iNumFound) |
int | OpenCamera (std::string acSerialNumber) |
int | OpenCamera (CameraID cID) |
int | CloseCamera (void) |
int | ReadImageByRow (PVOID pvRxBuffer, int RowsToRead, int ColumnsToRead, int iStride, int iPixelSize, int &iRowsRead) |
int | CMD_InitCamera (void) |
int | CMD_GetDeviceDetails (QSI_DeviceDetails &DeviceDetails) |
int | CMD_StartExposure (QSI_ExposureSettings ExposureSettings) |
int | CMD_AbortExposure (void) |
int | CMD_TransferImage (void) |
int | CMD_GetAutoZero (QSI_AutoZeroData &AutoZeroData) |
int | CMD_GetDeviceState (int &iCameraState, bool &bShutterOpen, bool &bFilterState) |
int | CMD_SetTemperature (bool bCoolerOn, bool bGoToAmbient, double dSetPoint) |
int | CMD_GetTemperature (int &iCoolerState, double &dCoolerTemp, double &dTempAmbient, USHORT &usCoolerPower) |
int | CMD_GetTemperatureEx (int &iCoolerState, double &dCoolerTemp, double &dHotsideTemp, USHORT &usCoolerPower, double &PCBTemp, bool bProbe) |
int | CMD_ActivateRelay (int iXRelay, int iYRelay) |
int | CMD_IsRelayDone (bool &bGuiderRelayState) |
int | CMD_SetFilterWheel (int iFilterPosition) |
int | CMD_GetCamDefaultAdvDetails (QSI_AdvSettings &AdvDefaultSettings, QSI_AdvEnabledOptions &AdvEnabledOptions, QSI_DeviceDetails DeviceDetails) |
int | CMD_GetAdvDefaultSettings (QSI_AdvSettings &AdvSettingsDefaults, QSI_DeviceDetails DeviceDetails) |
int | CMD_SendAdvSettings (QSI_AdvSettings AdvSettings) |
int | CMD_GetSetPoint (double &dSetPoint) |
int | CMD_SetShutter (bool bOpen) |
int | CMD_AbortRelays (void) |
int | CMD_GetLastExposure (double &iExposure) |
int | CMD_CanAbortExposure (bool &bCanAbort) |
int | CMD_CanStopExposure (bool &bCanStop) |
int | CMD_GetFilterPosition (int &iPosition) |
int | CMD_GetAltMode1 (unsigned char &mode) |
int | CMD_SetAltMode1 (unsigned char mode) |
int | CMD_GetEEPROM (USHORT usAddress, BYTE &data) |
int | CMD_SetFilterTrim (int Position, bool probe=false) |
int | CMD_BurstBlock (int Count, BYTE *Buffer, int *Status) |
int | CMD_GetFeatures (BYTE *pMem, int iFeatureArraySize, int &iCountReturned) |
int | CMD_HSRExposure (QSI_ExposureSettings ExposureSettings, QSI_AutoZeroData &AutoZeroData) |
int | CMD_SetHSRMode (bool enable) |
int | CMD_StartExposureEx (QSI_ExposureSettings ExposureSettings) |
int | CMD_GetShutterState (int &State) |
bool | HasFilterWheelTrim (void) |
int | GetVersionInfo (char tszHWVersion[], char tszFWVersion[]) |
void | LogWrite (int iLevel, const char *msg,...) |
void | GetAutoZeroAdjustment (QSI_AutoZeroData autoZeroData, USHORT *zeroPixels, USHORT *usLastMean, int *usAdjust, double *dAdjust) |
int | AdjustZero (USHORT *pSrc, USHORT *pDst, int iRowLen, int iRowsLeft, int usAdjust, bool bAdjust) |
int | AdjustZero (USHORT *pSrc, double *pDst, int iRowLen, int iRowsLeft, double dAdjust, bool bAdjust) |
int | AdjustZero (USHORT *pSrc, long *pDst, int iRowLen, int iRowsLeft, int usAdjust, bool bAdjust) |
int | HasFastExposure (bool &bFast) |
int | QSIRead (unsigned char *Buffer, int BytesToRead, int *BytesReturned) |
int | QSIWrite (unsigned char *Buffer, int BytesToWrite, int *BytesWritten) |
int | QSIReadDataAvailable (int *count) |
int | QSIWriteDataPending (int *count) |
int | QSIReadTimeout (int timeout) |
int | QSIWriteTimeout (int timeout) |
void | HotPixelRemap (BYTE *Image, int RowPad, QSI_ExposureSettings Exposure, QSI_DeviceDetails Details, USHORT ZeroPixel) |
int | CMD_ExtTrigMode (BYTE action, BYTE polarity) |
virtual BYTE | EepromRead (USHORT address) |
int | GetMaxBytesPerReadBlock (void) |
Private Member Functions | |
int | CMD_GetCCDSpecs (QSI_CCDSpecs &CCDSpecs) |
int | UpdateAdvSettings (QSI_AdvSettings AdvSettings) |
int | AutoGainAdjust (QSI_ExposureSettings ExpSettings, QSI_AdvSettings AdvSettings) |
bool | GetBoolean (UCHAR) |
USHORT | Get2Bytes (PVOID) |
UINT | Get3Bytes (PVOID) |
void | GetString (PVOID, PVOID, int) |
std::string | GetStdString (BYTE *pSrc, int iLen) |
void | PutBool (PVOID, bool) |
void | Put2Bytes (PVOID, USHORT) |
void | Put3Bytes (PVOID, uint32_t) |
![]() | |
virtual | ~ICameraEeprom ()=0 |
QSI_Interface::QSI_Interface | ( | void | ) |
QSI_Interface::~QSI_Interface | ( | void | ) |
int QSI_Interface::AdjustZero | ( | USHORT * | pSrc, |
USHORT * | pDst, | ||
int | iRowLen, | ||
int | iRowsLeft, | ||
int | usAdjust, | ||
bool | bAdjust | ||
) |
int QSI_Interface::AdjustZero | ( | USHORT * | pSrc, |
double * | pDst, | ||
int | iRowLen, | ||
int | iRowsLeft, | ||
double | dAdjust, | ||
bool | bAdjust | ||
) |
int QSI_Interface::AdjustZero | ( | USHORT * | pSrc, |
long * | pDst, | ||
int | iRowLen, | ||
int | iRowsLeft, | ||
int | usAdjust, | ||
bool | bAdjust | ||
) |
|
private |
int QSI_Interface::CloseCamera | ( | void | ) |
int QSI_Interface::CMD_AbortExposure | ( | void | ) |
int QSI_Interface::CMD_AbortRelays | ( | void | ) |
int QSI_Interface::CMD_ActivateRelay | ( | int | iXRelay, |
int | iYRelay | ||
) |
int QSI_Interface::CMD_BurstBlock | ( | int | Count, |
BYTE * | Buffer, | ||
int * | Status | ||
) |
int QSI_Interface::CMD_CanAbortExposure | ( | bool & | bCanAbort | ) |
int QSI_Interface::CMD_CanStopExposure | ( | bool & | bCanStop | ) |
int QSI_Interface::CMD_GetAdvDefaultSettings | ( | QSI_AdvSettings & | AdvSettingsDefaults, |
QSI_DeviceDetails | DeviceDetails | ||
) |
int QSI_Interface::CMD_GetAltMode1 | ( | unsigned char & | mode | ) |
int QSI_Interface::CMD_GetAutoZero | ( | QSI_AutoZeroData & | AutoZeroData | ) |
int QSI_Interface::CMD_GetCamDefaultAdvDetails | ( | QSI_AdvSettings & | AdvDefaultSettings, |
QSI_AdvEnabledOptions & | AdvEnabledOptions, | ||
QSI_DeviceDetails | DeviceDetails | ||
) |
|
private |
int QSI_Interface::CMD_GetDeviceDetails | ( | QSI_DeviceDetails & | DeviceDetails | ) |
int QSI_Interface::CMD_GetDeviceState | ( | int & | iCameraState, |
bool & | bShutterOpen, | ||
bool & | bFilterState | ||
) |
int QSI_Interface::CMD_GetFeatures | ( | BYTE * | pMem, |
int | iFeatureArraySize, | ||
int & | iCountReturned | ||
) |
int QSI_Interface::CMD_GetFilterPosition | ( | int & | iPosition | ) |
int QSI_Interface::CMD_GetLastExposure | ( | double & | iExposure | ) |
int QSI_Interface::CMD_GetSetPoint | ( | double & | dSetPoint | ) |
int QSI_Interface::CMD_GetShutterState | ( | int & | State | ) |
int QSI_Interface::CMD_GetTemperature | ( | int & | iCoolerState, |
double & | dCoolerTemp, | ||
double & | dTempAmbient, | ||
USHORT & | usCoolerPower | ||
) |
int QSI_Interface::CMD_GetTemperatureEx | ( | int & | iCoolerState, |
double & | dCoolerTemp, | ||
double & | dHotsideTemp, | ||
USHORT & | usCoolerPower, | ||
double & | PCBTemp, | ||
bool | bProbe | ||
) |
int QSI_Interface::CMD_HSRExposure | ( | QSI_ExposureSettings | ExposureSettings, |
QSI_AutoZeroData & | AutoZeroData | ||
) |
int QSI_Interface::CMD_InitCamera | ( | void | ) |
int QSI_Interface::CMD_IsRelayDone | ( | bool & | bGuiderRelayState | ) |
int QSI_Interface::CMD_SendAdvSettings | ( | QSI_AdvSettings | AdvSettings | ) |
int QSI_Interface::CMD_SetAltMode1 | ( | unsigned char | mode | ) |
int QSI_Interface::CMD_SetFilterWheel | ( | int | iFilterPosition | ) |
int QSI_Interface::CMD_SetHSRMode | ( | bool | enable | ) |
int QSI_Interface::CMD_SetShutter | ( | bool | bOpen | ) |
int QSI_Interface::CMD_StartExposure | ( | QSI_ExposureSettings | ExposureSettings | ) |
int QSI_Interface::CMD_StartExposureEx | ( | QSI_ExposureSettings | ExposureSettings | ) |
int QSI_Interface::CMD_TransferImage | ( | void | ) |
int QSI_Interface::CountDevices | ( | void | ) |
Implements ICameraEeprom.
void QSI_Interface::GetAutoZeroAdjustment | ( | QSI_AutoZeroData | autoZeroData, |
USHORT * | zeroPixels, | ||
USHORT * | usLastMean, | ||
int * | usAdjust, | ||
double * | dAdjust | ||
) |
int QSI_Interface::GetDeviceInfo | ( | int | iIndex, |
CameraID & | cID | ||
) |
int QSI_Interface::GetMaxBytesPerReadBlock | ( | void | ) |
|
private |
int QSI_Interface::GetVersionInfo | ( | char | tszHWVersion[], |
char | tszFWVersion[] | ||
) |
int QSI_Interface::HasFastExposure | ( | bool & | bFast | ) |
bool QSI_Interface::HasFilterWheelTrim | ( | void | ) |
void QSI_Interface::HotPixelRemap | ( | BYTE * | Image, |
int | RowPad, | ||
QSI_ExposureSettings | Exposure, | ||
QSI_DeviceDetails | Details, | ||
USHORT | ZeroPixel | ||
) |
void QSI_Interface::Initialize | ( | void | ) |
int QSI_Interface::ListDevices | ( | std::vector< CameraID > & | vQSIID, |
int & | iNumFound | ||
) |
int QSI_Interface::ListDevices | ( | std::vector< CameraID > & | vQSIID, |
CameraID::ConnProto_t | proto, | ||
int & | iNumFound | ||
) |
void QSI_Interface::LogWrite | ( | int | iLevel, |
const char * | msg, | ||
... | |||
) |
int QSI_Interface::OpenCamera | ( | std::string | acSerialNumber | ) |
int QSI_Interface::OpenCamera | ( | CameraID | cID | ) |
int QSI_Interface::QSIRead | ( | unsigned char * | Buffer, |
int | BytesToRead, | ||
int * | BytesReturned | ||
) |
int QSI_Interface::QSIReadDataAvailable | ( | int * | count | ) |
int QSI_Interface::QSIReadTimeout | ( | int | timeout | ) |
int QSI_Interface::QSIWrite | ( | unsigned char * | Buffer, |
int | BytesToWrite, | ||
int * | BytesWritten | ||
) |
int QSI_Interface::QSIWriteDataPending | ( | int * | count | ) |
int QSI_Interface::QSIWriteTimeout | ( | int | timeout | ) |
int QSI_Interface::ReadImageByRow | ( | PVOID | pvRxBuffer, |
int | RowsToRead, | ||
int | ColumnsToRead, | ||
int | iStride, | ||
int | iPixelSize, | ||
int & | iRowsRead | ||
) |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
bool QSI_Interface::m_bAutoZeroEnable |
bool QSI_Interface::m_bAutoZeroMedianNotMean |
bool QSI_Interface::m_bCameraStateCacheInvalid |
bool QSI_Interface::m_bColorProfiling |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
bool QSI_Interface::m_bTestBayerImage |
QSI_AdvSettings QSI_Interface::m_CameraAdvSettingsCache |
QSI_CCDSpecs QSI_Interface::m_CCDSpecs |
|
private |
|
private |
|
private |
int QSI_Interface::m_dwAutoZeroMaxADU |
int QSI_Interface::m_dwAutoZeroSatThreshold |
int QSI_Interface::m_dwAutoZeroSkipEndPixels |
int QSI_Interface::m_dwAutoZeroSkipStartPixels |
|
private |
|
private |
|
private |
HotPixelMap QSI_Interface::m_hpmMap |
|
private |
QSILog* QSI_Interface::m_log |
|
private |
|
private |
|
private |
|
private |
|
private |