2 * Jenopt JD11 Camera Driver
3 * Copyright © 1999-2001 Marcus Meissner <marcus@jet.franken.de>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef _JD11_SERIAL_H
22 #define _JD11_SERIAL_H
24 #include <gphoto2/gphoto2.h>
25 #include <gphoto2/gphoto2-port.h>
27 extern int jd11_index_reader(GPPort *port, CameraFilesystem *fs, GPContext *context);
28 extern int jd11_get_image_full(Camera *camera,CameraFile *file,int nr,int raw, GPContext *context);
29 extern int jd11_erase_all(GPPort *port);
30 extern int jd11_ping(GPPort *port);
31 extern int jd11_float_query(GPPort *port);
32 extern int jd11_select_index(GPPort *port);
33 extern int jd11_select_image(GPPort *port, int nr);
34 extern int jd11_set_bulb_exposure(GPPort *port, int nr);
35 extern int jd11_set_rgb(GPPort *port, float red, float green, float blue);
36 extern int jd11_get_rgb(GPPort *port, float *red, float *green, float *blue);
39 #define IMGHEADER "P6\n# gPhoto2 JD11 thumbnail image\n640 480 255\n"
40 #define THUMBHEADER "P5\n# gPhoto2 JD11 thumbnail image\n64 48 255\n"