Debian Codegraph @

sxccd.h

raw symbols SCIP
1 /*
2 Starlight Xpress CCD INDI Driver
3
4 Copyright (c) 2012-2013 Cloudmakers, s. r. o.
5 All Rights Reserved.
6
7 Bayer Support Added by Karl Rees, Copyright(c) 2019
8
9 Code is based on SX INDI Driver by Gerry Rozema and Jasem Mutlaq
10 Copyright(c) 2010 Gerry Rozema.
11 Copyright(c) 2012 Jasem Mutlaq.
12 All rights reserved.
13
14 This program is free software; you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by the Free
16 Software Foundation; either version 2 of the License, or (at your option)
17 any later version.
18
19 This program is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
22 more details.
23
24 You should have received a copy of the GNU General Public License along with
25 this program; if not, write to the Free Software Foundation, Inc., 59
26 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28 The full GNU General Public License is included in this distribution in the
29 file called LICENSE.
30 */
31
32 #pragma once
33
34 #include "sxccdusb.h"cxx . . $ `<file>/sxccdusb.h`/
35
36 #include <indiccd.h>
37
38 void ExposureTimerCallbackcxx . . $ ExposureTimerCallback(5d22bdacc48458e8).(void *p);
39 void GuideExposureTimerCallbackcxx . . $ GuideExposureTimerCallback(5d22bdacc48458e8).(void *p);
40 void WEGuiderTimerCallbackcxx . . $ WEGuiderTimerCallback(5d22bdacc48458e8).(void *p);
41 void NSGuiderTimerCallbackcxx . . $ NSGuiderTimerCallback(5d22bdacc48458e8).(void *p);
42
43 class SXCCDcxx . . $ SXCCD# : public INDIcxx . . $ INDI/::CCDcxx . . $ INDI/CCD#
44 {
45 private:
46 DEVICEcxx . . $ `sxccdusb.h:115:9`! devicecxx . . $ SXCCD#device.;
47 HANDLEcxx . . $ `sxccdusb.h:116:9`! handlecxx . . $ SXCCD#handle.;
48 unsigned short modelcxx . . $ SXCCD#model.;
49 char namecxx . . $ SXCCD#name.[32];
50 char *evenBufcxx . . $ SXCCD#evenBuf., *oddBufcxx . . $ SXCCD#oddBuf.;
51 long wipeDelaycxx . . $ SXCCD#wipeDelay.;
52 ISwitchcxx . . $ ISwitch# CoolerScxx . . $ SXCCD#CoolerS.[2];
53 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# CoolerSPcxx . . $ SXCCD#CoolerSP.;
54 ISwitchcxx . . $ ISwitch# ShutterScxx . . $ SXCCD#ShutterS.[2];
55 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# ShutterSPcxx . . $ SXCCD#ShutterSP.;
56 // ISwitch BayerS[2];
57 // ISwitchVectorProperty BayerSP;
58 float TemperatureRequestcxx . . $ SXCCD#TemperatureRequest.;
59 float TemperatureReportedcxx . . $ SXCCD#TemperatureReported.;
60 float ExposureTimeLeftcxx . . $ SXCCD#ExposureTimeLeft.;
61 float GuideExposureTimeLeftcxx . . $ SXCCD#GuideExposureTimeLeft.;
62 int ExposureTimerIDcxx . . $ SXCCD#ExposureTimerID.;
63 int GuideExposureTimerIDcxx . . $ SXCCD#GuideExposureTimerID.;
64 int WEGuiderTimerIDcxx . . $ SXCCD#WEGuiderTimerID.;
65 int NSGuiderTimerIDcxx . . $ SXCCD#NSGuiderTimerID.;
66 bool DidFlushcxx . . $ SXCCD#DidFlush.;
67 bool DidLatchcxx . . $ SXCCD#DidLatch.;
68 bool DidGuideLatchcxx . . $ SXCCD#DidGuideLatch.;
69 bool InGuideExposurecxx . . $ SXCCD#InGuideExposure.;
70 char GuideStatuscxx . . $ SXCCD#GuideStatus.;
71
72 protected:
73 const char *getDefaultNamecxx . . $ SXCCD#getDefaultName(33a1f659e94feb42).();
74 bool initPropertiescxx . . $ SXCCD#initProperties(c9857a73d68e59ba).();
75 void SetupParmscxx . . $ SXCCD#SetupParms(49f6e7a06ebc5aa8).();
76 bool updatePropertiescxx . . $ SXCCD#updateProperties(c9857a73d68e59ba).();
77 bool UpdateCCDFramecxx . . $ SXCCD#UpdateCCDFrame(a1642a0ee405ca20).(int x, int y, int w, int h);
78 bool UpdateCCDBincxx . . $ SXCCD#UpdateCCDBin(cf9ef193275fa6d8).(int hor, int ver);
79 bool Connectcxx . . $ SXCCD#Connect(c9857a73d68e59ba).();
80 bool Disconnectcxx . . $ SXCCD#Disconnect(c9857a73d68e59ba).();
81 int SetTemperaturecxx . . $ SXCCD#SetTemperature(620b9ac44d2573a6).(double temperature);
82 bool StartExposurecxx . . $ SXCCD#StartExposure(4e2b510d3867ab27).(float n);
83 bool AbortExposurecxx . . $ SXCCD#AbortExposure(c9857a73d68e59ba).();
84 bool StartGuideExposurecxx . . $ SXCCD#StartGuideExposure(4e2b510d3867ab27).(float n);
85 bool AbortGuideExposurecxx . . $ SXCCD#AbortGuideExposure(c9857a73d68e59ba).();
86 void TimerHitcxx . . $ SXCCD#TimerHit(49f6e7a06ebc5aa8).();
87 void ExposureTimerHitcxx . . $ SXCCD#ExposureTimerHit(49f6e7a06ebc5aa8).();
88 void GuideExposureTimerHitcxx . . $ SXCCD#GuideExposureTimerHit(49f6e7a06ebc5aa8).();
89 void WEGuiderTimerHitcxx . . $ SXCCD#WEGuiderTimerHit(49f6e7a06ebc5aa8).();
90 void NSGuiderTimerHitcxx . . $ SXCCD#NSGuiderTimerHit(49f6e7a06ebc5aa8).();
91 //bool saveConfigItems(FILE *fp);
92 IPStatecxx . . $ IPState# GuideWestcxx . . $ SXCCD#GuideWest(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# ms);
93 IPStatecxx . . $ IPState# GuideEastcxx . . $ SXCCD#GuideEast(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# ms);
94 IPStatecxx . . $ IPState# GuideNorthcxx . . $ SXCCD#GuideNorth(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# ms);
95 IPStatecxx . . $ IPState# GuideSouthcxx . . $ SXCCD#GuideSouth(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# ms);
96
97 public:
98 bool HasCoolercxx . . $ SXCCD#HasCooler.;
99 bool HasShuttercxx . . $ SXCCD#HasShutter.;
100 bool HasST4Portcxx . . $ SXCCD#HasST4Port.;
101 bool HasGuideHeadcxx . . $ SXCCD#HasGuideHead.;
102 bool HasColorcxx . . $ SXCCD#HasColor.;
103 SXCCDcxx . . $ SXCCD#SXCCD(4fa924671469d135).(DEVICEcxx . . $ `sxccdusb.h:115:9`! device, const char *name);
104 virtual ~cxx . . $ SXCCD#`~SXCCD`(49f6e7a06ebc5aa8).SXCCDcxx . . $ SXCCD#();
105 void debugTriggeredcxx . . $ SXCCD#debugTriggered(b45ddcbc8423892c).(bool enable);
106 void simulationTriggeredcxx . . $ SXCCD#simulationTriggered(b45ddcbc8423892c).(bool enable);
107 void ISGetPropertiescxx . . $ SXCCD#ISGetProperties(85c52e162fed56f9).(const char *dev);
108 bool ISNewSwitchcxx . . $ SXCCD#ISNewSwitch(e439c05866add404).(const char *dev, const char *name, ISStatecxx . . $ ISState# *states, char *names[], int n);
109
110 friend void ::ExposureTimerCallbackcxx . . $ ExposureTimerCallback(5d22bdacc48458e8).(void *p);
111 friend void ::GuideExposureTimerCallbackcxx . . $ GuideExposureTimerCallback(5d22bdacc48458e8).(void *p);
112 friend void ::WEGuiderTimerCallbackcxx . . $ WEGuiderTimerCallback(5d22bdacc48458e8).(void *p);
113 friend void ::NSGuiderTimerCallbackcxx . . $ NSGuiderTimerCallback(5d22bdacc48458e8).(void *p);
114 friend void ::ISGetPropertiescxx . . $ ISGetProperties(85c52e162fed56f9).(const char *dev);
115 friend void ::ISNewSwitchcxx . . $ ISNewSwitch(61a6b63729612065).(const char *dev, const char *name, ISStatecxx . . $ ISState# *states, char *names[], int num);
116 friend void ::ISNewTextcxx . . $ ISNewText(305f560580b7f0f5).(const char *dev, const char *name, char *texts[], char *names[], int num);
117 friend void ::ISNewNumbercxx . . $ ISNewNumber(4e61198878ed5c81).(const char *dev, const char *name, double values[], char *names[], int num);
118 friend void ::ISNewBLOBcxx . . $ ISNewBLOB(8f9c2f8f6f10ed41).(const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[],
119 char *formats[], char *names[], int n);
120 friend void ::ISSnoopDevicecxx . . $ ISSnoopDevice(dc1c2aa52e0f1fe7).(XMLEle *root);
121 };