• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ IMG_REG_WRITE函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中IMG_REG_WRITE函数的典型用法代码示例。如果您正苦于以下问题:C++ IMG_REG_WRITE函数的具体用法?C++ IMG_REG_WRITE怎么用?C++ IMG_REG_WRITE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了IMG_REG_WRITE函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: jpeg_drv_enc_reset

void jpeg_drv_enc_reset(void)
{
   IMG_REG_WRITE( (0), REG_ADDR_JPEG_ENC_RSTB);  //REG_JPEG_ENC_RSTB = 0;
   IMG_REG_WRITE( (1), REG_ADDR_JPEG_ENC_RSTB);  //REG_JPEG_ENC_RSTB = 1;

   _jpeg_enc_int_status = 0;
}
开发者ID:Lesozav25,项目名称:ZOPO-TSN,代码行数:7,代码来源:jpeg_drv_6589_enc.c


示例2: gdma_rw_reg

void gdma_rw_reg(void)
{
    unsigned int i;
    unsigned int addr = 0;
    //char msg[256];

    printk("=======================================\n\r");
    printk("   GDMA register RW test!!!!\n\r");

    for (i = 0x50; i < 0xDC; i+=4)
    {
        addr = GDMA_REG_BASE + i;
        printk("addr %03x(%03d) ", i, i/4);
        
        IMG_REG_WRITE(0x00000000, addr);    //*((volatile unsigned int*)addr) = 0x00000000;
        printk("write 0x00000000 read: 0x%08x\n", *((volatile unsigned int*)addr));
        
        IMG_REG_WRITE(0xffffffff, addr);    //*((volatile unsigned int*)addr) = 0xffffffff;
        printk("              write 0xffffffff read: 0x%08x\n", *((volatile unsigned int*)addr));
        wait_pr();
    }

    printk("=======================================\n\r\n\r");

}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:25,代码来源:gdma_drv_6589_ctl.c


示例3: jpeg_drv_dec_rw_reg

void jpeg_drv_dec_rw_reg(void)
{
	kal_uint32 i;
	unsigned long addr = 0;
	unsigned int reg_value = 0;
	/* kal_uint32 restore = 0; */


	JPEG_VEB("=======================================\n\r");
	JPEG_VEB("   JPEG decoder register RW test!!!!\n\r");

	/* for (i = 0x8C; i < 0x3FC; i+=4) */
	for (i = 0x090; i <= 0x294; i += 4) {
		addr = (unsigned long)(JPEG_DEC_BASE + i);
		JPEG_VEB("addr %03x(%03d) ", i, i / 4);

		IMG_REG_WRITE(0x00000000, addr);
		IMG_REG_READ(reg_value, addr);
		JPEG_VEB("write 0x00000000 read: 0x%08x\n", reg_value);

		IMG_REG_WRITE(0xffffffff, addr);
		IMG_REG_READ(reg_value, addr);
		JPEG_VEB("              write 0xffffffff read: 0x%08x\n", reg_value);

		wait_pr();
	}

	JPEG_VEB("=======================================\n\r\n\r");
}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:29,代码来源:jpeg_drv_dec.c


示例4: jpeg_drv_dec_start

void jpeg_drv_dec_start(void)
{
    // unmask jpeg irq
    IMG_REG_WRITE(0x37, REG_ADDR_JPGDEC_IRQ_EN);

    IMG_REG_WRITE(0, REG_ADDR_JPGDEC_TRIG); //REG_JPGDEC_TRIG = 0;   
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:7,代码来源:jpeg_drv_6589_dec.c


示例5: jpeg_drv_enc_set_dst_buff

kal_uint32 jpeg_drv_enc_set_dst_buff(kal_uint32 dst_addr, kal_uint32 stall_size, kal_uint32 init_offset, kal_uint32 offset_mask)
{
    if (stall_size < 624)
    {
        JPEG_MSG("JPEGENC:stall offset less than 624 to write header %d!!\n",stall_size);        
        return 0;
    }

   if (offset_mask & 0x0F)
   {
      JPEG_MSG("JPEGENC: set offset addr %x\n", offset_mask);
      //return 0;
   }

   IMG_REG_WRITE( (init_offset & (~0xF)), REG_ADDR_JPEG_ENC_OFFSET_ADDR);   //REG_JPEG_ENC_OFFSET_ADDR = init_offset & (~0xF);

   IMG_REG_WRITE( (offset_mask & 0xF), REG_ADDR_JPEG_ENC_BYTE_OFFSET_MASK);   //REG_JPEG_ENC_BYTE_OFFSET_MASK = (offset_mask & 0xF);
   
   IMG_REG_WRITE( (dst_addr & (~0xF)), REG_ADDR_JPEG_ENC_DST_ADDR0);   //REG_JPEG_ENC_DST_ADDR0  = dst_addr & (~0xF);
   
   IMG_REG_WRITE( ((dst_addr + stall_size) & (~0xF)), REG_ADDR_JPEG_ENC_STALL_ADDR0);   //REG_JPEG_ENC_STALL_ADDR0 = (dst_addr + stall_size) & (~0xF);
   

   return 1;
}
开发者ID:CobraJet93,项目名称:kernel-3.10.54,代码行数:25,代码来源:jpeg_drv_6589_enc.c


示例6: gfmt_drv_set_src_buffer

void gfmt_drv_set_src_buffer(unsigned int addr_Y, unsigned int addr_UV)
{
   
   
   IMG_REG_WRITE((addr_Y ), REG_ADDR_GDMA_FMT_YSRCB1 ); //REG_GDMA_FMT_YSRCB1  = addr_Y ;
   IMG_REG_WRITE((addr_UV), REG_ADDR_GDMA_FMT_CBSRCB1); //REG_GDMA_FMT_CBSRCB1 = addr_UV ;
   
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:8,代码来源:gfmt_drv_6589_fmt.c


示例7: jpeg_drv_dec_set_memStride

int jpeg_drv_dec_set_memStride(unsigned int CompMemStride_Y, unsigned int CompMemStride_UV)
{

   IMG_REG_WRITE((CompMemStride_Y  & 0xFFFF), REG_ADDR_JPGDEC_STRIDE_Y );   //REG_JPGDEC_STRIDE_Y  = CompMemStride_Y  & 0xFFFF ;
   IMG_REG_WRITE((CompMemStride_UV & 0xFFFF), REG_ADDR_JPGDEC_STRIDE_UV);   //REG_JPGDEC_STRIDE_UV = CompMemStride_UV & 0xFFFF ;

	 return (int)E_HWJPG_OK;   
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:8,代码来源:jpeg_drv_6589_dec.c


示例8: jpeg_drv_dec_set_bs_info

void jpeg_drv_dec_set_bs_info(unsigned int bsBase, unsigned int bsSize)
{
	CHECK_ALIGN(bsBase, 16, (kal_uint32) REG_ADDR_JPGDEC_FILE_ADDR);
	CHECK_ALIGN(bsSize, 128, (kal_uint32) REG_ADDR_JPGDEC_FILE_TOTAL_SIZE);

	IMG_REG_WRITE((bsBase), REG_ADDR_JPGDEC_FILE_ADDR);

	IMG_REG_WRITE((bsSize), REG_ADDR_JPGDEC_FILE_TOTAL_SIZE);
}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:9,代码来源:jpeg_drv_dec.c


示例9: jpeg_drv_dec_set_dst_bank1

void jpeg_drv_dec_set_dst_bank1(unsigned int addr_Y, unsigned int addr_U,unsigned int addr_V)
{
//   unsigned int u4Value;
   
   IMG_REG_WRITE(addr_Y, REG_ADDR_JPGDEC_DEST_ADDR1_Y);   //REG_JPGDEC_DEST_ADDR1_Y = addr_Y ;
   IMG_REG_WRITE(addr_U, REG_ADDR_JPGDEC_DEST_ADDR1_U);   //REG_JPGDEC_DEST_ADDR1_U = addr_U ;
   IMG_REG_WRITE(addr_V, REG_ADDR_JPGDEC_DEST_ADDR1_V);   //REG_JPGDEC_DEST_ADDR1_V = addr_V ;
                                                     
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:9,代码来源:jpeg_drv_6589_dec.c


示例10: jpeg_drv_dec_set_dst_bank0

void jpeg_drv_dec_set_dst_bank0(unsigned int addr_Y, unsigned int addr_U,unsigned int addr_V)
{
   
   
   IMG_REG_WRITE(addr_Y, REG_ADDR_JPGDEC_DEST_ADDR0_Y);   //REG_JPGDEC_DEST_ADDR0_Y = addr_Y ;
   IMG_REG_WRITE(addr_U, REG_ADDR_JPGDEC_DEST_ADDR0_U);   //REG_JPGDEC_DEST_ADDR0_U = addr_U ;
   IMG_REG_WRITE(addr_V, REG_ADDR_JPGDEC_DEST_ADDR0_V);   //REG_JPGDEC_DEST_ADDR0_V = addr_V ;
   
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:9,代码来源:jpeg_drv_6589_dec.c


示例11: gfmt_drv_set_dst_bank1

void gfmt_drv_set_dst_bank1(unsigned int addr_Y, unsigned int addr_U,unsigned int addr_V)
{
   
   
   IMG_REG_WRITE((addr_Y ), REG_ADDR_GDMA_FMT_YTGB2  );  //REG_GDMA_FMT_YTGB2  = addr_Y ;
   IMG_REG_WRITE((addr_U ), REG_ADDR_GDMA_FMT_CBTGB2 );  //REG_GDMA_FMT_CBTGB2 = addr_U ;
   IMG_REG_WRITE((addr_V ), REG_ADDR_GDMA_FMT_CRTGB2 );  //REG_GDMA_FMT_CRTGB2 = addr_V ;
   
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:9,代码来源:gfmt_drv_6589_fmt.c


示例12: gdma_drv_set_src_bank1

void gdma_drv_set_src_bank1(unsigned int addr_Y, unsigned int addr_U,unsigned int addr_V)
{
   
   
   IMG_REG_WRITE(addr_Y, REG_ADDR_GDMA_CTL_YSRCB2  );  //REG_GDMA_CTL_YSRCB2  = addr_Y ;
   IMG_REG_WRITE(addr_U, REG_ADDR_GDMA_CTL_CBSRCB2 );  //REG_GDMA_CTL_CBSRCB2 = addr_U ;
   IMG_REG_WRITE(addr_V, REG_ADDR_GDMA_CTL_CRSRCB2 );  //REG_GDMA_CTL_CRSRCB2 = addr_V ;
   
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:9,代码来源:gdma_drv_6589_ctl.c


示例13: gdma_drv_set_crop_offset

void gdma_drv_set_crop_offset(unsigned int initOffset_Y, unsigned int offset_Y, unsigned int initOffset_C, unsigned int offset_C)
{
   unsigned int u4Value;
   u4Value = (initOffset_Y << 16) | offset_Y ;
   IMG_REG_WRITE(u4Value, REG_ADDR_GDMA_CTL_SRCOFST_Y);  //REG_GDMA_CTL_SRCOFST_Y = (initOffset_Y << 16) | offset_Y ;
   u4Value = (initOffset_C << 16) | offset_C ;
   IMG_REG_WRITE(u4Value, REG_ADDR_GDMA_CTL_SRCOFST_C);  //REG_GDMA_CTL_SRCOFST_C = (initOffset_C << 16) | offset_C ;
   
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:9,代码来源:gdma_drv_6589_ctl.c


示例14: jpeg_drv_dec_set_dst_bank1

void jpeg_drv_dec_set_dst_bank1(unsigned int addr_Y, unsigned int addr_U, unsigned int addr_V)
{
/* unsigned int u4Value; */

	IMG_REG_WRITE(addr_Y, REG_ADDR_JPGDEC_DEST_ADDR1_Y);
	IMG_REG_WRITE(addr_U, REG_ADDR_JPGDEC_DEST_ADDR1_U);
	IMG_REG_WRITE(addr_V, REG_ADDR_JPGDEC_DEST_ADDR1_V);

}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:9,代码来源:jpeg_drv_dec.c


示例15: jpeg_drv_dec_set_imgStride

int jpeg_drv_dec_set_imgStride(unsigned int CompStride_Y, unsigned int CompStride_UV)
{
/* unsigned int u4Reg; */

	IMG_REG_WRITE((CompStride_Y & 0xFFFF), REG_ADDR_JPGDEC_IMG_STRIDE_Y);
	IMG_REG_WRITE((CompStride_UV & 0xFFFF), REG_ADDR_JPGDEC_IMG_STRIDE_UV);

	return (int)E_HWJPG_OK;
}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:9,代码来源:jpeg_drv_dec.c


示例16: jpeg_drv_dec_soft_reset

void jpeg_drv_dec_soft_reset(void)
{
   IMG_REG_WRITE(0x00, REG_ADDR_JPGDEC_RESET); //REG_JPGDEC_RESET = 0x00;
   IMG_REG_WRITE(0x01, REG_ADDR_JPGDEC_RESET); //REG_JPGDEC_RESET = 0x01;
   //REG_JPGDEC_RESET = 0x00;    

   _jpeg_dec_int_status = 0;
   _jpeg_dec_mode = 0;
        
}
开发者ID:beyondmtk,项目名称:MT6589_kernel_source,代码行数:10,代码来源:jpeg_drv_6589_dec.c


示例17: jpeg_drv_dec_reset

void jpeg_drv_dec_reset(void)
{

	IMG_REG_WRITE(0x00, REG_ADDR_JPGDEC_RESET);
	IMG_REG_WRITE(0x10, REG_ADDR_JPGDEC_RESET);
	/* REG_JPGDEC_RESET = 0x00; */

	_jpeg_dec_int_status = 0;
	_jpeg_dec_mode = 0;

}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:11,代码来源:jpeg_drv_dec.c


示例18: jpeg_drv_enc_reset

void jpeg_drv_enc_reset(void)
{


	IMG_REG_WRITE((0), REG_ADDR_JPEG_ENC_RSTB);	/* REG_JPEG_ENC_RSTB = 0; */
	IMG_REG_WRITE((1), REG_ADDR_JPEG_ENC_RSTB);	/* REG_JPEG_ENC_RSTB = 1; */

	IMG_REG_WRITE((0), REG_ADDR_JPEG_ENC_CODEC_SEL);

	_jpeg_enc_int_status = 0;
}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:11,代码来源:jpeg_drv_6589_enc.c


示例19: jpeg_drv_enc_reset

void jpeg_drv_enc_reset(void)
{

   
   IMG_REG_WRITE( (0), REG_ADDR_JPEG_ENC_RSTB);  //REG_JPEG_ENC_RSTB = 0;
   IMG_REG_WRITE( (1), REG_ADDR_JPEG_ENC_RSTB);  //REG_JPEG_ENC_RSTB = 1;
   
   IMG_REG_WRITE( (0), REG_ADDR_JPEG_ENC_CODEC_SEL);  //REG_JPEG_ENC_CODEC_SEL = 0; //switch SRAM to jpeg module

   _jpeg_enc_int_status = 0;
}
开发者ID:CobraJet93,项目名称:kernel-3.10.54,代码行数:11,代码来源:jpeg_drv_6589_enc.c


示例20: jpeg_drv_dec_resume

void jpeg_drv_dec_resume(unsigned int resume)
{

   _jpeg_dec_int_status = 0;
   
   IMG_REG_WRITE((resume), REG_ADDR_JPGDEC_INTERRUPT_STATUS );  //REG_JPGDEC_INTERRUPT_STATUS = resume ;
      
   // unmask jpeg interrupt since we've masked it out when pause irq rise
   IMG_REG_WRITE(0x37, REG_ADDR_JPGDEC_IRQ_EN);
   
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:11,代码来源:jpeg_drv_6589_dec.c



注:本文中的IMG_REG_WRITE函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ IMIN函数代码示例发布时间:2022-05-30
下一篇:
C++ IMG_Name函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap