summaryrefslogtreecommitdiff
path: root/camlibs/panasonic/dc1000.h
blob: c8f36961ced1169cb69df7e128271ff66c472dc1 (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
/*
	$Id$

	Copyright © 2000 Mariusz Zynel <mariusz@mizar.org> (gPhoto port)
	Copyright © 2000 Fredrik Roubert <roubert@df.lth.se> (idea)
	Copyright © 1999 Galen Brooks <galen@nine.com> (DC1580 code)

	This file is part of the gPhoto project and may only be used,  modified,
	and distributed under the terms of the gPhoto project license,  COPYING.
	By continuing to use, modify, or distribute  this file you indicate that
	you have read the license, understand and accept it fully.
	
	THIS  SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY  OF ANY KIND,
	EITHER  EXPRESSED OR IMPLIED.  IN NO EVENT WILL THE COPYRIGHT  HOLDER BE
	LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE.

	Note:
	
	This is a Panasonic DC1000 camera gPhoto library header file.
*/	

/* DC1000 command codes */

#define	DSC1_CMD_SEND_DATA	0x00
#define	DSC1_CMD_GET_MODEL	0x02
#define	DSC1_CMD_SET_BAUD	0x04
#define	DSC1_CMD_GET_INDEX	0x07
#define	DSC1_CMD_CONNECT	0x10
#define	DSC1_CMD_DELETE		0x11
#define	DSC1_CMD_PREVIEW	0x14
#define	DSC1_CMD_SET_RES	0x15
#define	DSC1_CMD_SELECT		0x1a
#define	DSC1_CMD_GET_DATA	0x1e
#define	DSC1_CMD_RESET		0x1f

/* DC1000 response codes */

#define DSC1_RSP_DATA		0x00
#define DSC1_RSP_OK		0x01
#define DSC1_RSP_MODEL		0x03
#define DSC1_RSP_INDEX		0x08
#define DSC1_RSP_IMGSIZE	0x1d

/* DC1000 response buffer offsets, 0 - first byte in buffer */

#define DSC1_BUF_SIZE		12
#define DSC1_BUF_CMD		16
#define DSC1_BUF_DATA		17

/* End of dc1000.h */