This repository has been archived by the owner on Mar 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibcam90.h
87 lines (75 loc) · 2.81 KB
/
libcam90.h
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
Cam86 DIY CCD Camera Library
See :
http://www.astroclub.kiev.ua/forum/index.php?topic=28929.0
http://www.cloudynights.com/topic/497530-diy-astro-ccd-16-bit-color-6mpx-camera/
http://astroccd.org/
Copyright (C) 2017 - Gilles Le Maréchal - Gilmanov Rim - Sergiy Vakulenko - Michael "Toups"
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 3 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, see <http://www.gnu.org/licenses/>
*/
#ifndef __LIBCAM90_H__
#define __LIBCAM90_H__
#define BRA 20
#define BRB 5
#define CAM90_LATENCYA 20
#define CAM90_LATENCYB 20
#define CAM90_TIMERA 10000//Changed
#define CAM90_TIMERB 100
#ifdef __cplusplus
extern "C" {
#endif
bool cameraConnect ( void );
bool cameraDisconnect ( void );
bool colomn_1(void);
bool cameraSetGain ( int val );
bool cameraSetOffset ( int val );
bool cameraSetColor (int val);
int cameraStartExposure ( int bin,int StartX,int StartY,int NumX,int NumY, double Duration, bool light );
bool cameraStopExposure ( void );
int16_t cameraGetPower ( void );
bool CameraSetTemp ( float temp );
float CameraGetTemp ( void );
float CameraGetTempDHT ( void );
float CameraGetHum ( void );
bool CameraCoolingOn ( void );
bool CameraCoolingOff ( void );
bool cameraGetImageReady ( void );
uint16_t cameraGetImageXY ( int i, int j );
char *cameraGetImage(void);
bool cameraSetBaudrate ( int val );
bool cameraSetBaudrateA ( int val );
bool cameraSetBaudrateB ( int val );
bool cameraSetLibftdiTimerAR ( int tt );
bool cameraSetLibftdiTimerAW ( int tt );
bool cameraSetLibftdiTimerBR ( int tt );
bool cameraSetLibftdiTimerBW ( int tt );
bool cameraSetLibftdiLatA ( int ll );
bool cameraSetLibftdiLatB ( int ll );
bool cameraSetCoolingStartingPowerPercentage(int val);
bool cameraSetCoolingMaximumPowerPercentage(int val);
float cameraGetSetTemp (void);
bool cameraSetReadingTime(int val);
bool cameraSetCoolerDuringReading(bool val);
float cameraGetCoolerPower(void);
int cameraGetCameraState(void);
int cameraGetError(void);
int cameraGetFirmwareVersion(void);
int cameraGetLLDriverVersion (void);
bool cameraSetBiasBeforeExposure(bool val);
int cameraGetCoolingStartingPowerPercentage (void);
int cameraGetCoolingMaximumPowerPercentage (void);
bool cameraSetPIDproportionalGain(float val);
double cameraGetPIDproportionalGain (void);
#ifdef __cplusplus
}
#endif
#endif