1 /*
2 	$Id$
3 
4 	Copyright 2000 Mariusz Zynel <mariusz@mizar.org> (gPhoto port)
5 	Copyright 2000 Fredrik Roubert <roubert@df.lth.se> (idea)
6 	Copyright 1999 Galen Brooks <galen@nine.com> (DC1580 code)
7 
8 	This file is part of the gPhoto project and may only be used,  modified,
9 	and distributed under the terms of the gPhoto project license,  COPYING.
10 	By continuing to use, modify, or distribute  this file you indicate that
11 	you have read the license, understand and accept it fully.
12 
13 	THIS  SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY  OF ANY KIND,
14 	EITHER  EXPRESSED OR IMPLIED.  IN NO EVENT WILL THE COPYRIGHT  HOLDER BE
15 	LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE.
16 
17 	Note:
18 
19 	This is a Panasonic DC1580 camera gPhoto library header file.
20 */
21 
22 /* DC1580 command codes */
23 
24 #define	DSC2_CMD_SET_BAUD	0x04
25 #define	DSC2_CMD_SEND_DATA	0x05
26 #define	DSC2_CMD_GET_INDEX	0x07
27 #define	DSC2_CMD_CONNECT	0x10
28 #define	DSC2_CMD_DELETE		0x11
29 #define	DSC2_CMD_PREVIEW	0x14
30 #define	DSC2_CMD_SET_SIZE	0x15
31 #define	DSC2_CMD_THUMB		0x16
32 #define	DSC2_CMD_SELECT		0x1a
33 #define	DSC2_CMD_GET_DATA	0x1e
34 #define	DSC2_CMD_RESET		0x1f
35 
36 /* DC1580 response codes */
37 
38 #define DSC2_RSP_OK		0x01
39 #define DSC2_RSP_MODEL		0x03
40 #define DSC2_RSP_DATA		0x05
41 #define DSC2_RSP_INDEX		0x08
42 #define DSC2_RSP_IMGSIZE	0x1d
43 
44 /* DC1580 response buffer offsets, 0 - first byte in buffer */
45 
46 #define DSC2_BUF_BASE		0
47 #define DSC2_BUF_SEQ 		1
48 #define DSC2_BUF_SEQC		2
49 #define DSC2_BUF_CMD		3
50 #define DSC2_BUF_DATA		4
51 #define DSC2_BUF_CSUM		14
52 
53 /* End of dc1580.h */
54