1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*
QHYCCD SDK
Copyright (c) 2014 QHYCCD.
All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59
Temple Place - Suite 330, Boston, MA 02111-1307, USA.
The full GNU General Public License is included in this distribution in the
file called LICENSE.
*/
#include "qhy5iii183base.h"
#ifndef _QHY183_
#define _QHY183_
#define SINGLE_FRAME_USB_PACKET_SIZE (2048 * 20)
class QHY183:public QHY5III183BASE {
public:
QHY183();
~QHY183();
uint32_t BeginSingleExposure(qhyccd_handle *pDevHandle);
uint32_t GetSingleFrame(qhyccd_handle *pDevHandle, uint32_t *pW, uint32_t *pH, uint32_t *pBpp, uint32_t *pChannels, uint8_t *pImgData);
// uint32_t BeginLiveExposure(qhyccd_handle *pDevHandle);
// uint32_t StopLiveExposure(qhyccd_handle *pDevHandle);
uint32_t GetLiveFrame(qhyccd_handle *pDevHandle, uint32_t *pW, uint32_t *pH, uint32_t *pBpp, uint32_t *pChannels, uint8_t *pImgData);
uint32_t IsChipHasFunction(CONTROL_ID id);
uint32_t GetChipMemoryLength();
private:
double pllratio,oldpllratio;
double oldtotalcamred2green,totalcamred2green,oldtotalcamgreen,totalcamgreen,oldtotalcamblue2green,totalcamblue2green,oldcamgain;
uint8_t oldcamddr;
uint8_t oldreg08,reg08,oldreg01,reg01;
uint8_t oldlockframe,lockframe;
uint8_t oldampv_onff,ampv_onff;
uint8_t forcestop;
uint16_t vwinpos,oldvwinpos,vwidcut,oldvwidcut;
uint16_t chiproiy,oldchiproiy,chiproiysize,oldchiproiysize;
uint32_t hmax_ref,vmax_ref;
uint32_t vmax,hmax,oldvmax,oldhmax;
uint32_t framelength,oldframelength;
uint32_t oldchipoutputsizex,oldchipoutputsizey,oldchipoutputbits;
uint32_t patchvnumber,oldpatchvnumber;
uint32_t oldcamoffset;
uint32_t oldusbtraffic;
uint32_t oldampv_min,ampv_min,oldampv_max,ampv_max;
uint32_t ApproxDDR, ApproxDDR_Target;
int32_t shr,svr,spl,oldshr,oldsvr,oldspl;
};
#endif
|