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

📄 buxx_adsc.h

📁 bu1566dsp芯片用来处理ov7660或其他30万摄像模组的图像预览.图像拍照(jpeg压缩)
💻 H
字号:
/* ************************************************************************ */
/*                                                                          */
/* ROHM BU15xx demo firmware on MD2306                                      */
/*     Client   : ROHM Co., Ltd.丂丂丂丂丂丂                                 */
/*     End User :                                                           */
/*                                                                          */
/*     Processor: ARM-7TDMI(THUMB Mode)                                     */
/*     Dev.Env. : ARM-SDTv2.51                                              */
/*                                                                          */
/*     API:BU15xx control Routines Header                                   */
/*                                                                          */
/*     file     : BUxx_aDSC.h                                               */
/*     Auther   : J.SATO(NTC)丂                                             */
/*     Date     : 2004/Jul./1	                                            */
/*                                                                          */
/*     Copyright (c) 2002-04 Naritagiken Co., Ltd. All rights reserved.     */
/* ************************************************************************ */
/* History:								    */
/* 2004/Jul./1 Rev 1.00 create		                                    */
/*                                                                          */
/* ************************************************************************ */

#if !defined BUXX_ADSC_H_INCLUDED
#define	BUXX_ADSC_H_INCLUDED
/* ************************************************** */
/*		     INCLUDE FILES		      */
/* ************************************************** */
#include <stdarg.h>
#include <string.h>
#include "BUxx_setuptable.h"
#include "BUxx_aDRT.h"

/* ************************************************** */
/*		        TYPEDEF		    	      */
/* ************************************************** */

/* ************************************************** */
/*		        DEFINES			      */
/* ************************************************** */

/* ************************************************** */
/*		    GLOBAL VARIABLE		      */
/* ************************************************** */

/* ************************************************** */
/*		    GLOBAL FUNCTIONS		      */
/* ************************************************** */

int aDSC_bu15xx_OPEN(void);
void aDSC_bu15xx_CLOSE(void);
int aDSC_Start_Preview(const UINT16 st_x, const UINT16 st_y,
                       const UINT16 xsize, const UINT16 ysize,
                       const CAMSET * const cam);
UINT16 aDSC_Quit_Preview(void);
void __irq aDSC_int_disp(void);
//int aDSC_ExOverlay_Preview(const UINT16 *p_Ovldata,const tExOvl* p_ExOvl );
int aDSC_ExOvlmemory_write(const UINT16 * rgb_data);
void aDSC_int_disp(void);

int aDSC_filter_set(const char *format, ...);
int aDSC_i2c_set(const UINT16 seri_devtype, const UINT16 seri_devadr,
                 const UINT16 seri_2ndadr, const UINT16 seri_dat,
                 const UINT16 peri_sdc, const UINT16 seri_rw);

int aDSC_fmemory_write_rgb565(const UINT16 * rgb_data, const UINT16 st_x,
                              const UINT16 st_y);
int aDSC_ExOvlMemory_write_rgb565(const UINT16 * rgb_data);
int aDSC_transparent_write_rgb565(const UINT16 * rgb_data,
                                  const UINT16 st_x, const UINT16 st_y,
                                  const UINT16 color, const UINT16 c_mask);
int aDSC_fmemory_clear(const UINT16 st_x, const UINT16 st_y,
                       const UINT16 xsize, const UINT16 ysize,
                       const UINT16 color);

void aDSC_overlayframe_on(void);
void aDSC_overlayframe_off(void);

int aDSC_data_trans_st(const UINT16 st_x, const UINT16 st_y,
                       const UINT16 xsize, const UINT16 ysize);
int aDSC_lcdaccess_set(const int access);
int aDSC_fmemory_write_rgb565_2(const UINT16 * rgb_data, const UINT16 st_x,
                              const UINT16 st_y, const UINT16 xsize, const UINT16 ysize );
int aDSC_maskmemory_write(const UINT16 xstart, const UINT16 ystart,
                          const UINT16 xsize, const UINT16 ysize, const UINT16 alpha_color);

/* ***** jpeg ***** */
int aDSC_FrameEncode(UINT16 * start_add, UINT32 * const jpeg_size,
                     const UINT16 st_x, const UINT16 st_y,
                     const UINT16 xsize, const UINT16 ysize,
                     const UINT16 je_q);
int aDSC_CameraEncode(UINT16 * start_add, UINT32 * const jpeg_size,
                      const CAMSET * const cam, const UINT16 je_q,
                      const UINT16 je_hflip);
int aDSC_Decode(UINT16 * start_add, UINT32 * const jpeg_size,
                const CAMSET * cam);
int aDSC_HostJpegDec(UINT16 * start_add, UINT32 * const jpeg_size, UINT16* p_u16Rgb_addr, 
                              const CAMSET * cam);
// led
int aDSC_redled_set(const UINT16 ledon, const UINT16 ledoff,
                    const UINT16 slope, const UINT16 duty);
int aDSC_greenled_set(const UINT16 ledon, const UINT16 ledoff,
                      const UINT16 slope, const UINT16 duty);
int aDSC_blueled_set(const UINT16 ledon, const UINT16 ledoff,
                     const UINT16 slope, const UINT16 duty);
int aDSC_3cled_on_off(const UINT16 rsw, const UINT16 gsw, const UINT16 bsw,
                      const UINT16 pwmclk, const UINT16 mode);
int aDSC_whiteled_on_off(const UINT16 pwmwht_en, const UINT16 pwmwht_peri,
                         const UINT16 pwmwht_duty);
void aDSC_GIO_Write(UINT8 u8GioIndex, UINT8 u8Bit);
UINT16 aDSC_GIO_Read(UINT8 u8GioIndex);

#endif                          /* BUXX_ADSC_H_INCLUDED */

⌨️ 快捷键说明

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