inc/flexCAM.h File Reference

Flex-CAM Serial Driver. More...

#include "flexSerial.h"
#include "flexUtils.h"

Go to the source code of this file.

Data Structures

class  FlexCAM
 Flex-CAM Serial Driver. More...

Defines

#define FLEX_DEFAULT_SERIAL_PORT   "com1"
Flex Driver Params
Flex driver configuration register values

#define FLEX_CAM_GRAY2   0x1
#define FLEX_CAM_GRAY4   0x2
#define FLEX_CAM_GRAY8   0x3
#define FLEX_CAM_RGB12   0x5
#define FLEX_CAM_RGB16   0x6
#define FLEX_CAM_JPEG   0x7
#define FLEX_CAM_SMALL   0x1
#define FLEX_CAM_MED   0x3
#define FLEX_CAM_LARGE   0x5
Error Codes
#define FLEX_ERR_SERIAL_CLOSED   0
#define FLEX_ERR_SERIAL_OPEN   1
#define FLEX_ERR_SERIAL_READ   2
#define FLEX_ERR_SERIAL_WRITE   3
#define FLEX_ERR_BAD_ACK   4
#define FLEX_ERR_BAD_COLOR_TYPE   5
#define FLEX_ERR_BAD_RES_TYPE   6
#define FLEX_ERR_NOT_INIT   7
#define FLEX_ERR_NOT_CONFIG   8
#define FLEX_ERR_SERIAL_TIMEOUT   9
#define FLEX_ERR_JPEG_DECOMPRESS   10


Detailed Description

Flex-CAM Serial Driver.

Author:
Nastasi Christian
Date:
2007-12-17

Define Documentation

#define FLEX_DEFAULT_SERIAL_PORT   "com1"

Default Serial Port Name

#define FLEX_ERR_BAD_ACK   4

Bad Ack from Flex

#define FLEX_ERR_BAD_COLOR_TYPE   5

Bad Color Type

#define FLEX_ERR_BAD_RES_TYPE   6

Bad Resolution Type

#define FLEX_ERR_JPEG_DECOMPRESS   10

Jpeg decompression error

#define FLEX_ERR_NOT_CONFIG   8

Not Configured

#define FLEX_ERR_NOT_INIT   7

Not Initializated

#define FLEX_ERR_SERIAL_CLOSED   0

Serial Not Opened

#define FLEX_ERR_SERIAL_OPEN   1

Serial Opening Error

#define FLEX_ERR_SERIAL_READ   2

Serial Read Error

#define FLEX_ERR_SERIAL_TIMEOUT   9

Serial I/O Timeout

#define FLEX_ERR_SERIAL_WRITE   3

Serial Write Error


Generated on Wed Apr 23 00:11:08 2008 for Flex CAM Serial by  doxygen 1.5.4