forked from gehelem/indi_cam86_ccd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libcam86.h
64 lines (55 loc) · 2.1 KB
/
libcam86.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
/*
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 library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LIBCAM86_H__
#define __LIBCAM86_H__
#define BRA 20
#define BRB 5
#define CAM86_LATENCYA 2
#define CAM86_LATENCYB 2
#define CAM86_TIMERA 30
#define CAM86_TIMERB 10
#ifdef __cplusplus
extern "C" {
#endif
bool cameraConnect ( void );
bool cameraDisconnect ( void );
bool cameraSetGain ( int val );
bool cameraSetOffset ( int val );
int cameraStartExposure ( int bin,int StartX,int StartY,int NumX,int NumY, double Duration, bool light );
bool cameraStopExposure ( void );
bool CameraSetTemp ( int temp );
float CameraGetTemp ( void );
bool CameraCoolingOn ( void );
bool CameraCoolingOff ( void );
bool cameraGetImageReady ( void );
uint16_t cameraGetImage ( int i, int j );
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 );
#ifdef __cplusplus
}
#endif
#endif