moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / indi / fli / libfli-camera.h
blob2d4f2b998c06278629b2246b716b52ea1b8d9ce7
1 /*
3 Copyright (c) 2002 Finger Lakes Instrumentation (FLI), L.L.C.
4 All rights reserved.
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions
8 are met:
10 Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
13 Redistributions in binary form must reproduce the above
14 copyright notice, this list of conditions and the following
15 disclaimer in the documentation and/or other materials
16 provided with the distribution.
18 Neither the name of Finger Lakes Instrumentation (FLI), LLC
19 nor the names of its contributors may be used to endorse or
20 promote products derived from this software without specific
21 prior written permission.
23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 POSSIBILITY OF SUCH DAMAGE.
36 ======================================================================
38 Finger Lakes Instrumentation, L.L.C. (FLI)
39 web: http://www.fli-cam.com
40 email: support@fli-cam.com
44 #ifndef _LIBFLI_CAMERA_H_
45 #define _LIBFLI_CAMERA_H_
47 typedef struct {
48 int x; /* X coordinate */
49 int y; /* Y coordinate */
50 } point_t;
52 typedef struct {
53 point_t ul; /* Upper-left */
54 point_t lr; /* Lower-right */
55 } area_t;
57 /* CCD Parameter list */
58 typedef struct
60 short index;
61 const char *model;
62 area_t array_area;
63 area_t visible_area;
64 double fillfactor;
65 double pixelwidth;
66 double pixelheight;
67 } fliccdinfo_t;
69 typedef struct {
70 long readto;
71 long writeto;
72 long dirto;
73 fliccdinfo_t ccd;
75 /* Acquisistion parameters */
76 area_t image_area;
77 long vbin;
78 long hbin;
79 long vflushbin;
80 long hflushbin;
81 long exposure;
82 long expdur;
83 long expmul;
84 long frametype;
85 long flushes;
86 long bitdepth;
87 long exttrigger;
88 long exttriggerpol;
90 double tempslope;
91 double tempintercept;
93 long grabrowcount;
94 long grabrowcounttot;
95 long grabrowindex;
96 long grabrowwidth;
97 long grabrowbatchsize;
98 long grabrowbufferindex;
99 long flushcountbeforefirstrow;
100 long flushcountafterlastrow;
102 unsigned short *gbuf;
103 } flicamdata_t;
105 extern const fliccdinfo_t knowndev[];
107 long fli_camera_open(flidev_t dev);
108 long fli_camera_close(flidev_t dev);
109 long fli_camera_command(flidev_t dev, int cmd, int argc, ...);
111 #endif /* _LIBFLI_CAMERA_H_ */