/*--------------Camera constants------------------*/
// camera commands
#define CMD_PREFIX 0xAA
#define CMD_INITIAL 0x01
#define CMD_GETPICTURE 0x04
#define CMD_SNAPSHOT 0x05
#define CMD_PACKAGESIZE 0x06
#define CMD_BAUDRATE 0x07
#define CMD_RESET 0x08
#define CMD_POWEROFF 0x09
#define CMD_DATA 0x0A
#define CMD_SYNC 0x0D
#define CMD_ACK 0x0E
#define CMD_NAK 0x0F
#define CMD_LIGHTFREQ 0x13

// camera constants
#define COLOR_GRAY_2 1
#define COLOR_GRAY_4 2
#define COLOR_GRAY_8 3
#define COLOR_RGB_12 5
#define COLOR_RGB_16 6
#define COLOR_JPEG 7

#define PREVIEW_R80x60 1
#define PREVIEW_R160x120 3

#define JPEG_R80x64 1
#define JPEG_R160x128 3
#define JPEG_R320x240 5
#define JPEG_R640x480 7

#define TYPE_SNAPSHOT 1
#define TYPE_PREVIEW 2
#define TYPE_JPEG 5

#define SNAPSHOT_COMPRESSED 0
#define SNAPSHOT_RAW 1

#define FREQ_50HZ 0
#define FREQ_60HZ 1

#define RESET_SYSTEM 0
#define RESET_STATES 1
