summaryrefslogtreecommitdiff
path: root/camlibs/casio/casio-qv-commands.h
blob: 6302632372443f2769299a4566871d7aaaefee9d (plain)
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
/* casio-qv-commands.h
 *
 * Copyright © 2001 Lutz Müller
 *
 * 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 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., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __CASIO_QV_COMMANDS_H__
#define __CASIO_QV_COMMANDS_H__

#include <gphoto2-library.h>

int QVping     (Camera *camera);

typedef enum {
	QV_SPEED_115200 =  3,
	QV_SPEED_57600  =  7,
	QV_SPEED_38400  = 11,
	QV_SPEED_19200  = 22,
	QV_SPEED_9600   = 46
} QVSpeed;

int QVsetspeed (Camera *camera, QVSpeed speed);

/* Battery level in volts */
int QVbattery  (Camera *camera, float *battery);

int QVrevision (Camera *camera, long int *revision);
int QVnumpic   (Camera *camera);

int QVdelete   (Camera *camera, int n);
int QVpicattr  (Camera *camera, int n, unsigned char *attr);
int QVshowpic  (Camera *camera, int n);
int QVsetpic   (Camera *camera);
int QVsize     (Camera *camera, long int *size);

int QVgetthumb (Camera *camera, unsigned char **data, unsigned long int *size);
int QVgetpic   (Camera *camera, unsigned char **data, unsigned long int *size);

int QVcapture  (Camera *camera);

#endif /* __CASIO_QV_COMMANDS_H__ */