1 /* 2 * Copyright 1999/2000 by Henning Zabel <henning@uni-paderborn.de> 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software Foundation, 16 * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 */ 18 19 /* 20 * Definition of Commands and useful structs. 21 */ 22 23 #ifndef DEFINE_MDC800_SPEC_H 24 #define DEFINE_MDC800_SPEC_H 25 26 27 #define ANSWER_COMMIT 0xbb 28 /* Commands */ 29 30 #define COMMAND_BEGIN 0x55 31 #define COMMAND_END 0xAA 32 33 #define COMMAND_INIT_CONNECT 0x00 34 #define COMMAND_GET_SYSTEM_STATUS 0x01 35 #define COMMAND_TAKE_PICTURE 0x02 36 #define COMMAND_SET_TARGET 0x03 37 #define COMMAND_DELETE_IMAGE 0x04 38 39 #define COMMAND_GET_IMAGE 0x05 40 #define COMMAND_GET_IMAGE_SIZE 0x07 41 #define COMMAND_GET_THUMBNAIL 0x09 42 43 #define COMMAND_CHANGE_RS232_BAUD_RATE 0x0b 44 #define COMMAND_GET_NUM_IMAGES 0x0d 45 46 #define COMMAND_SET_PLAYBACK_MODE 0x12 47 #define COMMAND_SET_CAMERA_MODE 0x16 48 #define COMMAND_PLAYBACK_IMAGE 0x17 49 50 #define COMMAND_SET_FLASHMODE_AUTO 0x18 51 #define COMMAND_SET_FLASHMODE_ON 0x19 52 #define COMMAND_SET_FLASHMODE_OFF 0x1A 53 54 #define COMMAND_GET_WB_AND_EXPOSURE 0x20 55 #define COMMAND_SET_EXPOSURE 0x21 56 #define COMMAND_SET_WB 0x22 57 58 #define COMMAND_GET_REMAIN_FREE_IMAGE_COUNT 0x25 59 #define COMMAND_SET_LCD_ON 0x2a 60 #define COMMAND_SET_LCD_OFF 0x2b 61 #define COMMAND_SET_IMAGE_QUALITY 0x2d 62 #define COMMAND_SET_MENU_ON 0x2f 63 #define COMMAND_SET_MENU_OFF 0x30 64 65 #define COMMAND_SET_STORAGE_SOURCE 0x32 66 #define COMMAND_DISCONNECT 0x34 67 68 #define COMMAND_GET_IMAGE_QUALITY 0x49 69 #define COMMAND_SET_EXPOSURE_MODE 0x50 70 #define COMMAND_GET_EXPOSURE_MODE 0x51 71 72 #endif 73