logo资料库

VC0706Firmware开发库用户手册 V1_20.pdf

第1页 / 共225页
第2页 / 共225页
第3页 / 共225页
第4页 / 共225页
第5页 / 共225页
第6页 / 共225页
第7页 / 共225页
第8页 / 共225页
资料共225页,剩余部分请下载后查看
VC0706 Firmware 开发库 用户手册 Version 1.20 2008-6-23 Notes1: The information is subject to change without notice. Before using this document, please confirm that this is the latest version. Notes2: Not all products and/or types are available in every country. Please check with a Vimicro sales representative for availability and additional information. Page 1 of 225
VC0706 Firmware SDK 用户手册 V1.20 Vimicro Corporation Important Notice All rights about this document belong to Vimicro Corporation (here after, refer as Vimicro). All rights are reserved. Vimicro and its subsidiaries reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. Customers should contact Vimicro’s sales department before purchasing the product described in this document. All products are sold subject to Vimicro’s terms and conditions of sale supplied at the time of order acknowledgment. Vimicro does not warrant or represent that any license, either explicit or implied, is granted under any Vimicro patent right, copyright, mask work right, or other Vimicro intellectual property right relating to any combination, machine, or process in which Vimicro products or services are used. Information published by Vimicro regarding third-party products or services does not constitute a license from Vimicro to use such products or service or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from Vimicro under the patents or other intellectual property of Vimicro. Vimicro semiconductor devices are intended for standard uses (such as office equipment, computers, industrial/communications/measuring equipment, and personal/home equipment). Customers using semiconductor devices for special applications (including aerospace, nuclear, military and medical applications) in which a failure or malfunction might endanger life or limb and which require extremely high reliability must contact our Sales Department first. If damage is caused by such use of our semiconductor devices without first consulting our Sales Department, Vimicro will not assume any responsibility for the loss. The contents of this document must not be reprinted or duplicated without written permission of Vimicro. Information and circuit diagrams in this document are only examples of device application. They are not intended to be used in actual equipment. Vimicro accepts no responsibility for infringement of patents or other rights owned by third parties caused by use of the information and circuit diagrams in this document. Reproduction of information in Vimicro data books or data sheets is permissible only if preproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. Vimicro is not responsible or liable for such altered documentation. Resale of Vimicro products or services with statements different from or beyond the parameters stated by Vimicro for that product or service voids all explicit and any implied warranties for the associated Vimicro product or service and is an unfair and deceptive business practice. Vimicro is not responsible or liable for any such statements. 地址: 北京市海淀区学院路 35 号世宁大厦 15 层 邮编: 100083 电话: 86-10-68948888 传真: 86-10-68944075 15/F Shining Tower No.35, Xueyuan Road, Haidian District, Beijing, China Postal Code: 100083 Tel: 86-10-68948888 Fax: 86-10-68944075 Vimicro Copyright© 1999-2006 www.vimicro.com Page 2 of 225
VC0706 Firmware SDK 用户手册 V1.20 Vimicro Corporation Revision Table Date Rev. 2008.3.30 1.00 2008-6-23 1.20 Author 孙涛 孙涛 Content of revision Approval 创建VC0706 Firmware 开发库 1.00版本客户手册 增加了对CCIR656输入的支持 修改了部分驱动函数 增加了系统功能说明和开发指南 地址: 北京市海淀区学院路 35 号世宁大厦 15 层 邮编: 100083 电话: 86-10-68948888 传真: 86-10-68944075 15/F Shining Tower No.35, Xueyuan Road, Haidian District, Beijing, China Postal Code: 100083 Tel: 86-10-68948888 Fax: 86-10-68944075 Vimicro Copyright© 1999-2006 www.vimicro.com Page 3 of 225
VC0706 Firmware SDK 用户手册 V1.20 Vimicro Corporation 目录 1.描述...........................................................................................................................................................20 2.组成...........................................................................................................................................................20 3.系统功能说明 ............................................................................................................................................20 系统配置 ...............................................................................................................................................................20 MCU 介绍 .............................................................................................................................................................20 Timer 定时设置.............................................................................................................................................21 Strap Pin 说明........................................................................................................................................................21 GPIO 说明.............................................................................................................................................................22 串口功能 ...............................................................................................................................................................23 视频输入源 ...........................................................................................................................................................25 模块配置说明 .......................................................................................................................................................26 输出模式控制 .......................................................................................................................................................26 颜色切换模式 .......................................................................................................................................................26 图像属性页控制 ...................................................................................................................................................27 自动曝光 ...............................................................................................................................................................28 JPG 图像支持........................................................................................................................................................29 DMA 介绍.............................................................................................................................................................29 DownSize 和 Zoom 功能 ......................................................................................................................................30 DownSize.......................................................................................................................................................30 Zoom..............................................................................................................................................................30 OSD 功能 ..............................................................................................................................................................31 1. 简介 .......................................................................................................................................................31 2. 调色板 ...................................................................................................................................................31 3. OSD 控制 .............................................................................................................................................32 3.1. OSD 字符 ...................................................................................................................................32 3.2. 图标 .............................................................................................................................................42 3.3. 隐私遮挡 .....................................................................................................................................45 3.4. 位图叠加 .....................................................................................................................................47 Motion 配置和检测...............................................................................................................................................50 Motion 窗口介绍...........................................................................................................................................50 Motion 窗口位置和大小设置.......................................................................................................................51 Motion 窗口灵敏度设置...............................................................................................................................51 批量写数据格式 ...................................................................................................................................................53 批量写数据格式介绍 ...................................................................................................................................53 批量写数据结构 ...........................................................................................................................................53 延迟操作 .......................................................................................................................................................54 地址: 北京市海淀区学院路 35 号世宁大厦 15 层 邮编: 100083 电话: 86-10-68948888 传真: 86-10-68944075 15/F Shining Tower No.35, Xueyuan Road, Haidian District, Beijing, China Postal Code: 100083 Tel: 86-10-68948888 Fax: 86-10-68944075 Vimicro Copyright© 1999-2006 www.vimicro.com Page 4 of 225
Vimicro Corporation VC0706 Firmware SDK 用户手册 V1.20 写 Chip 寄存器..............................................................................................................................................54 写其他设备 ...................................................................................................................................................54 举例 ...............................................................................................................................................................55 支持的存储设备 ...................................................................................................................................................56 支持的 I2C E2prom 型号..............................................................................................................................56 支持的 SPI E2prom 型号..............................................................................................................................57 支持的 SPI Flash 型号..................................................................................................................................57 4.文件结构 ...................................................................................................................................................58 5.VC0706 核心库介绍..................................................................................................................................59 宏定义 ...................................................................................................................................................................59 视频输入源定义 ...........................................................................................................................................59 VC0706 初始化的错误代码定义.................................................................................................................59 数据宽度定义 ...............................................................................................................................................59 Strap pin 定义................................................................................................................................................59 FBUF 定义 ....................................................................................................................................................60 系统支持的图像格式定义 ...........................................................................................................................60 输出模式定义 ...............................................................................................................................................61 自动曝光参数定义 .......................................................................................................................................62 GPIO 相关定义.............................................................................................................................................62 Motion 门限值类型定义...............................................................................................................................64 I2C 属性相关定义 ........................................................................................................................................64 结构定义 ...............................................................................................................................................................65 系统信息结构定义 .......................................................................................................................................65 I2C 设备属性定义 ........................................................................................................................................67 Sensor 自动曝光相关结构定义....................................................................................................................67 函数定义 ...............................................................................................................................................................69 VC0706BaseInitLib 库相关函数..................................................................................................................69 VC0706BaseInit.....................................................................................................................................69 SetGpio..................................................................................................................................................69 GetGpioInput.........................................................................................................................................70 GetGpioOut............................................................................................................................................71 SetGpioOut............................................................................................................................................71 GetPadCtrl.............................................................................................................................................72 SetPadCtrl..............................................................................................................................................72 系统初始化相关函数 ...................................................................................................................................72 Init706....................................................................................................................................................72 Get706SystemInfor................................................................................................................................73 ResetSystem...........................................................................................................................................73 CloseDac................................................................................................................................................73 OpenDac................................................................................................................................................73 地址: 北京市海淀区学院路 35 号世宁大厦 15 层 邮编: 100083 电话: 86-10-68948888 传真: 86-10-68944075 15/F Shining Tower No.35, Xueyuan Road, Haidian District, Beijing, China Postal Code: 100083 Tel: 86-10-68948888 Fax: 86-10-68944075 Vimicro Copyright© 1999-2006 www.vimicro.com Page 5 of 225
Vimicro Corporation VC0706 Firmware SDK 用户手册 V1.20 GetStrapPin............................................................................................................................................73 节能模式相关函数 .......................................................................................................................................74 PowerSaveCtrl.......................................................................................................................................74 IsInPowerSave.......................................................................................................................................74 SetPowerSaveLevel...............................................................................................................................74 GetPowerSaveLevel...............................................................................................................................74 Sensor 相关函数 ...........................................................................................................................................75 WriteSensor............................................................................................................................................75 ReadSensor............................................................................................................................................75 SensorReversal.......................................................................................................................................75 IsSensorMirror.......................................................................................................................................75 IsSensorFlip...........................................................................................................................................76 CCIR656 相关函数.......................................................................................................................................76 WriteCcir656..........................................................................................................................................76 ReadCcir656..........................................................................................................................................76 SetCcir656OpenStream..........................................................................................................................76 SetCcir656I2cProperty...........................................................................................................................77 I2C 相关操作函数 ........................................................................................................................................77 I2cWrite.................................................................................................................................................77 I2cRead..................................................................................................................................................77 图像属性相关函数 .......................................................................................................................................77 GetOutDoorEtStepNo............................................................................................................................78 VC0706ProcessAE................................................................................................................................78 IsAeFinish..............................................................................................................................................78 SetStartAe..............................................................................................................................................78 GetAeParam...........................................................................................................................................78 GetVblankParam....................................................................................................................................79 GetBlcParam..........................................................................................................................................79 GetSensorGainParam.............................................................................................................................79 SetExposureTime...................................................................................................................................79 GetAeFlicker..........................................................................................................................................79 SetAeFlicker..........................................................................................................................................80 GetAeDoor.............................................................................................................................................80 SetAeDoor.............................................................................................................................................80 GetBlcStatus..........................................................................................................................................80 BlcCtrl....................................................................................................................................................80 GetColorSwitchMode............................................................................................................................81 SetColorSwitchMode.............................................................................................................................81 图像相关函数 ...............................................................................................................................................81 SetCompareRate....................................................................................................................................81 地址: 北京市海淀区学院路 35 号世宁大厦 15 层 邮编: 100083 电话: 86-10-68948888 传真: 86-10-68944075 15/F Shining Tower No.35, Xueyuan Road, Haidian District, Beijing, China Postal Code: 100083 Tel: 86-10-68948888 Fax: 86-10-68944075 Vimicro Copyright© 1999-2006 www.vimicro.com Page 6 of 225
Vimicro Corporation VC0706 Firmware SDK 用户手册 V1.20 GetCompareRate....................................................................................................................................82 StopFbuf.................................................................................................................................................82 StepFbuf.................................................................................................................................................82 ResumeFbuf...........................................................................................................................................83 GetImageSize.........................................................................................................................................83 SetImageSize.........................................................................................................................................83 SetFbufRead...........................................................................................................................................83 SetFbufWrite..........................................................................................................................................83 FbufWrite...............................................................................................................................................84 FbufRead................................................................................................................................................84 Zoom 操作相关函数.....................................................................................................................................84 SetZoomWindow...................................................................................................................................84 GetImageInfo.........................................................................................................................................85 系统相关函数 ...............................................................................................................................................85 Delay......................................................................................................................................................85 6.VC0706 驱动和应用源码介绍 ...................................................................................................................86 Config.h 文件 ........................................................................................................................................................86 文件说明 .......................................................................................................................................................86 相关定义 .......................................................................................................................................................86 MCU 驱动 .............................................................................................................................................................95 驱动说明 .......................................................................................................................................................95 结构和定义 ...................................................................................................................................................95 全局变量 .......................................................................................................................................................96 gTimer0Count........................................................................................................................................96 gTimer1Count........................................................................................................................................96 相关操作函数 ...............................................................................................................................................97 InitMcuInterrupt.....................................................................................................................................97 InitTimer0..............................................................................................................................................97 SetTimer0...............................................................................................................................................97 StartTimer0............................................................................................................................................98 StopTimer0............................................................................................................................................98 InitTimer1..............................................................................................................................................98 SetTimer1...............................................................................................................................................98 StartTimer1............................................................................................................................................98 StopTimer1............................................................................................................................................99 OpenGlobalInt.......................................................................................................................................99 CloseGlobalInt.......................................................................................................................................99 MCU 串口驱动 .....................................................................................................................................................99 驱动说明 .......................................................................................................................................................99 结构和定义 .................................................................................................................................................100 地址: 北京市海淀区学院路 35 号世宁大厦 15 层 邮编: 100083 电话: 86-10-68948888 传真: 86-10-68944075 15/F Shining Tower No.35, Xueyuan Road, Haidian District, Beijing, China Postal Code: 100083 Tel: 86-10-68948888 Fax: 86-10-68944075 Vimicro Copyright© 1999-2006 www.vimicro.com Page 7 of 225
Vimicro Corporation VC0706 Firmware SDK 用户手册 V1.20 全局变量 .....................................................................................................................................................100 gMcuUartBps.......................................................................................................................................100 相关操作函数 .............................................................................................................................................101 EnableMcuUart....................................................................................................................................101 DisableMcuUart...................................................................................................................................101 InitMcuUart.........................................................................................................................................101 SetMcuUartBps....................................................................................................................................101 MUPrintChar.......................................................................................................................................101 MUPrintString.....................................................................................................................................102 MUPrintData........................................................................................................................................102 MUPrintFbuf........................................................................................................................................102 OpenMcuUartInt..................................................................................................................................102 高速串口驱动 .....................................................................................................................................................103 驱动说明 .....................................................................................................................................................103 结构和定义 .................................................................................................................................................103 全局变量 .....................................................................................................................................................104 gHUartBps...........................................................................................................................................104 相关操作函数 .............................................................................................................................................104 EnableHUart........................................................................................................................................105 DiableHUart.........................................................................................................................................105 InitHUart..............................................................................................................................................105 SetHUartBps........................................................................................................................................105 SetHUartMcuMode..............................................................................................................................105 HUPrintChar........................................................................................................................................106 HUPrintString......................................................................................................................................106 HUPrintData........................................................................................................................................106 HUPrintFbuf........................................................................................................................................106 HUartRecIsr.........................................................................................................................................107 SPI 口驱动...........................................................................................................................................................107 驱动说明 .....................................................................................................................................................107 结构和定义 .................................................................................................................................................108 全局变量 ......................................................................................................................................................110 gSpiMemoryType.................................................................................................................................110 gSpiPageSize........................................................................................................................................110 gSpiSectorSize......................................................................................................................................110 gSpiBps.................................................................................................................................................110 相关操作函数 ..............................................................................................................................................110 SetSpClock...........................................................................................................................................110 EnableSpi..............................................................................................................................................110 DiableSpi..............................................................................................................................................111 地址: 北京市海淀区学院路 35 号世宁大厦 15 层 邮编: 100083 电话: 86-10-68948888 传真: 86-10-68944075 15/F Shining Tower No.35, Xueyuan Road, Haidian District, Beijing, China Postal Code: 100083 Tel: 86-10-68948888 Fax: 86-10-68944075 Vimicro Copyright© 1999-2006 www.vimicro.com Page 8 of 225
分享到:
收藏