1 /****************************************************************/
2 /* spca50x-registers.h - Gphoto2 library for cameras with a */
3 /* Sunplus spca50x chip */
5 /* Copyright © 2002, 2003 Till Adam */
7 /* Author: Till Adam <till@adam-lilienthal.de> */
9 /* This library is free software; you can redistribute it */
10 /* and/or modify it under the terms of the GNU Library General */
11 /* Public License as published by the Free Software Foundation; */
12 /* either version 2 of the License, or (at your option) any */
15 /* This library is distributed in the hope that it will be */
16 /* useful, but WITHOUT ANY WARRANTY; without even the implied */
17 /* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
18 /* PURPOSE. See the GNU Library General Public License for */
21 /* You should have received a copy of the GNU Library General */
22 /* Public License along with this library; if not, write to the */
23 /* Free Software Foundation, Inc., 59 Temple Place - Suite 330, */
24 /* Boston, MA 02111-1307, USA. */
25 /****************************************************************/
27 #ifndef __SPCA50X_REGISTERS_H__
28 #define __SPCA50X_REGISTERS_H__
31 /* ---- Register ---- */
32 #define SPCA50X_REG_CamMode 0x2000
33 /* ---- CamMode Value ---- */
36 SPCA50X_CamMode_Idle = 0,
37 SPCA50X_CamMode_DSC = 1,
38 SPCA50X_CamMode_VideoClip = 2,
39 SPCA50X_CamMode_PcCamera = 3,
40 SPCA50X_CamMode_Upload = 4
44 #define SPCA50X_REG_PbSrc 0x2301
45 /* ---- PbSrc Value ---- */
46 #define SPCA50X_DramUsb 0x13
48 #define SPCA50X_REG_AutoPbSize 0x2306
50 #define SPCA50X_REG_DramType 0x2705
52 #define SPCA50X_REG_ImageType 0x270c
54 #define SPCA50X_REG_SdramSizeL 0x2710 /* Size [7:0] */
55 #define SPCA50X_REG_SdramSizeM 0x2711 /* Size [15:8] */
56 #define SPCA50X_REG_SdramSizeH 0x2712 /* Size [21:16] */
58 #define SPCA50X_REG_VlcAddressL 0x2713
59 #define SPCA50X_REG_VlcAddressM 0x2714
60 #define SPCA50X_REG_VlcAddressH 0x2715
62 #define SPCA50X_REG_MemWidthL 0x2720
63 #define SPCA50X_REG_MemWidthH 0x2721
65 #define SPCA50X_REG_MemHeightL 0x2722
66 #define SPCA50X_REG_MemHeightH 0x2723
68 #define SPCA50X_REG_Trigger 0x27a1
69 /* ---- Trigger bit Value ---- */
70 #define SPCA50X_TrigDramFifo 2
72 #define SPCA50X_REG_JFIF 0x2884
74 #define SPCA50X_REG_CompSizeL 0x2887
75 #define SPCA50X_REG_CompSizeM 0x2888
76 #define SPCA50X_REG_CompSizeH 0x2889
78 #define SPCA50X_REG_I2C_wIndex 0x2a08
79 #define SPCA50X_REG_I2C_wValue 0x2a10
80 #define SPCA50X_REG_I2C_rValue 0x2a30
81 #define SPCA50X_REG_I2C_rStatus 0x2a06
84 #endif /* __SPCA50X_REGISTERS_H__ */