TwiceAsNice  2019-02-18
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
SBIGCCD Class Reference

#include <sbig_ccd.h>

Inheritance diagram for SBIGCCD:
Inheritance graph
Collaboration diagram for SBIGCCD:
Collaboration graph

Public Member Functions

 SBIGCCD ()
 
virtual ~SBIGCCD ()
 
virtual const char * getDefaultName () override
 
virtual bool initProperties () override
 Initilize properties initial state and value. More...
 
virtual void ISGetProperties (const char *dev) override
 define the driver's properties to the client. More...
 
virtual bool updateProperties () override
 updateProperties is called whenever there is a change in the CONNECTION status of the driver. More...
 
virtual bool Connect () override
 Connect to the device. More...
 
virtual bool Disconnect () override
 Disconnect from device. More...
 
virtual bool StartExposure (float duration) override
 Start exposing primary CCD chip. More...
 
virtual bool AbortExposure () override
 Abort ongoing exposure. More...
 
virtual bool StartGuideExposure (float duration) override
 Start exposing guide CCD chip. More...
 
virtual bool AbortGuideExposure () override
 Abort ongoing exposure. More...
 
virtual bool ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n) override
 Process the client newNumber command. More...
 
virtual bool ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) override
 Process the client newSwitch command. More...
 
virtual bool ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n) override
 Process the client newSwitch command. More...
 
void updateTemperature ()
 
bool isExposureDone (INDI::CCDChip *targetChip)
 
- Public Member Functions inherited from INDI::CCD
 CCD ()
 
virtual ~CCD ()
 
virtual bool ISSnoopDevice (XMLEle *root)
 Process a snoop event from INDI server. More...
 
 CCD ()
 
virtual ~CCD ()
 
virtual bool ISSnoopDevice (XMLEle *root)
 Process a snoop event from INDI server. More...
 
- Public Member Functions inherited from INDI::DefaultDevice
 DefaultDevice ()
 
virtual ~DefaultDevice ()
 
void addAuxControls ()
 Add Debug, Simulation, and Configuration options to the driver. More...
 
void addDebugControl ()
 Add Debug control to the driver. More...
 
void addSimulationControl ()
 Add Simulation control to the driver. More...
 
void addConfigurationControl ()
 Add Configuration control to the driver. More...
 
void addPollPeriodControl ()
 Add Polling period control to the driver. More...
 
void resetProperties ()
 Set all properties to IDLE state. More...
 
void defineNumber (INumberVectorProperty *nvp)
 Define number vector to client & register it. More...
 
void defineText (ITextVectorProperty *tvp)
 Define text vector to client & register it. More...
 
void defineSwitch (ISwitchVectorProperty *svp)
 Define switch vector to client & register it. More...
 
void defineLight (ILightVectorProperty *lvp)
 Define light vector to client & register it. More...
 
void defineBLOB (IBLOBVectorProperty *bvp)
 Define BLOB vector to client & register it. More...
 
virtual bool deleteProperty (const char *propertyName)
 Delete a property and unregister it. More...
 
virtual void setConnected (bool status, IPState state=IPS_OK, const char *msg=nullptr)
 Set connection switch status in the client. More...
 
int SetTimer (uint32_t ms)
 Set a timer to call the function TimerHit after ms milliseconds. More...
 
void RemoveTimer (int id)
 Remove timer added with SetTimer. More...
 
virtual const char * getDriverExec ()
 
virtual const char * getDriverName ()
 
void setVersion (uint16_t vMajor, uint16_t vMinor)
 Set driver version information to be defined in DRIVER_INFO property as vMajor.vMinor. More...
 
uint16_t getMajorVersion ()
 
uint16_t getMinorVersion ()
 
virtual bool ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 Process the client newBLOB command. More...
 
virtual uint16_t getDriverInterface ()
 
void setDriverInterface (uint16_t value)
 setInterface Set driver interface. More...
 
 DefaultDevice ()
 
virtual ~DefaultDevice ()
 
void addAuxControls ()
 Add Debug, Simulation, and Configuration options to the driver. More...
 
void addDebugControl ()
 Add Debug control to the driver. More...
 
void addSimulationControl ()
 Add Simulation control to the driver. More...
 
void addConfigurationControl ()
 Add Configuration control to the driver. More...
 
void addPollPeriodControl ()
 Add Polling period control to the driver. More...
 
void resetProperties ()
 Set all properties to IDLE state. More...
 
void defineNumber (INumberVectorProperty *nvp)
 Define number vector to client & register it. More...
 
void defineText (ITextVectorProperty *tvp)
 Define text vector to client & register it. More...
 
void defineSwitch (ISwitchVectorProperty *svp)
 Define switch vector to client & register it. More...
 
void defineLight (ILightVectorProperty *lvp)
 Define light vector to client & register it. More...
 
void defineBLOB (IBLOBVectorProperty *bvp)
 Define BLOB vector to client & register it. More...
 
virtual bool deleteProperty (const char *propertyName)
 Delete a property and unregister it. More...
 
virtual void setConnected (bool status, IPState state=IPS_OK, const char *msg=nullptr)
 Set connection switch status in the client. More...
 
int SetTimer (uint32_t ms)
 Set a timer to call the function TimerHit after ms milliseconds. More...
 
void RemoveTimer (int id)
 Remove timer added with SetTimer. More...
 
virtual const char * getDriverExec ()
 
virtual const char * getDriverName ()
 
void setVersion (uint16_t vMajor, uint16_t vMinor)
 Set driver version information to be defined in DRIVER_INFO property as vMajor.vMinor. More...
 
uint16_t getMajorVersion ()
 
uint16_t getMinorVersion ()
 
virtual bool ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 Process the client newBLOB command. More...
 
virtual uint16_t getDriverInterface ()
 
void setDriverInterface (uint16_t value)
 setInterface Set driver interface. More...
 
- Public Member Functions inherited from INDI::BaseDevice
 BaseDevice ()
 
virtual ~BaseDevice ()
 
INumberVectorPropertygetNumber (const char *name)
 
ITextVectorPropertygetText (const char *name)
 
ISwitchVectorPropertygetSwitch (const char *name)
 
ILightVectorPropertygetLight (const char *name)
 
IBLOBVectorPropertygetBLOB (const char *name)
 
IPState getPropertyState (const char *name)
 
IPerm getPropertyPermission (const char *name)
 
void registerProperty (void *p, INDI_PROPERTY_TYPE type)
 
int removeProperty (const char *name, char *errmsg)
 Remove a property. More...
 
void * getRawProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN)
 Return a property and its type given its name. More...
 
INDI::PropertygetProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN)
 Return a property and its type given its name. More...
 
std::vector< INDI::Property * > * getProperties ()
 Return a list of all properties in the device. More...
 
bool buildSkeleton (const char *filename)
 Build driver properties from a skeleton file. More...
 
bool isConnected ()
 
void setDeviceName (const char *dev)
 Set the device name. More...
 
const char * getDeviceName ()
 
void addMessage (const std::string &msg)
 Add message to the driver's message queue. More...
 
void checkMessage (XMLEle *root)
 
void doMessage (XMLEle *msg)
 
std::string messageQueue (int index) const
 
std::string lastMessage ()
 
void setMediator (INDI::BaseMediator *med)
 Set the driver's mediator to receive notification of news devices and updated property values. More...
 
INDI::BaseMediatorgetMediator ()
 
const char * getDriverName ()
 
const char * getDriverExec ()
 
const char * getDriverVersion ()
 
 BaseDevice ()
 
virtual ~BaseDevice ()
 
INumberVectorPropertygetNumber (const char *name)
 
ITextVectorPropertygetText (const char *name)
 
ISwitchVectorPropertygetSwitch (const char *name)
 
ILightVectorPropertygetLight (const char *name)
 
IBLOBVectorPropertygetBLOB (const char *name)
 
IPState getPropertyState (const char *name)
 
IPerm getPropertyPermission (const char *name)
 
void registerProperty (void *p, INDI_PROPERTY_TYPE type)
 
int removeProperty (const char *name, char *errmsg)
 Remove a property. More...
 
void * getRawProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN)
 Return a property and its type given its name. More...
 
INDI::PropertygetProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN)
 Return a property and its type given its name. More...
 
std::vector< INDI::Property * > * getProperties ()
 Return a list of all properties in the device. More...
 
bool buildSkeleton (const char *filename)
 Build driver properties from a skeleton file. More...
 
bool isConnected ()
 
void setDeviceName (const char *dev)
 Set the device name. More...
 
const char * getDeviceName ()
 
void addMessage (const std::string &msg)
 Add message to the driver's message queue. More...
 
void checkMessage (XMLEle *root)
 
void doMessage (XMLEle *msg)
 
std::string messageQueue (int index) const
 
std::string lastMessage ()
 
void setMediator (INDI::BaseMediator *med)
 Set the driver's mediator to receive notification of news devices and updated property values. More...
 
INDI::BaseMediatorgetMediator ()
 
const char * getDriverName ()
 
const char * getDriverExec ()
 
const char * getDriverVersion ()
 
- Public Member Functions inherited from INDI::FilterInterface
virtual bool SetFilterNames ()
 Set filter names as defined by the client for each filter position. More...
 
virtual bool GetFilterNames ()
 Obtains a list of filter names from the hardware and initializes the FilterNameTP property. More...
 
void SelectFilterDone (int newpos)
 The child class calls this function when the hardware successfully finished selecting a new filter wheel position. More...
 
virtual bool SetFilterNames ()
 Set filter names as defined by the client for each filter position. More...
 
virtual bool GetFilterNames ()
 Obtains a list of filter names from the hardware and initializes the FilterNameTP property. More...
 
void SelectFilterDone (int newpos)
 The child class calls this function when the hardware successfully finished selecting a new filter wheel position. More...
 

Static Public Member Functions

static void updateTemperatureHelper (void *)
 

Protected Member Functions

virtual void TimerHit () override
 Callback function to be called once SetTimer duration elapses. More...
 
virtual int SetTemperature (double temperature) override
 Set CCD temperature. More...
 
virtual bool UpdateCCDFrame (int x, int y, int w, int h) override
 CCD calls this function when CCD Frame dimension needs to be updated in the hardware. More...
 
virtual bool UpdateGuiderFrame (int x, int y, int w, int h) override
 CCD calls this function when Guide head frame dimension is updated by the client. More...
 
virtual bool UpdateCCDBin (int binx, int biny) override
 CCD calls this function when CCD Binning needs to be updated in the hardware. More...
 
virtual bool UpdateGuiderBin (int binx, int biny) override
 CCD calls this function when Guide head binning is updated by the client. More...
 
virtual bool UpdateCCDFrameType (INDI::CCDChip::CCD_FRAME fType) override
 CCD calls this function when CCD frame type needs to be updated in the hardware. More...
 
virtual bool saveConfigItems (FILE *fp) override
 saveConfigItems Save configuration items in XML file. More...
 
virtual IPState GuideNorth (uint32_t ms) override
 Guide northward for ms milliseconds. More...
 
virtual IPState GuideSouth (uint32_t ms) override
 Guide southward for ms milliseconds. More...
 
virtual IPState GuideEast (uint32_t ms) override
 Guide easward for ms milliseconds. More...
 
virtual IPState GuideWest (uint32_t ms) override
 Guide westward for ms milliseconds. More...
 
virtual int QueryFilter () override
 Return current filter position. More...
 
virtual bool SelectFilter (int position) override
 Select a new filter position. More...
 
void InitVars ()
 
void loadFirmwareOnOSXifNeeded ()
 
int OpenDriver ()
 
int CloseDriver ()
 
unsigned short CalcSetpoint (double temperature)
 
double CalcTemperature (short thermistorType, short ccdSetpoint)
 
double BcdPixel2double (ulong bcd)
 
- Protected Member Functions inherited from INDI::CCD
uint32_t GetCCDCapability () const
 GetCCDCapability returns the CCD capabilities. More...
 
void SetCCDCapability (uint32_t cap)
 SetCCDCapability Set the CCD capabilities. More...
 
bool CanAbort ()
 
bool CanBin ()
 
bool CanSubFrame ()
 
bool HasGuideHead ()
 
bool HasShutter ()
 
bool HasST4Port ()
 
bool HasCooler ()
 
bool HasBayer ()
 
bool HasStreaming ()
 
virtual bool ExposureComplete (CCDChip *targetChip)
 Uploads target Chip exposed buffer as FITS to the client. More...
 
virtual bool UpdateCCDUploadMode (CCD_UPLOAD_MODE mode)
 CCD calls this function when client upload mode switch is updated. More...
 
virtual bool UpdateGuiderFrameType (CCDChip::CCD_FRAME fType)
 CCD calls this function when Guide frame type is updated by the client. More...
 
virtual void SetCCDParams (int x, int y, int bpp, float xf, float yf)
 Setup CCD paramters for primary CCD. More...
 
virtual void SetGuiderParams (int x, int y, int bpp, float xf, float yf)
 Setup CCD paramters for guide head CCD. More...
 
virtual bool StartStreaming ()
 StartStreaming Start live video streaming. More...
 
virtual bool StopStreaming ()
 StopStreaming Stop live video streaming. More...
 
virtual void addFITSKeywords (fitsfile *fptr, CCDChip *targetChip)
 Add FITS keywords to a fits file. More...
 
void fits_update_key_s (fitsfile *fptr, int type, std::string name, void *p, std::string explanation, int *status)
 A function to just remove GCC warnings about deprecated conversion. More...
 
virtual void activeDevicesUpdated ()
 activeDevicesUpdated Inform children that ActiveDevices property was updated so they can snoop on the updated devices if desired. More...
 
void GuideComplete (INDI_EQ_AXIS axis)
 Call GuideComplete once the guiding pulse is complete. More...
 
uint32_t GetCCDCapability () const
 GetCCDCapability returns the CCD capabilities. More...
 
void SetCCDCapability (uint32_t cap)
 SetCCDCapability Set the CCD capabilities. More...
 
bool CanAbort ()
 
bool CanBin ()
 
bool CanSubFrame ()
 
bool HasGuideHead ()
 
bool HasShutter ()
 
bool HasST4Port ()
 
bool HasCooler ()
 
bool HasBayer ()
 
bool HasStreaming ()
 
virtual bool ExposureComplete (CCDChip *targetChip)
 Uploads target Chip exposed buffer as FITS to the client. More...
 
virtual bool UpdateCCDUploadMode (CCD_UPLOAD_MODE mode)
 CCD calls this function when client upload mode switch is updated. More...
 
virtual bool UpdateGuiderFrameType (CCDChip::CCD_FRAME fType)
 CCD calls this function when Guide frame type is updated by the client. More...
 
virtual void SetCCDParams (int x, int y, int bpp, float xf, float yf)
 Setup CCD paramters for primary CCD. More...
 
virtual void SetGuiderParams (int x, int y, int bpp, float xf, float yf)
 Setup CCD paramters for guide head CCD. More...
 
virtual bool StartStreaming ()
 StartStreaming Start live video streaming. More...
 
virtual bool StopStreaming ()
 StopStreaming Stop live video streaming. More...
 
virtual void addFITSKeywords (fitsfile *fptr, CCDChip *targetChip)
 Add FITS keywords to a fits file. More...
 
void fits_update_key_s (fitsfile *fptr, int type, std::string name, void *p, std::string explanation, int *status)
 A function to just remove GCC warnings about deprecated conversion. More...
 
virtual void activeDevicesUpdated ()
 activeDevicesUpdated Inform children that ActiveDevices property was updated so they can snoop on the updated devices if desired. More...
 
void GuideComplete (INDI_EQ_AXIS axis)
 Call GuideComplete once the guiding pulse is complete. More...
 
- Protected Member Functions inherited from INDI::DefaultDevice
void setDynamicPropertiesBehavior (bool defineEnabled, bool deleteEnabled)
 setDynamicPropertiesBehavior controls handling of dynamic properties. More...
 
virtual bool loadConfig (bool silent=false, const char *property=nullptr)
 Load the last saved configuration file. More...
 
virtual bool saveConfig (bool silent=false, const char *property=nullptr)
 Save the current properties in a configuration file. More...
 
virtual bool saveAllConfigItems (FILE *fp)
 saveAllConfigItems Save all the drivers' properties in the configuration file More...
 
virtual bool loadDefaultConfig ()
 Load the default configuration file. More...
 
void setDebug (bool enable)
 Toggle driver debug status A driver can be more verbose if Debug option is enabled by the client. More...
 
void setSimulation (bool enable)
 Toggle driver simulation status A driver can run in simulation mode if Simulation option is enabled by the client. More...
 
virtual void debugTriggered (bool enable)
 Inform driver that the debug option was triggered. More...
 
virtual void simulationTriggered (bool enable)
 Inform driver that the simulation option was triggered. More...
 
bool isDebug ()
 
bool isSimulation ()
 
void registerConnection (Connection::Interface *newConnection)
 registerConnection Add new connection plugin to the existing connection pool. More...
 
bool unRegisterConnection (Connection::Interface *existingConnection)
 unRegisterConnection Remove connection from existing pool More...
 
Connection::InterfacegetActiveConnection ()
 
void setDefaultPollingPeriod (uint32_t period)
 
uint32_t getPollingPeriod ()
 
void setDynamicPropertiesBehavior (bool defineEnabled, bool deleteEnabled)
 setDynamicPropertiesBehavior controls handling of dynamic properties. More...
 
virtual bool loadConfig (bool silent=false, const char *property=nullptr)
 Load the last saved configuration file. More...
 
virtual bool saveConfig (bool silent=false, const char *property=nullptr)
 Save the current properties in a configuration file. More...
 
virtual bool saveAllConfigItems (FILE *fp)
 saveAllConfigItems Save all the drivers' properties in the configuration file More...
 
virtual bool loadDefaultConfig ()
 Load the default configuration file. More...
 
void setDebug (bool enable)
 Toggle driver debug status A driver can be more verbose if Debug option is enabled by the client. More...
 
void setSimulation (bool enable)
 Toggle driver simulation status A driver can run in simulation mode if Simulation option is enabled by the client. More...
 
virtual void debugTriggered (bool enable)
 Inform driver that the debug option was triggered. More...
 
virtual void simulationTriggered (bool enable)
 Inform driver that the simulation option was triggered. More...
 
bool isDebug ()
 
bool isSimulation ()
 
void registerConnection (Connection::Interface *newConnection)
 registerConnection Add new connection plugin to the existing connection pool. More...
 
bool unRegisterConnection (Connection::Interface *existingConnection)
 unRegisterConnection Remove connection from existing pool More...
 
Connection::InterfacegetActiveConnection ()
 
void setDefaultPollingPeriod (uint32_t period)
 
uint32_t getPollingPeriod ()
 
- Protected Member Functions inherited from INDI::BaseDevice
int buildProp (XMLEle *root, char *errmsg)
 Build a property given the supplied XML element (defXXX) More...
 
int setValue (XMLEle *root, char *errmsg)
 handle SetXXX commands from client More...
 
int setBLOB (IBLOBVectorProperty *pp, XMLEle *root, char *errmsg)
 Parse and store BLOB in the respective vector. More...
 
int buildProp (XMLEle *root, char *errmsg)
 Build a property given the supplied XML element (defXXX) More...
 
int setValue (XMLEle *root, char *errmsg)
 handle SetXXX commands from client More...
 
int setBLOB (IBLOBVectorProperty *pp, XMLEle *root, char *errmsg)
 Parse and store BLOB in the respective vector. More...
 
- Protected Member Functions inherited from INDI::FilterInterface
 FilterInterface (DefaultDevice *defaultDevice)
 FilterInterface Initiailize Filter Interface. More...
 
 ~FilterInterface ()
 
void initProperties (const char *groupName)
 Initilize filter wheel properties. More...
 
bool updateProperties ()
 updateProperties Defines or Delete proprties based on default device connection status More...
 
bool processNumber (const char *dev, const char *name, double values[], char *names[], int n)
 Process number properties. More...
 
bool processText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Process text properties. More...
 
void generateSampleFilters ()
 generateSampleFilters Generate sample 8-filter wheel and fill it sample filters More...
 
bool saveConfigItems (FILE *fp)
 saveConfigItems save Filter Names in config file More...
 
 FilterInterface (DefaultDevice *defaultDevice)
 FilterInterface Initiailize Filter Interface. More...
 
 ~FilterInterface ()
 
void initProperties (const char *groupName)
 Initilize filter wheel properties. More...
 
bool updateProperties ()
 updateProperties Defines or Delete proprties based on default device connection status More...
 
bool processNumber (const char *dev, const char *name, double values[], char *names[], int n)
 Process number properties. More...
 
bool processText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Process text properties. More...
 
void generateSampleFilters ()
 generateSampleFilters Generate sample 8-filter wheel and fill it sample filters More...
 
bool saveConfigItems (FILE *fp)
 saveConfigItems save Filter Names in config file More...
 

Protected Attributes

int m_fd
 
CAMERA_TYPE m_camera_type
 
int m_drv_handle
 
bool m_link_status
 
std::string m_start_exposure_timestamp
 
- Protected Attributes inherited from INDI::CCD
double RA
 
double Dec
 
double J2000RA
 
double J2000DE
 
double primaryFocalLength
 
double primaryAperture
 
double guiderFocalLength
 
double guiderAperture
 
bool InExposure
 
bool InGuideExposure
 
bool RapidGuideEnabled
 
bool GuiderRapidGuideEnabled
 
bool AutoLoop
 
bool GuiderAutoLoop
 
bool SendImage
 
bool GuiderSendImage
 
bool ShowMarker
 
bool GuiderShowMarker
 
float ExposureTime
 
float GuiderExposureTime
 
double MPSAS
 
double RotatorAngle
 
double Airmass
 
double Latitude
 
double Longitude
 
std::vector< std::string > FilterNames
 
int CurrentFilterSlot
 
std::unique_ptr< StreamManagerStreamer
 
CCDChip PrimaryCCD
 
CCDChip GuideCCD
 
INumberVectorProperty EqNP
 
INumber EqN [2]
 
ITextVectorProperty ActiveDeviceTP
 
IText ActiveDeviceT [4] {}
 
INumber TemperatureN [1]
 
INumberVectorProperty TemperatureNP
 
IText BayerT [3] {}
 
ITextVectorProperty BayerTP
 
IText FileNameT [1] {}
 
ITextVectorProperty FileNameTP
 
ISwitch UploadS [3]
 
ISwitchVectorProperty UploadSP
 
IText UploadSettingsT [2] {}
 
ITextVectorProperty UploadSettingsTP
 
ISwitch TelescopeTypeS [2]
 
ISwitchVectorProperty TelescopeTypeSP
 
ISwitch WorldCoordS [2]
 
ISwitchVectorProperty WorldCoordSP
 
INumber CCDRotationN [1]
 
INumberVectorProperty CCDRotationNP
 
ISwitch ExposureLoopS [2]
 
ISwitchVectorProperty ExposureLoopSP
 
INumber ExposureLoopCountN [1]
 
INumberVectorProperty ExposureLoopCountNP
 
double uploadTime = { 0 }
 
std::chrono::system_clock::time_point exposureLoopStartup
 
IText FITSHeaderT [2] {}
 
ITextVectorProperty FITSHeaderTP
 
- Protected Attributes inherited from INDI::DefaultDevice
uint32_t POLLMS = 1000
 Period in milliseconds to call TimerHit(). Default 1000 ms. More...
 
- Protected Attributes inherited from INDI::FilterInterface
INumberVectorProperty FilterSlotNP
 
INumber FilterSlotN [1]
 
ITextVectorPropertyFilterNameTP { nullptr }
 
ITextFilterNameT
 
int CurrentFilter
 
int TargetFilter
 
bool loadingFromConfig = false
 
DefaultDevicem_defaultDevice { nullptr }
 

Private Types

enum  { GRAB_NO_CCD, GRAB_PRIMARY_CCD, GRAB_GUIDE_CCD }
 

Private Member Functions

float CalcTimeLeft (timeval, float)
 
bool grabImage (INDI::CCDChip *targetChip)
 
bool setupParams ()
 
int GetFileDescriptor ()
 
void SetFileDescriptor (int val=-1)
 
bool IsDeviceOpen ()
 
CAMERA_TYPE GetCameraType ()
 
void SetCameraType (CAMERA_TYPE val=NO_CAMERA)
 
int GetDriverHandle ()
 
void SetDriverHandle (int val=INVALID_HANDLE_VALUE)
 
bool GetLinkStatus ()
 
void SetLinkStatus (bool val=false)
 
int SetDeviceName (const char *)
 
std::string GetStartExposureTimestamp ()
 
void SetStartExposureTimestamp (const char *p)
 
int GetCFWSelType ()
 
int OpenDevice (uint32_t devType)
 
int CloseDevice ()
 
int GetDriverInfo (GetDriverInfoParams *, void *)
 
int SetDriverHandle (SetDriverHandleParams *)
 
int GetDriverHandle (GetDriverHandleResults *)
 
int StartExposure (StartExposureParams2 *)
 
int EndExposure (EndExposureParams *)
 
int StartReadout (StartReadoutParams *)
 
int ReadoutLine (ReadoutLineParams *, unsigned short *results, bool subtract)
 
int DumpLines (DumpLinesParams *)
 
int EndReadout (EndReadoutParams *)
 
int SetTemperatureRegulation (SetTemperatureRegulationParams *)
 
int SetTemperatureRegulation (double temp, bool enable=true)
 
int QueryTemperatureStatus (QueryTemperatureStatusResults *)
 
int QueryTemperatureStatus (bool &enabled, double &ccdTemp, double &setpointT, double &power)
 
int ActivateRelay (ActivateRelayParams *)
 
int PulseOut (PulseOutParams *)
 
int TxSerialBytes (TXSerialBytesParams *, TXSerialBytesResults *)
 
int GetSerialStatus (GetSerialStatusResults *)
 
int AoTipTilt (AOTipTiltParams *)
 
int AoSetFocus (AOSetFocusParams *)
 
int AoDelay (AODelayParams *)
 
int CFW (CFWParams *, CFWResults *)
 
int EstablishLink ()
 
int GetCcdInfo (GetCCDInfoParams *, void *)
 
void GetExtendedCCDInfo ()
 
int QueryCommandStatus (QueryCommandStatusParams *, QueryCommandStatusResults *)
 
int MiscellaneousControl (MiscellaneousControlParams *)
 
int ReadOffset (ReadOffsetParams *, ReadOffsetResults *)
 
int GetLinkStatus (GetLinkStatusResults *)
 
char * GetErrorString (int err)
 
int SetDriverControl (SetDriverControlParams *)
 
int GetDriverControl (GetDriverControlParams *, GetDriverControlResults *)
 
int UsbAdControl (USBADControlParams *)
 
int QueryUsb (QueryUSBResults *)
 
int RwUsbI2c (RWUSBI2CParams *)
 
int BitIo (BitIOParams *, BitIOResults *)
 
int SBIGUnivDrvCommand (PAR_COMMAND, void *, void *)
 
bool CheckLink ()
 
const char * GetCameraName ()
 
const char * GetCameraID ()
 
int getCCDSizeInfo (int ccd, int rm, int &frmW, int &frmH, double &pixW, double &pixH)
 
bool IsFanControlAvailable ()
 
bool updateFrameProperties (INDI::CCDChip *targetChip)
 
int StartExposure (INDI::CCDChip *targetChip, double duration)
 
int AbortExposure (INDI::CCDChip *targetChip)
 
int GetSelectedCCDChip (int &ccd_request)
 
int getBinningMode (INDI::CCDChip *targetChip, int &binning)
 
int getFrameType (INDI::CCDChip *targetChip, INDI::CCDChip::CCD_FRAME *frameType)
 
int getShutterMode (INDI::CCDChip *targetChip, int &shutter)
 
int CFWConnect ()
 
int CFWDisconnect ()
 
int CFWInit (CFWResults *)
 
int CFWQuery (CFWResults *)
 
int CFWGoto (CFWResults *, int position)
 
int CFWGotoMonitor (CFWResults *)
 
int readoutCCD (unsigned short left, unsigned short top, unsigned short width, unsigned short height, unsigned short *buffer, INDI::CCDChip *targetChip)
 
friend void ::ISGetProperties (const char *dev)
 
friend void ::ISSnoopDevice (XMLEle *root)
 
friend void ::ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int num)
 
friend void ::ISNewText (const char *dev, const char *name, char *texts[], char *names[], int num)
 
friend void ::ISNewNumber (const char *dev, const char *name, double values[], char *names[], int num)
 
friend void ::ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 

Private Attributes

DEVICE device
 
char name [MAXINDINAME]
 
IText ProductInfoT [2] {}
 
ITextVectorProperty ProductInfoTP
 
ISwitch PortS [8]
 
ISwitchVectorProperty PortSP
 
int SBIGPortMap [8]
 
IText IpT [1]
 
ITextVectorProperty IpTP
 
ISwitch FanStateS [2]
 
ISwitchVectorProperty FanStateSP
 
ISwitch CoolerS [2]
 
ISwitchVectorProperty CoolerSP
 
INumber CoolerN [1]
 
INumberVectorProperty CoolerNP
 
IText FilterProdcutT [2] {}
 
ITextVectorProperty FilterProdcutTP
 
ISwitch FilterTypeS [MAX_CFW_TYPES]
 
ISwitchVectorProperty FilterTypeSP
 
int SBIGFilterMap [MAX_CFW_TYPES]
 
ISwitch FilterConnectionS [2]
 
ISwitchVectorProperty FilterConnectionSP
 
double ccdTemp
 
unsigned short * imageBuffer
 
int timerID
 
INDI::CCDChip::CCD_FRAME imageFrameType
 
struct timeval ExpStart
 
struct timeval GuideExpStart
 
float ExposureRequest
 
float GuideExposureRequest
 
float TemperatureRequest
 
bool sim
 
bool isColor
 
bool useExternalTrackingCCD
 
bool hasGuideHead
 
bool hasFilterWheel
 

Additional Inherited Members

- Public Types inherited from INDI::CCD
enum  {
  CCD_CAN_BIN = 1 << 0, CCD_CAN_SUBFRAME = 1 << 1, CCD_CAN_ABORT = 1 << 2, CCD_HAS_GUIDE_HEAD = 1 << 3,
  CCD_HAS_ST4_PORT = 1 << 4, CCD_HAS_SHUTTER = 1 << 5, CCD_HAS_COOLER = 1 << 6, CCD_HAS_BAYER = 1 << 7,
  CCD_HAS_STREAMING = 1 << 8
}
 
enum  CCD_UPLOAD_MODE {
  UPLOAD_CLIENT, UPLOAD_LOCAL, UPLOAD_BOTH, UPLOAD_CLIENT,
  UPLOAD_LOCAL, UPLOAD_BOTH
}
 
enum  {
  CCD_CAN_BIN = 1 << 0, CCD_CAN_SUBFRAME = 1 << 1, CCD_CAN_ABORT = 1 << 2, CCD_HAS_GUIDE_HEAD = 1 << 3,
  CCD_HAS_ST4_PORT = 1 << 4, CCD_HAS_SHUTTER = 1 << 5, CCD_HAS_COOLER = 1 << 6, CCD_HAS_BAYER = 1 << 7,
  CCD_HAS_STREAMING = 1 << 8
}
 
enum  CCD_UPLOAD_MODE {
  UPLOAD_CLIENT, UPLOAD_LOCAL, UPLOAD_BOTH, UPLOAD_CLIENT,
  UPLOAD_LOCAL, UPLOAD_BOTH
}
 
- Public Types inherited from INDI::BaseDevice
enum  INDI_ERROR {
  INDI_DEVICE_NOT_FOUND = -1, INDI_PROPERTY_INVALID = -2, INDI_PROPERTY_DUPLICATED = -3, INDI_DISPATCH_ERROR = -4,
  INDI_DEVICE_NOT_FOUND = -1, INDI_PROPERTY_INVALID = -2, INDI_PROPERTY_DUPLICATED = -3, INDI_DISPATCH_ERROR = -4
}
 
enum  DRIVER_INTERFACE {
  GENERAL_INTERFACE = 0, TELESCOPE_INTERFACE = (1 << 0), CCD_INTERFACE = (1 << 1), GUIDER_INTERFACE = (1 << 2),
  FOCUSER_INTERFACE = (1 << 3), FILTER_INTERFACE = (1 << 4), DOME_INTERFACE = (1 << 5), GPS_INTERFACE = (1 << 6),
  WEATHER_INTERFACE = (1 << 7), AO_INTERFACE = (1 << 8), DUSTCAP_INTERFACE = (1 << 9), LIGHTBOX_INTERFACE = (1 << 10),
  DETECTOR_INTERFACE = (1 << 11), ROTATOR_INTERFACE = (1 << 12), SPECTROGRAPH_INTERFACE = (1 << 13), AUX_INTERFACE = (1 << 15),
  GENERAL_INTERFACE = 0, TELESCOPE_INTERFACE = (1 << 0), CCD_INTERFACE = (1 << 1), GUIDER_INTERFACE = (1 << 2),
  FOCUSER_INTERFACE = (1 << 3), FILTER_INTERFACE = (1 << 4), DOME_INTERFACE = (1 << 5), GPS_INTERFACE = (1 << 6),
  WEATHER_INTERFACE = (1 << 7), AO_INTERFACE = (1 << 8), DUSTCAP_INTERFACE = (1 << 9), LIGHTBOX_INTERFACE = (1 << 10),
  DETECTOR_INTERFACE = (1 << 11), ROTATOR_INTERFACE = (1 << 12), SPECTROGRAPH_INTERFACE = (1 << 13), AUX_INTERFACE = (1 << 15)
}
 The DRIVER_INTERFACE enum defines the class of devices the driver implements. More...
 
enum  INDI_ERROR {
  INDI_DEVICE_NOT_FOUND = -1, INDI_PROPERTY_INVALID = -2, INDI_PROPERTY_DUPLICATED = -3, INDI_DISPATCH_ERROR = -4,
  INDI_DEVICE_NOT_FOUND = -1, INDI_PROPERTY_INVALID = -2, INDI_PROPERTY_DUPLICATED = -3, INDI_DISPATCH_ERROR = -4
}
 
enum  DRIVER_INTERFACE {
  GENERAL_INTERFACE = 0, TELESCOPE_INTERFACE = (1 << 0), CCD_INTERFACE = (1 << 1), GUIDER_INTERFACE = (1 << 2),
  FOCUSER_INTERFACE = (1 << 3), FILTER_INTERFACE = (1 << 4), DOME_INTERFACE = (1 << 5), GPS_INTERFACE = (1 << 6),
  WEATHER_INTERFACE = (1 << 7), AO_INTERFACE = (1 << 8), DUSTCAP_INTERFACE = (1 << 9), LIGHTBOX_INTERFACE = (1 << 10),
  DETECTOR_INTERFACE = (1 << 11), ROTATOR_INTERFACE = (1 << 12), SPECTROGRAPH_INTERFACE = (1 << 13), AUX_INTERFACE = (1 << 15),
  GENERAL_INTERFACE = 0, TELESCOPE_INTERFACE = (1 << 0), CCD_INTERFACE = (1 << 1), GUIDER_INTERFACE = (1 << 2),
  FOCUSER_INTERFACE = (1 << 3), FILTER_INTERFACE = (1 << 4), DOME_INTERFACE = (1 << 5), GPS_INTERFACE = (1 << 6),
  WEATHER_INTERFACE = (1 << 7), AO_INTERFACE = (1 << 8), DUSTCAP_INTERFACE = (1 << 9), LIGHTBOX_INTERFACE = (1 << 10),
  DETECTOR_INTERFACE = (1 << 11), ROTATOR_INTERFACE = (1 << 12), SPECTROGRAPH_INTERFACE = (1 << 13), AUX_INTERFACE = (1 << 15)
}
 The DRIVER_INTERFACE enum defines the class of devices the driver implements. More...
 
- Public Attributes inherited from INDI::CCD
enum INDI::CCD:: { ... }  CCDCapability
 
enum INDI::CCD:: { ... }  CCDCapability
 
- Protected Types inherited from INDI::CCD
enum  { SNOOP_MOUNT, SNOOP_ROTATOR, SNOOP_FILTER_WHEEL, SNOOP_SQM }
 
enum  { UPLOAD_DIR, UPLOAD_PREFIX }
 
enum  { TELESCOPE_PRIMARY, TELESCOPE_GUIDE }
 
enum  { EXPOSURE_LOOP_ON, EXPOSURE_LOOP_OFF }
 
enum  { FITS_OBSERVER, FITS_OBJECT }
 
enum  { SNOOP_MOUNT, SNOOP_ROTATOR, SNOOP_FILTER_WHEEL, SNOOP_SQM }
 
enum  { UPLOAD_DIR, UPLOAD_PREFIX }
 
enum  { TELESCOPE_PRIMARY, TELESCOPE_GUIDE }
 
enum  { EXPOSURE_LOOP_ON, EXPOSURE_LOOP_OFF }
 
enum  { FITS_OBSERVER, FITS_OBJECT }
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
GRAB_NO_CCD 
GRAB_PRIMARY_CCD 
GRAB_GUIDE_CCD 

Constructor & Destructor Documentation

◆ SBIGCCD()

SBIGCCD::SBIGCCD ( )

◆ ~SBIGCCD()

SBIGCCD::~SBIGCCD ( )
virtual

Member Function Documentation

◆ AbortExposure() [1/2]

bool SBIGCCD::AbortExposure ( )
overridevirtual

Abort ongoing exposure.

Returns
true is abort is successful, false otherwise.
Note
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ AbortExposure() [2/2]

int SBIGCCD::AbortExposure ( INDI::CCDChip targetChip)
private

◆ AbortGuideExposure()

bool SBIGCCD::AbortGuideExposure ( )
overridevirtual

Abort ongoing exposure.

Returns
true is abort is successful, false otherwise.
Note
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ ActivateRelay()

int SBIGCCD::ActivateRelay ( ActivateRelayParams arp)
private

◆ AoDelay()

int SBIGCCD::AoDelay ( AODelayParams aodp)
private

◆ AoSetFocus()

int SBIGCCD::AoSetFocus ( AOSetFocusParams )
private

◆ AoTipTilt()

int SBIGCCD::AoTipTilt ( AOTipTiltParams aottp)
private

◆ BcdPixel2double()

double SBIGCCD::BcdPixel2double ( ulong  bcd)
protected

◆ BitIo()

int SBIGCCD::BitIo ( BitIOParams biop,
BitIOResults bior 
)
private

◆ CalcSetpoint()

unsigned short SBIGCCD::CalcSetpoint ( double  temperature)
protected

◆ CalcTemperature()

double SBIGCCD::CalcTemperature ( short  thermistorType,
short  ccdSetpoint 
)
protected

◆ CalcTimeLeft()

float SBIGCCD::CalcTimeLeft ( timeval  start,
float  req 
)
private

◆ CFW()

int SBIGCCD::CFW ( CFWParams CFWp,
CFWResults CFWr 
)
private

◆ CFWConnect()

int SBIGCCD::CFWConnect ( )
private

◆ CFWDisconnect()

int SBIGCCD::CFWDisconnect ( )
private

◆ CFWGoto()

int SBIGCCD::CFWGoto ( CFWResults CFWr,
int  position 
)
private

◆ CFWGotoMonitor()

int SBIGCCD::CFWGotoMonitor ( CFWResults CFWr)
private

◆ CFWInit()

int SBIGCCD::CFWInit ( CFWResults )
private

◆ CFWQuery()

int SBIGCCD::CFWQuery ( CFWResults CFWr)
private

◆ CheckLink()

bool SBIGCCD::CheckLink ( )
private

◆ CloseDevice()

int SBIGCCD::CloseDevice ( )
private

◆ CloseDriver()

int SBIGCCD::CloseDriver ( )
protected

◆ Connect()

bool SBIGCCD::Connect ( )
overridevirtual

Connect to the device.

INDI::DefaultDevice implementation connects to appropriate connection interface (Serial or TCP) governed by connectionMode. If connection is successful, it proceed to call Handshake() function to ensure communication with device is successful. For other communication interface, override the method in the child class implementation

Returns
True if connection is successful, false otherwise

Reimplemented from INDI::DefaultDevice.

◆ Disconnect()

bool SBIGCCD::Disconnect ( )
overridevirtual

Disconnect from device.

Returns
True if successful, false otherwise

Reimplemented from INDI::DefaultDevice.

◆ DumpLines()

int SBIGCCD::DumpLines ( DumpLinesParams dlp)
private

◆ EndExposure()

int SBIGCCD::EndExposure ( EndExposureParams eep)
private

◆ EndReadout()

int SBIGCCD::EndReadout ( EndReadoutParams erp)
private

◆ EstablishLink()

int SBIGCCD::EstablishLink ( )
private

◆ getBinningMode()

int SBIGCCD::getBinningMode ( INDI::CCDChip targetChip,
int &  binning 
)
private

◆ GetCameraID()

const char * SBIGCCD::GetCameraID ( )
private

◆ GetCameraName()

const char * SBIGCCD::GetCameraName ( )
private

◆ GetCameraType()

CAMERA_TYPE SBIGCCD::GetCameraType ( )
inlineprivate

◆ GetCcdInfo()

int SBIGCCD::GetCcdInfo ( GetCCDInfoParams gcp,
void *  gcr 
)
private

◆ getCCDSizeInfo()

int SBIGCCD::getCCDSizeInfo ( int  ccd,
int  rm,
int &  frmW,
int &  frmH,
double &  pixW,
double &  pixH 
)
private

◆ GetCFWSelType()

int SBIGCCD::GetCFWSelType ( )
private

◆ getDefaultName()

const char * SBIGCCD::getDefaultName ( )
overridevirtual
Returns
Default name of the device.

Implements INDI::DefaultDevice.

◆ GetDriverControl()

int SBIGCCD::GetDriverControl ( GetDriverControlParams gdcp,
GetDriverControlResults gdcr 
)
private

◆ GetDriverHandle() [1/2]

int SBIGCCD::GetDriverHandle ( )
inlineprivate

◆ GetDriverHandle() [2/2]

int SBIGCCD::GetDriverHandle ( GetDriverHandleResults gdhr)
private

◆ GetDriverInfo()

int SBIGCCD::GetDriverInfo ( GetDriverInfoParams gdip,
void *  res 
)
private

◆ GetErrorString()

char * SBIGCCD::GetErrorString ( int  err)
private

◆ GetExtendedCCDInfo()

void SBIGCCD::GetExtendedCCDInfo ( )
private

◆ GetFileDescriptor()

int SBIGCCD::GetFileDescriptor ( )
inlineprivate

◆ getFrameType()

int SBIGCCD::getFrameType ( INDI::CCDChip targetChip,
INDI::CCDChip::CCD_FRAME frameType 
)
private

◆ GetLinkStatus() [1/2]

bool SBIGCCD::GetLinkStatus ( )
inlineprivate

◆ GetLinkStatus() [2/2]

int SBIGCCD::GetLinkStatus ( GetLinkStatusResults glsr)
private

◆ GetSelectedCCDChip()

int SBIGCCD::GetSelectedCCDChip ( int &  ccd_request)
private

◆ GetSerialStatus()

int SBIGCCD::GetSerialStatus ( GetSerialStatusResults gssr)
private

◆ getShutterMode()

int SBIGCCD::getShutterMode ( INDI::CCDChip targetChip,
int &  shutter 
)
private

◆ GetStartExposureTimestamp()

std::string SBIGCCD::GetStartExposureTimestamp ( )
inlineprivate

◆ grabImage()

bool SBIGCCD::grabImage ( INDI::CCDChip targetChip)
private

◆ GuideEast()

IPState SBIGCCD::GuideEast ( uint32_t  ms)
overrideprotectedvirtual

Guide easward for ms milliseconds.

Parameters
msDuration in milliseconds.
Note
This function is not implemented in CCD, it must be implemented in the child class
Returns
0 if successful, -1 otherwise.

Reimplemented from INDI::CCD.

◆ GuideNorth()

IPState SBIGCCD::GuideNorth ( uint32_t  ms)
overrideprotectedvirtual

Guide northward for ms milliseconds.

Parameters
msDuration in milliseconds.
Note
This function is not implemented in CCD, it must be implemented in the child class
Returns
True if successful, false otherwise.

Reimplemented from INDI::CCD.

◆ GuideSouth()

IPState SBIGCCD::GuideSouth ( uint32_t  ms)
overrideprotectedvirtual

Guide southward for ms milliseconds.

Parameters
msDuration in milliseconds.
Note
This function is not implemented in CCD, it must be implemented in the child class
Returns
0 if successful, -1 otherwise.

Reimplemented from INDI::CCD.

◆ GuideWest()

IPState SBIGCCD::GuideWest ( uint32_t  ms)
overrideprotectedvirtual

Guide westward for ms milliseconds.

Parameters
msDuration in milliseconds.
Note
This function is not implemented in CCD, it must be implemented in the child class
Returns
0 if successful, -1 otherwise.

Reimplemented from INDI::CCD.

◆ initProperties()

bool SBIGCCD::initProperties ( )
overridevirtual

Initilize properties initial state and value.

The child class must implement this function.

Returns
True if initilization is successful, false otherwise.

Reimplemented from INDI::CCD.

◆ InitVars()

void SBIGCCD::InitVars ( )
protected

◆ IsDeviceOpen()

bool SBIGCCD::IsDeviceOpen ( )
inlineprivate

◆ isExposureDone()

bool SBIGCCD::isExposureDone ( INDI::CCDChip targetChip)

◆ IsFanControlAvailable()

bool SBIGCCD::IsFanControlAvailable ( )
private

◆ ISGetProperties()

void SBIGCCD::ISGetProperties ( const char *  dev)
overridevirtual

define the driver's properties to the client.

Usually, only a minimum set of properties are defined to the client in this function if the device is in disconnected state. Those properties should be enough to enable the client to establish a connection to the device. In addition to CONNECT/DISCONNECT, such properties may include port name, IP address, etc. You should check if the device is already connected, and if this is true, then you must define the remainder of the the properties to the client in this function. Otherwise, the remainder of the driver's properties are defined to the client in updateProperties() function which is called when a client connects/disconnects from a device.

Parameters
devname of the device
Note
This function is called by the INDI framework, do not call it directly. See LX200 Generic driver for an example implementation

Reimplemented from INDI::CCD.

◆ ISNewNumber()

bool SBIGCCD::ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  n 
)
overridevirtual

Process the client newNumber command.

Note
This function is called by the INDI framework, do not call it directly.
Returns
True if any property was successfully processed, false otherwise.

Reimplemented from INDI::CCD.

◆ ISNewSwitch()

bool SBIGCCD::ISNewSwitch ( const char *  dev,
const char *  name,
ISState states,
char *  names[],
int  n 
)
overridevirtual

Process the client newSwitch command.

Note
This function is called by the INDI framework, do not call it directly.
Returns
True if any property was successfully processed, false otherwise.

Reimplemented from INDI::CCD.

◆ ISNewText()

bool SBIGCCD::ISNewText ( const char *  dev,
const char *  name,
char *  texts[],
char *  names[],
int  n 
)
overridevirtual

Process the client newSwitch command.

Note
This function is called by the INDI framework, do not call it directly.
Returns
True if any property was successfully processed, false otherwise.

Reimplemented from INDI::CCD.

◆ loadFirmwareOnOSXifNeeded()

void SBIGCCD::loadFirmwareOnOSXifNeeded ( )
protected

◆ MiscellaneousControl()

int SBIGCCD::MiscellaneousControl ( MiscellaneousControlParams mcp)
private

◆ OpenDevice()

int SBIGCCD::OpenDevice ( uint32_t  devType)
private

◆ OpenDriver()

int SBIGCCD::OpenDriver ( )
protected

◆ PulseOut()

int SBIGCCD::PulseOut ( PulseOutParams pop)
private

◆ QueryCommandStatus()

int SBIGCCD::QueryCommandStatus ( QueryCommandStatusParams qcsp,
QueryCommandStatusResults qcsr 
)
private

◆ QueryFilter()

int SBIGCCD::QueryFilter ( )
overrideprotectedvirtual

Return current filter position.

Implements INDI::FilterInterface.

◆ QueryTemperatureStatus() [1/2]

int SBIGCCD::QueryTemperatureStatus ( QueryTemperatureStatusResults )
private

◆ QueryTemperatureStatus() [2/2]

int SBIGCCD::QueryTemperatureStatus ( bool enabled,
double &  ccdTemp,
double &  setpointT,
double &  power 
)
private

◆ QueryUsb()

int SBIGCCD::QueryUsb ( QueryUSBResults qusbr)
private

◆ ReadOffset()

int SBIGCCD::ReadOffset ( ReadOffsetParams rop,
ReadOffsetResults ror 
)
private

◆ readoutCCD()

int SBIGCCD::readoutCCD ( unsigned short  left,
unsigned short  top,
unsigned short  width,
unsigned short  height,
unsigned short *  buffer,
INDI::CCDChip targetChip 
)
private

◆ ReadoutLine()

int SBIGCCD::ReadoutLine ( ReadoutLineParams rlp,
unsigned short *  results,
bool  subtract 
)
private

◆ RwUsbI2c()

int SBIGCCD::RwUsbI2c ( RWUSBI2CParams rwusbi2cp)
private

◆ saveConfigItems()

bool SBIGCCD::saveConfigItems ( FILE *  fp)
overrideprotectedvirtual

saveConfigItems Save configuration items in XML file.

Parameters
fppointer to file to write to
Returns
True if successful, false otherwise

Reimplemented from INDI::CCD.

◆ SBIGUnivDrvCommand()

int SBIGCCD::SBIGUnivDrvCommand ( PAR_COMMAND  command,
void *  params,
void *  results 
)
private

◆ SelectFilter()

bool SBIGCCD::SelectFilter ( int  position)
overrideprotectedvirtual

Select a new filter position.

Returns
True if operation is successful, false otherwise

Implements INDI::FilterInterface.

◆ SetCameraType()

void SBIGCCD::SetCameraType ( CAMERA_TYPE  val = NO_CAMERA)
inlineprivate

◆ SetDeviceName()

int SBIGCCD::SetDeviceName ( const char *  )
private

◆ SetDriverControl()

int SBIGCCD::SetDriverControl ( SetDriverControlParams sdcp)
private

◆ SetDriverHandle() [1/2]

void SBIGCCD::SetDriverHandle ( int  val = INVALID_HANDLE_VALUE)
inlineprivate

◆ SetDriverHandle() [2/2]

int SBIGCCD::SetDriverHandle ( SetDriverHandleParams sdhp)
private

◆ SetFileDescriptor()

void SBIGCCD::SetFileDescriptor ( int  val = -1)
inlineprivate

◆ SetLinkStatus()

void SBIGCCD::SetLinkStatus ( bool  val = false)
inlineprivate

◆ SetStartExposureTimestamp()

void SBIGCCD::SetStartExposureTimestamp ( const char *  p)
inlineprivate

◆ SetTemperature()

int SBIGCCD::SetTemperature ( double  temperature)
overrideprotectedvirtual

Set CCD temperature.

Parameters
temperatureCCD temperature in degrees celcius.
Returns
0 or 1 if setting the temperature call to the hardware is successful. -1 if an error is encountered. Return 0 if setting the temperature to the requested value takes time. Return 1 if setting the temperature to the requested value is complete.
Note
Upon returning 0, the property becomes BUSY. Once the temperature reaches the requested value, change the state to OK.
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ SetTemperatureRegulation() [1/2]

int SBIGCCD::SetTemperatureRegulation ( SetTemperatureRegulationParams strp)
private

◆ SetTemperatureRegulation() [2/2]

int SBIGCCD::SetTemperatureRegulation ( double  temp,
bool  enable = true 
)
private

◆ setupParams()

bool SBIGCCD::setupParams ( )
private

◆ StartExposure() [1/3]

bool SBIGCCD::StartExposure ( float  duration)
overridevirtual

Start exposing primary CCD chip.

Parameters
durationDuration in seconds
Returns
true if OK and exposure will take some time to complete, false on error.
Note
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ StartExposure() [2/3]

int SBIGCCD::StartExposure ( StartExposureParams2 sep)
private

◆ StartExposure() [3/3]

int SBIGCCD::StartExposure ( INDI::CCDChip targetChip,
double  duration 
)
private

◆ StartGuideExposure()

bool SBIGCCD::StartGuideExposure ( float  duration)
overridevirtual

Start exposing guide CCD chip.

Parameters
durationDuration in seconds
Returns
true if OK and exposure will take some time to complete, false on error.
Note
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ StartReadout()

int SBIGCCD::StartReadout ( StartReadoutParams srp)
private

◆ TimerHit()

void SBIGCCD::TimerHit ( )
overrideprotectedvirtual

Callback function to be called once SetTimer duration elapses.

Reimplemented from INDI::DefaultDevice.

◆ TxSerialBytes()

int SBIGCCD::TxSerialBytes ( TXSerialBytesParams txsbp,
TXSerialBytesResults txsbr 
)
private

◆ UpdateCCDBin()

bool SBIGCCD::UpdateCCDBin ( int  hor,
int  ver 
)
overrideprotectedvirtual

CCD calls this function when CCD Binning needs to be updated in the hardware.

Derived classes should implement this function

Parameters
horHorizontal binning.
verVertical binning.
Returns
true is CCD chip update is successful, false otherwise.
Note
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ UpdateCCDFrame()

bool SBIGCCD::UpdateCCDFrame ( int  x,
int  y,
int  w,
int  h 
)
overrideprotectedvirtual

CCD calls this function when CCD Frame dimension needs to be updated in the hardware.

Derived classes should implement this function

Parameters
xSubframe X coordinate in pixels.
ySubframe Y coordinate in pixels.
wSubframe width in pixels.
hSubframe height in pixels.
Note
(0,0) is defined as most left, top pixel in the subframe.
Returns
true is CCD chip update is successful, false otherwise.
Note
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ UpdateCCDFrameType()

bool SBIGCCD::UpdateCCDFrameType ( INDI::CCDChip::CCD_FRAME  fType)
overrideprotectedvirtual

CCD calls this function when CCD frame type needs to be updated in the hardware.

Parameters
fTypeFrame type
Returns
true is CCD chip update is successful, false otherwise.
Note
It is not mandatory to implement this function in the child class. The CCD hardware layer may either set the frame type when this function is called, or (optionally) before an exposure is started.

Reimplemented from INDI::CCD.

◆ updateFrameProperties()

bool SBIGCCD::updateFrameProperties ( INDI::CCDChip targetChip)
private

◆ UpdateGuiderBin()

bool SBIGCCD::UpdateGuiderBin ( int  hor,
int  ver 
)
overrideprotectedvirtual

CCD calls this function when Guide head binning is updated by the client.

Derived classes should implement this function

Parameters
horHorizontal binning.
verVertical binning.
Returns
true is CCD chip update is successful, false otherwise.
Note
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ UpdateGuiderFrame()

bool SBIGCCD::UpdateGuiderFrame ( int  x,
int  y,
int  w,
int  h 
)
overrideprotectedvirtual

CCD calls this function when Guide head frame dimension is updated by the client.

Derived classes should implement this function

Parameters
xSubframe X coordinate in pixels.
ySubframe Y coordinate in pixels.
wSubframe width in pixels.
hSubframe height in pixels.
Note
(0,0) is defined as most left, top pixel in the subframe.
Returns
true is CCD chip update is successful, false otherwise.
Note
This function is not implemented in CCD, it must be implemented in the child class

Reimplemented from INDI::CCD.

◆ updateProperties()

bool SBIGCCD::updateProperties ( )
overridevirtual

updateProperties is called whenever there is a change in the CONNECTION status of the driver.

This will enable the driver to react to changes of switching ON/OFF a device. For example, a driver may only define a set of properties after a device is connected, but not before.

Returns
True if update is successful, false otherwise.

Reimplemented from INDI::CCD.

◆ updateTemperature()

void SBIGCCD::updateTemperature ( )

◆ updateTemperatureHelper()

void SBIGCCD::updateTemperatureHelper ( void *  p)
static

◆ UsbAdControl()

int SBIGCCD::UsbAdControl ( USBADControlParams usbadcp)
private

◆ void ::ISGetProperties()

SBIGCCD::void ::ISGetProperties ( const char *  dev)
private

◆ void ::ISNewBLOB()

SBIGCCD::void ::ISNewBLOB ( const char *  dev,
const char *  name,
int  sizes[],
int  blobsizes[],
char *  blobs[],
char *  formats[],
char *  names[],
int  n 
)
private

◆ void ::ISNewNumber()

SBIGCCD::void ::ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  num 
)
private

◆ void ::ISNewSwitch()

SBIGCCD::void ::ISNewSwitch ( const char *  dev,
const char *  name,
ISState states,
char *  names[],
int  num 
)
private

◆ void ::ISNewText()

SBIGCCD::void ::ISNewText ( const char *  dev,
const char *  name,
char *  texts[],
char *  names[],
int  num 
)
private

◆ void ::ISSnoopDevice()

SBIGCCD::void ::ISSnoopDevice ( XMLEle root)
private

Member Data Documentation

◆ ccdTemp

double SBIGCCD::ccdTemp
private

◆ CoolerN

INumber SBIGCCD::CoolerN[1]
private

◆ CoolerNP

INumberVectorProperty SBIGCCD::CoolerNP
private

◆ CoolerS

ISwitch SBIGCCD::CoolerS[2]
private

◆ CoolerSP

ISwitchVectorProperty SBIGCCD::CoolerSP
private

◆ device

DEVICE SBIGCCD::device
private

◆ ExposureRequest

float SBIGCCD::ExposureRequest
private

◆ ExpStart

struct timeval SBIGCCD::ExpStart
private

◆ FanStateS

ISwitch SBIGCCD::FanStateS[2]
private

◆ FanStateSP

ISwitchVectorProperty SBIGCCD::FanStateSP
private

◆ FilterConnectionS

ISwitch SBIGCCD::FilterConnectionS[2]
private

◆ FilterConnectionSP

ISwitchVectorProperty SBIGCCD::FilterConnectionSP
private

◆ FilterProdcutT

IText SBIGCCD::FilterProdcutT[2] {}
private

◆ FilterProdcutTP

ITextVectorProperty SBIGCCD::FilterProdcutTP
private

◆ FilterTypeS

ISwitch SBIGCCD::FilterTypeS[MAX_CFW_TYPES]
private

◆ FilterTypeSP

ISwitchVectorProperty SBIGCCD::FilterTypeSP
private

◆ GuideExposureRequest

float SBIGCCD::GuideExposureRequest
private

◆ GuideExpStart

struct timeval SBIGCCD::GuideExpStart
private

◆ hasFilterWheel

bool SBIGCCD::hasFilterWheel
private

◆ hasGuideHead

bool SBIGCCD::hasGuideHead
private

◆ imageBuffer

unsigned short* SBIGCCD::imageBuffer
private

◆ imageFrameType

INDI::CCDChip::CCD_FRAME SBIGCCD::imageFrameType
private

◆ IpT

IText SBIGCCD::IpT[1]
private

◆ IpTP

ITextVectorProperty SBIGCCD::IpTP
private

◆ isColor

bool SBIGCCD::isColor
private

◆ m_camera_type

CAMERA_TYPE SBIGCCD::m_camera_type
protected

◆ m_drv_handle

int SBIGCCD::m_drv_handle
protected

◆ m_fd

int SBIGCCD::m_fd
protected

◆ m_link_status

bool SBIGCCD::m_link_status
protected

◆ m_start_exposure_timestamp

std::string SBIGCCD::m_start_exposure_timestamp
protected

◆ name

char SBIGCCD::name[MAXINDINAME]
private

◆ PortS

ISwitch SBIGCCD::PortS[8]
private

◆ PortSP

ISwitchVectorProperty SBIGCCD::PortSP
private

◆ ProductInfoT

IText SBIGCCD::ProductInfoT[2] {}
private

◆ ProductInfoTP

ITextVectorProperty SBIGCCD::ProductInfoTP
private

◆ SBIGFilterMap

int SBIGCCD::SBIGFilterMap[MAX_CFW_TYPES]
private

◆ SBIGPortMap

int SBIGCCD::SBIGPortMap[8]
private

◆ sim

bool SBIGCCD::sim
private

◆ TemperatureRequest

float SBIGCCD::TemperatureRequest
private

◆ timerID

int SBIGCCD::timerID
private

◆ useExternalTrackingCCD

bool SBIGCCD::useExternalTrackingCCD
private

The documentation for this class was generated from the following files: