⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 api_def.h

📁 CAM-TOOL 是高效率高质量的模具制造的最好CAM解决方案。在当今的 Windows 操作环境里
💻 H
📖 第 1 页 / 共 5 页
字号:
    I43_MEM_RESIDENT                = (short )0x0008,
    I43_MEM_RESOURCE                = (short )0x0010,
        I43_MEM_USB                                             = (short )0x0020,
        I43_MEM_FS                                              = (short )0x0080

} I43_MEM_TYPE;


/* ****************************************************************** */
/*                     Image Attributes definitions                   */
/* ****************************************************************** */
#define I43_ATTR_NONE               0x00
#define I43_ATTR_READ_ONLY          0x01
#define I43_ATTR_HIDDEN             0x02
#define I43_ATTR_SYSTEM             0x04
#define I43_ATTR_VOL_LABEL          0x08
#define I43_ATTR_DIRECTORY          0x10
#define I43_ATTR_ARCHIVE            0x20


/* ****************************************************************** */
/*                            GPIO definitions                        */
/* ****************************************************************** */

typedef enum {
    I43_XLGPIO                      = 0x00,
    I43_DVGPIO                      = 0x01,
    I43_FAGPIO                      = 0x02,
    I43_AUDGPIO                     = 0x03,
    I43_FDGPIO                      = 0x04,
    I43_FCGPIO                      = 0x05,
    I43_VIDGPIO                     = 0x06,
    I43_CCDGPIO                     = 0x07,
    I43_UARTGPIO                    = 0x08
} I43_GPIO_GROUP_TYPE;

typedef enum {
    I43_GPIO_FUNCTIONAL             = 0x00,
    I43_GPIO_GPIO                   = 0x40,
    I43_GPIO_MAP_COUNTER            = 0x80,
    I43_GPIO_CLEAR_COUNTER          = 0xC0,
} I43_GPIO_FUNC_TYPE;

typedef enum {
    I43_GPIO_COUNTER_GCNT1          = 0x00,
    I43_GPIO_COUNTER_GCNT2          = 0x10,
    I43_GPIO_COUNTER_CCPWM1         = 0x20,
    I43_GPIO_COUNTER_CCPWM2         = 0x30,
} I43_GPIO_COUNTER_TYPE;

typedef enum {
    I43_COUNTER_RESET               = 0x00,
    I43_COUNTER_PAUSE               = 0x01,
    I43_COUNTER_SINGLE              = 0x02,
    I43_COUNTER_CYCLIC              = 0x03,
} I43_COUNTER_MODE;

typedef enum {
    I43_GPIO_CONFIG_OUT             = 0x00,
    I43_GPIO_CONFIG_IN              = 0x80
} I43_GPIO_CONFIG_TYPE;

typedef enum {
    I43_GPIO_PIN                    = 0x00,
    I43_GPIO_GROUP                  = 0x80
} I43_GPIO_CLUSTERING_TYPE;


/* ****************************************************************** */
/*                    Graphic functions definitions                   */
/* ****************************************************************** */
typedef enum {
    I43GR_GDA_ATTR_TEXT_COLOR       = 0x00,
    I43GR_GDA_ATTR_BRUSH_COLOR      = 0x01,
    I43GR_GDA_ATTR_FONT_MAP         = 0x02,
    I43GR_GDA_ATTR_FONT_SIZE        = 0x03,
    I43GR_GDA_ATTR_FRAME_THICKNESS  = 0x04,
        I43GR_GDA_ATTR_BITMAP_TRANSPARENT_COLOR = 0x05
} I43GR_GDA_ATTR_TYPE;

typedef enum {
    I43GR_SHAPE_RECT                = 0x00,
    I43GR_SHAPE_RECT_FRAME          = 0x01
} I43GR_SHAPE_TYPE;

typedef enum {
    I43GR_OBJECT_BITMAP             = 0x00,
    I43GR_OBJECT_ICON               = 0x01,
    I43GR_OBJECT_JPEG               = 0x02,
    I43GR_OBJECT_TEXT               = 0x03,
    I43GR_OBJECT_BITMAP_TRANSPARENT = 0x04,
    I43GR_OBJECT_DCF_OBJECT         = 0x05,
} I43GR_OBJECT_TYPE;


/* ****************************************************************** */
/*                    OSD functions definitions                       */
/* ****************************************************************** */
typedef enum {
    I43OSD_ATTR_SHOW                = 0x00,
    I43OSD_ATTR_CENTER              = 0x01,
    I43OSD_ATTR_SCREEN_SIZE         = 0x02,
    I43OSD_ATTR_BITS_PER_PIXEL      = 0x03,
    I43OSD_ATTR_TEXT_COLOR          = 0x04,
    I43OSD_ATTR_TEXT_CLUT           = 0x05,
    I43OSD_ATTR_FONT_MAP            = 0x06,
    I43OSD_ATTR_TEXT_SIZE           = 0x07,
    I43OSD_ATTR_TEXT_BK_MODE        = 0x08,
    I43OSD_ATTR_BRUSH_COLOR         = 0x09,
    I43OSD_ATTR_FRAME_THICKNESS     = 0x0A,
    I43OSD_ATTR_PROPORTIONAL_MODE   = 0x0B,
    I43OSD_ATTR_TEXT_SPACE          = 0x0C,
    I43OSD_ATTR_BITMAP_COLOR        = 0x0D,    
    I43OSD_ATTR_BITMAP_COLOR_2      = 0x0E    
} I43OSD_ATTR_TYPE;

typedef enum {
    I43OSD_OBJECT_BITMAP        = 0x00,
    I43OSD_OBJECT_ICON          = 0x01,
    I43OSD_OBJECT_RECT          = 0x02,
    I43OSD_OBJECT_RECT_FRAME    = 0x03

} I43OSD_OBJECT_TYPE;

#define    I43OSD_FLAG_LEFT     0x00000001L
#define    I43OSD_FLAG_RIGHT    0x00000002L
#define    I43OSD_FLAG_CENTER   0x00000004L
#define    I43OSD_FLAG_ERASE    0x00000008L
#define    I43OSD_FLAG_TOP      0x00000010L
#define    I43OSD_FLAG_BOTTOM   0x00000020L
#define    I43OSD_FLAG_VCENTER  0x00000040L



/* ****************************************************************** */
/*                        Timer API definitions                       */
/* ****************************************************************** */
typedef enum {
    I43TID_VOPM                     = 0x01,
    I43TID_HCE_ISR_CYCLIC           = 0x02,
    I43TID_HCE_ISR_SINGLE           = 0x03,
    I43TID_ADC                      = 0x05
} I43_TIMER_ID;

typedef enum {
    I43TIC_STOP                     = 0x00,
    I43TIC_START                    = 0x10
} I43_TIMER_COMMAND;


/* ****************************************************************** */
/*                               Definitions                          */
/* ****************************************************************** */

/* The buffer size for chunk read and write operations. */
#define I43_CHUNK_SIZE              0x0020

/* ****************************************************************** */
/*                          API structures                            */
/* ****************************************************************** */

typedef struct _THUMBNAIL_CONFIGURATION
{
    I43_UINT3 bThumbPerLine;        /* Number of thumbnails per line.                    */
    I43_UINT3 bThumbPerColumn;      /* Number of thumbnails per Column.                  */
    I43_UINT8 bFirstHGap;           /* The Horizontal gap size to the first thumbnail.   */
    I43_UINT8 bHGap;                /* The Horizontal gap size between thumbnails.       */
    I43_UINT8 bLastHGap;            /* The Horizontal gap size after the last thumbnail. */
    I43_UINT8 bFirstVGap;           /* The Vertical gap size to the first thumbnail.     */
    I43_UINT8 bVGap;                /* The Vertical gap  between thumbnail.              */
    I43_UINT8 bLastVGap;            /* The Vertical gap size after the last thumbnail.   */

} THUMBNAIL_CONFIGURATION;


typedef struct _HL_RECT_CONFIGURATION
{
    I43_HL_RECT_ID bRectID;         /*  bRectID - The current rect index (range 0-1).                     */
    I43_HL_BF      bBlendFactor;    /*  bBlendFactor - The current rect Blend Factor.                     */
                                    /*      I43HL_RECT_OSD_ONLY        = no blending (100% OSD).          */
                                    /*      I43HL_RECT_OSD_IMAGE_BLEND = 50% blending.                    */
    I43_UINT2      bInteriorColor;  /*  bInteriorColor - Color index of the interior color.               */
    I43_UINT2      bFrameColor;     /*  bFrameColor - Color index of the framework color.                 */
    I43_UINT8      bWidth;          /*  bWidth - The frame horizontal thickness, in pairs of pixels.      */
    I43_UINT8      bHeight;         /*  bHeight - The frame vertical thickness, in field lines.           */

} HL_RECT_CONFIGURATION;


typedef struct _HL_RECT_SETTINGS
{
    I43_HL_RECT_ID bRectID;         /*  bRectID - The current rect index (range 0-1).                     */
    I43_UINT16     wStartX;         /*  wStartX - The horizontal part of the upper left coordinate        */
                                    /*            of the rectangle, with respect to the active            */
                                    /*            display window.                                         */
    I43_UINT16     wStartY;         /*  wStartY - The vertical part of the upper left coordinate.         */
    I43_UINT16     wWidth;          /*  wWidth  - The horizontal length of the rectangle. must be even.   */
    I43_UINT16     wHeight;         /*  wHeight - The vertical length of the rectangle. must be even.     */

} HL_RECT_SETTINGS;


 #define ATT_FILE_NAME_SIZE 14
 #define SIZEOF_TO_WORDS_FACTOR 2

typedef struct _FILE_ATTRIB
{
    char           name[ATT_FILE_NAME_SIZE];
    unsigned short attributes;
    long int       fileSize;
    unsigned short updateTime;
    unsigned short updateDate;

} FILE_ATTRIB;


typedef struct _FILE_ATTRIB_EXT
{
    unsigned short wSuccess;
    FILE_ATTRIB    FileAttr;

} FILE_ATTRIB_EXT;


typedef struct _IMAGE_ATTRIBUTES
{
    I43_UINT16 wFlags;            /* Bit[15]:    Picture locked indication. 0-not locked, 1-locked.                 */
                                  /* Bit[14]:      Audio Exists. 0 - no, 1 - yes.                                     */
                                  /* Bit[13]:      Audio locked. 0- no, 1 - yes. Audio exists overrides audio locked. */
                                  /* Bit[12]:      Image was captured with flash. 0- no, 1-yes.                       */
                                  /* Bit[11]:      Thumbnail compressed. 0- no, 1-yes.                                */
                                  /* Bit[10]:      Captured By COACH (native file). 0- no, 1-yes.                     */
                                  /* Bits[9-8]:  Reserved.                                                          */
                                  /* Bits[7:0]:  image compressed bits / pixel.                                     */
    I43_UINT16 wImageHSize;       /* captured image horizontal size.             */
    I43_UINT16 wImageVSize;       /* captured image vertical size.               */
    I43_UINT16 wThumbnailSizeMS;  /* MS Word of thumbnail image size (in bytes). */
    I43_UINT16 wThumbnailSizeLS;  /* LS Word of thumbnail image size (in bytes). */
    I43_UINT16 wThumbnailHSize;   /* thumbnail horizontal size.                  */
    I43_UINT16 wThumbnailVSize;   /* thumbnail vertical size.                    */

} IMAGE_ATTRIBUTES;


typedef struct _I43_INPUT_IMAGE_CONFIG
{
    I43_MODE   bMode;             /* The COACH Operation Mode that the parameters refer to.  */
    I43_UINT16 wStartX;           /* First pixel of the input image with respect to the      */
                                  /* effective edge of HIS.                                  */
    I43_UINT16 wStartY;           /* First line of the input image (field in Interlaced      */
                                  /* sensors) with respect to the effective edge of VIS.     */
    I43_UINT16 wSizeX;            /* Number of pixels in one line of the input image.        */
    I43_UINT16 wSizeY;            /* Number of lines of the input image.                     */
    I43_UINT8  bHScaler;          /* VISM H scaler value.                                    */
    I43_UINT8  bVScaler;          /* VISM V scaler value.                                    */
                                  /* 0 - no scaling;                                         */
                                  /* 1 - no scaling;                                         */
                                  /* 2 - scale by 2;                                         */
                                  /*   .                                                     */
                                  /*   .                                                     */
                                  /* 8 - scale by 8.                                         */
                                  /* Values higher than 8 are reserved for both scalers.     */

} I43_INPUT_IMAGE_CONFIG;


typedef enum _I43_EDIT_IMAGE_OPERATION
{
        I43_EDIT_IMAGE_OPEN               = 0x0,
        I43_EDIT_IMAGE_CROP                        ,
        I43_EDIT_IMAGE_SCALE               ,
        I43_EDIT_IMAGE_COMPRESS            ,
        I43_EDIT_IMAGE_SAVE_RESOURCE   ,
        I43_EDIT_IMAGE_DRAW_PIC            ,
		I43_EDIT_IMAGE_ROTATE			   ,

} I43_EDIT_IMAGE_OPERATION;

typedef struct _I43_EDIT_IMAGE_CONFIG_OPERATION
{
        I43_EDIT_IMAGE_OPERATION bOperation;
        I43_UINT16                               puwParam[4];
} I43_EDIT_IMAGE_CONFIG_OPERATION;


#endif /* _API_DEF_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -