www.pudn.com > bu1566.rar > BUxx_aDSC.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#include #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 */