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

📄 api_def.h

📁 CAM-TOOL 是高效率高质量的模具制造的最好CAM解决方案。在当今的 Windows 操作环境里
💻 H
📖 第 1 页 / 共 5 页
字号:
/* ****************************************************************** */
/*                     High Light Rectangles ID's                     */
/* ****************************************************************** */
typedef enum _I43_HL_RECT_ID
{
    I43HL_RECT_ID_0                 = (char )0x00,
    I43HL_RECT_ID_1                 = (char )0x01

} I43_HL_RECT_ID;


/* ****************************************************************** */
/*                 High Light Rectangles Blend Factor                 */
/* ****************************************************************** */
typedef enum _I43_HL_BF
{
    I43HL_RECT_OSD_ONLY             = (short )0x0000,
    I43HL_RECT_OSD_IMAGE_BLEND      = (short )0x4000

} I43_HL_BF;


/* ****************************************************************** */
/*                           Flash Polarity                           */
/* ****************************************************************** */
typedef enum _I43_FLASH_POLARITY
{
    I43FP_LOW                       = (short )0x0000,
    I43FP_HIGH                      = (short )0x0001

} I43_FLASH_POLARITY;


/* ****************************************************************** */
/*                         Flash Enable Flag                          */
/* ****************************************************************** */
#define I43FL_EABLE                 (short )0x0001
#define I43FL_DISABLE               (short )0x0000


/* ****************************************************************** */
/*                         Flash Operation Mode                       */
/* ****************************************************************** */
typedef enum _I43_FLASH_OP_MODE
{
    I43FOM_OFF                      = (char )0x00,
    I43FOM_AUTO                     = (char )0x01,
    I43FOM_FORCE_CAPTURE            = (char )0x02,

} I43_FLASH_OP_MODE;


/* ****************************************************************** */
/*                       Auto Exposure Operation Mode                 */
/* ****************************************************************** */
typedef enum _I43_AE_MODE
{
    I43AE_MASTER                    = (char )0x00,
    I43AE_ECC                       = (char )0x01,
    I43AE_ECONLY                    = (char )0x02

} I43_AE_MODE;

/* ****************************************************************** */
/*                       AGC Operation Mode                           */
/* ****************************************************************** */
typedef enum _I43_AGC_MODE
{
    I43AGC_AUTO                    = (char )0x00,
    I43AGC_MANUAL                  = (char )0x01,
    I43AGC_OFF                     = (char )0x02

} I43_AGC_MODE;

/* ****************************************************************** */
/*                       Playback Clip commands                       */
/* ****************************************************************** */
typedef enum _I43_PLAYBACK_CLIP_CMD
{
    I43PCC_PAUSE_AVI                = (char )0x01,
    I43PCC_RESUME_AVI               = (char )0x02,
    I43PCC_SLOW_MOTION_AVI          = (char )0x04,
    I43PCC_NEXT_IMAGE_AVI           = (char )0x05,
        I43PCC_PAUSE_WAV_OR_MP3         = (char )0x07,
    I43PCC_RESUME_WAV_OR_MP3        = (char )0x08,
        I43PCC_SEEK_TIME_WAV            = (char )0x09,
        I43PCC_SEEK_START_WAV           = (char )0x0A,
        I43PCC_SEEK_END_WAV             = (char )0x0B,
    I43PCC_STOP_WAV_OR_MP3          = (char )0x0C

} I43_PLAYBACK_CLIP_CMD;


/* ****************************************************************** */
/*                           UART baud rates                          */
/* ****************************************************************** */
typedef enum _I43_BAUD_RATE
{
    I43CBR_9600                = (char )0x00,
    I43CBR_14400               = (char )0x01,
    I43CBR_19200               = (char )0x02,
    I43CBR_38400               = (char )0x03,
    I43CBR_57600               = (char )0x04,
    I43CBR_115200              = (char )0x05

} I43_BAUD_RATE;


/* ****************************************************************** */
/*                           USB modes                                */
/* ****************************************************************** */
typedef enum _I43_USB_MODE
{
    I43USB_COACH_WDM_MODE      = (char )0x00,
    I43USB_CBI_STORAGE_MODE    = (char )0x03,
    I43USB_PTP_MODE            = (char )0x04,
    I43USB_MS_BULK_ONLY_MODE   = (char )0x05,

} I43_USB_MODE;

/* ****************************************************************** */
/*                        EXIF Header fields                          */
/* ****************************************************************** */
typedef enum _I43_EXIF_ID
{
    I43EXIF_MAKER_NOTE              = (char )0x00,
    I43EXIF_APERTURE_VALUE          = (char )0x01,
    I43EXIF_EXPOSURE_BIAS           = (char )0x02,
    I43EXIF_FLASH                   = (char )0x03,
    I43EXIF_ISO_SPEED_RATING        = (char )0x04,
    I43EXIF_EXPOSURE_TIME           = (char )0x05,
    I43EXIF_F_NUMBER                = (char )0x06,
    I43EXIF_LIGHT_SOURCE            = (char )0x07,
    I43EXIF_SHUTTER_SPEED           = (char )0x08,

} I43_EXIF_ID;


/* ****************************************************************** */
/*                         HCE definitions                            */
/* ****************************************************************** */
typedef enum _I43_BUTTON_CFG_TYPE
{
    I43BT_BUTTON_MASK               = (char )0x02,
    I43BT_PRESS_DELAY               = (char )0x03,
    I43BT_ADC_REPEAT_DELAY          = (char )0x05,
    I43BT_ADC_REPEAT_MASK           = (char )0x06,
    I43BT_GPIO_REPEAT_DELAY         = (char )0x07,
    I43BT_GPIO_REPEAT_MASK          = (char )0x08,
        I43BT_GPIO_REPEAT_POLARITY      = (char )0x09

} I43_BUTTON_CFG_TYPE;

/* ****************************************************************** */
/*                     Storage Media Definitions                      */
/* ****************************************************************** */

/* ****************************************************************** */
/*           Storage Media directory attributes definitions           */
/* ****************************************************************** */
#define I43_DIR_OPEN_EXIST          (char )0x00
#define I43_DIR_CREATE              (char )0x02
#define I43_DIR_SET_ONLY            (char )0x04


/* ****************************************************************** */
/*              Storage Media Operation Scope Definitions             */
/* ****************************************************************** */
#define I43_SCOPE_FILE              (char )0x00
#define I43_SCOPE_DIR               (char )0x08
#define I43_SCOPE_DCF_OBJECT        (char )0x10


/* ****************************************************************** */
/*              Storage Media Operation Types Definitions             */
/* ****************************************************************** */
#define I43_FILE_OP_UNLOCK          (char )0x00
#define I43_FILE_OP_LOCK            (char )0x20
#define I43_FILE_OP_ERASE           (char )0x40
#define I43_FILE_OP_COPY            (char )0x60
#define I43_FILE_OP_MOVE            (char )0x80
#define I43_FILE_OP_COPY_INTERDRIVE (char )0xA0
#define I43_FILE_OP_DELETE_ALL      (char )0xC0

/* ****************************************************************** */
/*                 Get Storage Media Status Definitions               */
/* ****************************************************************** */
#define I43_STORAGE_MEDIA_STATUS     (char )0x00
#define I43_STORAGE_MEDIA_GEOMETRY   (char )0x01

/* ****************************************************************** */
/*                          Audio Loop Flag                           */
/* ****************************************************************** */
#define I43_AUDIO_LOOP_ON           (short )0x0001
#define I43_AUDIO_LOOP_OFF          (short )0x0000

/* ****************************************************************** */
/*                          Audio Record/Play Flag                    */
/* ****************************************************************** */
#define I43_AUDIO_RECORD            (short )0x0000
#define I43_AUDIO_PLAY_WAV          (short )0x0001
#define I43_AUDIO_PLAY_MP3          (short )0x0002

/* ****************************************************************** */
/*                          Memory Type Flag                          */
/* ****************************************************************** */
#define I43_RESIDENT_MEM            (unsigned char )0x00
#define I43_EXTENDED_MEM            (unsigned char )0x01


/* ****************************************************************** */
/*                             File Types                             */
/* ****************************************************************** */
#define I43_JPEG                    (short )0x0001
#define I43_TIFF                    (short )0x0002
#define I43_WAV                     (short )0x0004
#define I43_AVI                     (short )0x0008


/* ****************************************************************** */
/*                          DPOF Commands                             */
/* ****************************************************************** */
#define I43_DPOF_QUERY              (unsigned char )0x00
#define I43_DPOF_ADD                (unsigned char )0x01
#define I43_DPOF_REMOVE             (unsigned char )0x02


/* ****************************************************************** */
/*                           Confirm Store                            */
/* ****************************************************************** */
#define I43_CSM_DELETE              (unsigned char )0x00
#define I43_CSM_STORE               (unsigned char )0x01


/* ****************************************************************** */
/*                          Config Capture                            */
/* ****************************************************************** */
#define I43_CC_HOLD_TIME            (unsigned char )0x00
#define I43_CC_RECORD_TYPE          (unsigned char )0x01
#define I43_CC_PRE_DELAY            (unsigned char )0x02
#define I43_CC_CLIP_TIME            (unsigned char )0x03
#define I43_CC_DATA_STAMP           (unsigned char )0x04
#define I43_CC_CLIP_RATE            (unsigned char )0x05
#define I43_CC_AUDIO_COMP_MODE      (unsigned char )0x06


/* ****************************************************************** */
/*               Storage Media operation return values                */
/* ****************************************************************** */
/* The file does not exist, although the directory exist. */
#define I43_FL_FILE_NOT_FOUND       (short )0x0002
/* The directory specified does not exist. */
#define I43_FL_PATH_NOT_FOUND       (short )0x0003
/* The file is read only. */
#define I43_FL_NO_WRITE_ACCESS      (short )0x0005
/* The storage media is formated in an unknown format. */
#define I43_FL_NON_FAT_FORMAT       (short )0x000A
/* The storage media is formated in an unknown format. */
#define I43_FL_FORMAT_NOT_SUPPORTED (short )0x000B
/* Returned by I43_GetFirstFileAttribute or I43_GetNextFileAttribute
   when there are no more files in the directory scaned.              */
#define I43_FL_NO_MORE_FILES        (short )0x0012
/* It is not possible to write to the flash media. */
#define I43_FL_WRITE_PROTECT        (short )0x0013
/* Specified drive is invalid. */
#define I43_FL_BAD_DRIVE_HANDLE     (short )0x0014
/* Problems were found in the format of the media. */
#define I43_FL_BAD_FORMAT           (short )0x0017
#define I43_FL_UNKNOWN_MEDIA        (short )0x001A
/* FAT format is damaged. */
#define I43_FL_SECTOR_NOT_FOUND     (short )0x001B
/* FAT format is damaged. */
#define I43_FL_INVALID_FAT_CHAIN    (short )0x0035
/* The storage media was not mounted. */
#define I43_FL_NOT_MOUNTED          (short )0x0037
/* The specified file is NOT a directory. */
#define I43_FL_NOT_A_DIRECTORY      (short )0x0039
/* The specified directory to be erased is not empty. */
#define I43_FL_DIRECTORY_NOT_EMPTY  (short )0x003A
/* The specified file is a directory. */
#define I43_FL_FILE_IS_A_DIRECTORY  (short )0x003B

#define I43_FL_DCF_VALIDATE_FAIL    (short )0x0060

/* ****************************************************************** */
/*                    Set/Get memory supported types                  */
/* ****************************************************************** */
typedef enum _I43_MEM_TYPE
{
    I43_MEM_DRAM                    = (short )0x0001,
    I43_MEM_DMEM                    = (short )0x0004,

⌨️ 快捷键说明

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