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

C++ LCM_PRINT函数代码示例

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

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



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

示例1: lcm_suspend

static void lcm_suspend(void)
{
#ifdef TEMP_VER_CHECK
#if defined(BUILD_LK) 	    
#else
    if ( first_check == 0 )
    {
        g_PCBver = get_pcb_version();
        LCM_PRINT("[LCD-KERNEL]board_version =%d\n",g_PCBver);
        first_check = 1;
    }
#endif    
#endif /* TEMP_VER_CHECK */
	init_lcm_registers_sleep();

	SET_RESET_PIN(0);
	MDELAY(20);
	//dsv low
	ldo_p5m5_dsv_5v5_off();
	MDELAY(10);
	//VCI/IOVCC off
	ldo_1v8io_off();
	//ldo_ext_3v0_off();

	LCM_PRINT("[LCD] lcm_suspend \n");
}
开发者ID:Elnter,项目名称:j608_kernel,代码行数:26,代码来源:r69338_hd720_dsi_vdo_jdi.c


示例2: lcm_compare_id

static unsigned int lcm_compare_id(void)
{
#if 0
	unsigned int id=0;
	unsigned char buffer[2];
	unsigned int array[16];
    SET_RESET_PIN(1);
    SET_RESET_PIN(0);
    MDELAY(1);
    SET_RESET_PIN(1);
    MDELAY(10);//Must over 6 ms
	array[0]=0x00043902;
	array[1]=0x8983FFB9;// page enable
	dsi_set_cmdq(array, 2, 1);
	MDELAY(10);
	array[0] = 0x00023700;// return byte number
	dsi_set_cmdq(array, 1, 1);
	MDELAY(10);
	read_reg_v2(0xF4, buffer, 2);
	id = buffer[0];
	LCM_PRINT("%s, id = 0x%08x\n", __func__, id);
	return (LCM_ID == id)?1:0;
#else
	LCM_PRINT("[SEOSCTEST] lcm_compare_id \n");
	return 1;
#endif
}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:27,代码来源:r69338_fhd_dsi_vdo_jdi.c


示例3: lcm_resume_power

static void lcm_resume_power(void)
{
	if(wakeup_by_swipe == false){
		//if(!is_update)mutex_lock(pMutexTouch);
		ldo_p5m5_dsv_5v5_off();
		ldo_1v8io_off();
		ldo_3v0_off();
		reset_lcd_module(1); //removed reset delay 50ms

		//chargepump_dsv_reset();//no need it for ESD

		MDELAY(10); //0318 100ms -> 10ms
		ldo_3v0_on();
		ldo_1v8io_on();
		//MDELAY(10);
		//ldo_p5m5_dsv_5v5_on(); // 0318 move to LP11
		MDELAY(50);
		//SET_RESET_PIN(1);
		//reset_lcd_module(0); //0318 move to LP11
		//MDELAY(150);
		LCM_PRINT("[LCD] lcm_resume_power \n");
	}else{
		LCM_PRINT("[LCD] lcm_resume_power wakeup_by_swipe\n");
	}
}
开发者ID:vitek999,项目名称:android_kernel_lg_mm,代码行数:25,代码来源:lh570_hd720_dsi_vdo_lgd_phase3.c


示例4: lcm_resume

static void lcm_resume(void)
{
	unsigned int data_array[1];

	MDELAY(5);
if(wakeup_by_swipe == false){
	//reset_lcd_module(0);
	//MDELAY(10); //seosc
	ldo_p5m5_dsv_5v5_on();
	MDELAY(5);
	reset_lcd_module(0);
	MDELAY(1);
	reset_lcd_module(1);
	MDELAY(1);
	reset_lcd_module(0);
	MDELAY(50);
}else{
	LCM_PRINT("[LCD] lcm_resume wakeup_by_swipe\n");
}
	DSI_clk_HS_mode(1);
	MDELAY(120);

	dsi_set_cmdq_V3(lcm_initialization_pre_sleep_out_V3, sizeof(lcm_initialization_pre_sleep_out_V3) / sizeof(LCM_setting_table_V3), 1);
	MDELAY(120);
	dsi_set_cmdq_V3(lcm_initialization_post_sleep_out_V3, sizeof(lcm_initialization_post_sleep_out_V3) / sizeof(LCM_setting_table_V3), 1);


	need_set_lcm_addr = 1;
	LCM_PRINT("[LCD] lcm_resume\n");
}
开发者ID:vitek999,项目名称:android_kernel_lg_mm,代码行数:30,代码来源:lh570_hd720_dsi_vdo_lgd_phase3.c


示例5: init_lcm_registers

static void init_lcm_registers(void)
{
#if (!defined(BUILD_UBOOT) && !defined(BUILD_LK))  && defined(INIT_CODE_TUNNING_BY_SD_CARD)  /*                                                                      */
	 //sd_initial

	int line_cnt = 0;

	LCM_PRINT("[LCD] : [KERNEL] init_lcm_registers	\n ");

	if (Filesize(LCD_INITIAL_TXT) > 0)
	{
		line_cnt= lcd_init_read_from_sd();
		if (line_cnt > 0)
		{
			LCM_PRINT("[LCD] : SD card tunning & initial setting!!! \n ");
			push_table(lcm_initialization_setting_sd, sizeof(lcm_initialization_setting_sd) / sizeof(struct LCM_setting_table), 1);
		}
		else	{
			LCM_PRINT("[LCD] : Default initial setting \n ");
			push_table(lcm_initialization_setting, sizeof(lcm_initialization_setting) / sizeof(struct LCM_setting_table), 1);
		}
	}
	else
	{
		LCM_PRINT("[LCD] : Default initial setting \n ");
		push_table(lcm_initialization_setting, sizeof(lcm_initialization_setting) / sizeof(struct LCM_setting_table), 1);
	}
#else
        push_table(lcm_initialization_setting, sizeof(lcm_initialization_setting) / sizeof(struct LCM_setting_table), 1);
	LCM_PRINT("[LCD] init_lcm_registers \n");
#endif  /*                                                                      */
}
开发者ID:CobraJet93,项目名称:kernel-3.10.54,代码行数:32,代码来源:db7436_dsi_vdo_fwvga.c


示例6: get_pcb_version

static int get_pcb_version(void)
{

    int data[4] = {0, 0, 0, 0};
    int rawvalue    = 0;
    int ret         = 0;
    int PCBvoltage  = 0;

    ret = IMM_GetOneChannelValue(1, data, &rawvalue);
    if (ret == 0)
    {
        LCM_PRINT("[%s] success to get adc value channel(1)=(0x%x) (%d) (ret=%d)\n", __func__, rawvalue, rawvalue, ret);
        LCM_PRINT("[%s] data[0]=0x%x, data[1]=0x%x\n\n",__func__, data[0], data[1]);
    } else {
        LCM_PRINT("[%s] fail to get adc value (ret=%d)\n", __func__, ret);
    }

    PCBvoltage = (int)(rawvalue * 150 / 4096);

    if ( PCBvoltage>HW_REV_B_RANGE )
        g_PCBver = HW_REV_B;    // rev.b
    else if ( (PCBvoltage>HW_REV_A_RANGE) && (PCBvoltage<HW_REV_B_RANGE) )
        g_PCBver = HW_REV_A_2;    // rev.a-2
    else
        g_PCBver = HW_REV_A;    // rev.a
    
    LCM_PRINT("PCBvoltage(%d), g_PCBver(%d)\n", PCBvoltage, g_PCBver);
    
    return g_PCBver;
}
开发者ID:Elnter,项目名称:j608_kernel,代码行数:30,代码来源:r69338_hd720_dsi_vdo_jdi.c


示例7: lcm_set_pwm_for_mix

static void lcm_set_pwm_for_mix(int enable)
{
    LCM_PARAMS params;
    
    lcm_get_params(&params);
    if (params.dsi.pwm_fps == 0)
    {
        LCM_PRINT("Please set PWM fps \n");
        return;
    }
    
    if (enable)
    {
#if defined(TARGET_MT6582_Y50)  /*                                                                               */
        //lcm_set_fps(params.dsi.pwm_fps);
#else
        lcm_set_fps(params.dsi.pwm_fps);
#endif  /*                                                                               */
        set_enable_te_framesync();
    }
    else
    {
    	mt_pwm_disable(pwm_setting.pwm_no, pwm_setting.pmic_pad);
    }
	LCM_PRINT("[LCD] lcm_set_pwm (%d)\n", enable);
    
    return;
}
开发者ID:CobraJet93,项目名称:kernel-3.10.54,代码行数:28,代码来源:db7436_dsi_vdo_fwvga.c


示例8: set_enable_te_framesync

static void set_enable_te_framesync(void)
{
	LCM_PRINT("=============mt_pmic_pwm2_test===============\n");
	mt_set_gpio_mode(GPIO_INCELL_DISP_TE_PWM,GPIO_INCELL_DISP_TE_M_PWM); 

	LCM_PRINT("PWM: clk_div = %x, clk_src = %x, pwm_no = %x\n", pwm_setting.clk_div, pwm_setting.clk_src, pwm_setting.pwm_no);
	pwm_set_spec_config(&pwm_setting);

}
开发者ID:CobraJet93,项目名称:kernel-3.10.54,代码行数:9,代码来源:db7436_dsi_vdo_fwvga.c


示例9: lcm_register_check

bool lcm_register_check(unsigned char addr)
{
    unsigned char data[15] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
    unsigned char param_cnt;
    unsigned char i;
    bool result;

    switch(addr)
    {
        case 0x35 :  // Fall through
        case 0x36 :  // Fall through
        case 0x3A :  // Fall through
        case 0xB4 :  // Fall through
        case 0xB6 :  // Fall through
        case 0xB7 :  // Fall through
        case 0xC1 :  // Fall through
        case 0xC2 :  // Fall through
        case 0xC5 :  // Fall through
        case 0xEE :  // Fall through
            param_cnt = 1;
            break;
        case 0x0A :  // Fall through
        case 0x44 :  // Fall through
        case 0xB1 :  // Fall through
        case 0xC0 :  // Fall through
        case 0xCF :  // Fall through
            param_cnt = 2;
            break;
        case 0xF6 :
            param_cnt = 3;
            break;    
        case 0x09 :
            param_cnt = 5;
            break;
        case 0xE0 :  // Fall through
        case 0xE1 :  // Fall through
            param_cnt = 15;
            break;
        default :
            LCM_PRINT("[LCD] lcm_register_check, wrong address : 0x%x\n", addr);
            return TRUE;
            break;            
    }

        result = register_data_read(addr, param_cnt, &data);

        if(result == TRUE)
        {
            return register_compare(addr, data, param_cnt); 
        }
        else
        {
            LCM_PRINT("[LCD] register data read fail, return TRUE\n");
            return TRUE;
        }
}
开发者ID:kelvinbui31,项目名称:android_mediatek_muse72,代码行数:56,代码来源:ili9340d_dbi_qvga_s5.c


示例10: lcm_init

static void lcm_init(void)
{
	DSI_clk_HS_mode(1);
	MDELAY(120);
	init_lcm_registers();	/* SET EXTC ~ sleep out register */

	MDELAY(120);

	/* init_lcm_registers_added();     //Display On */
	need_set_lcm_addr = 1;
	LCM_PRINT("[SEOSCTEST] lcm_init \n");
	LCM_PRINT("[LCD] lcm_init \n");
}
开发者ID:vitek999,项目名称:android_kernel_lg_mm,代码行数:13,代码来源:lh570_hd720_dsi_vdo_lgd_phase3.c


示例11: lcm_esd_recover

static void lcm_esd_recover(void)
{
	lcm_suspend();
	lcm_resume();

	LCM_PRINT("[LCD] lcm_esd_recover \n");
}
开发者ID:CobraJet93,项目名称:kernel-3.10.54,代码行数:7,代码来源:db7436_dsi_vdo_fwvga.c


示例12: dump_lcm_register

int dump_lcm_register(char *buf)
{
    int i, j;
    unsigned char param_cnt;
    unsigned char addr;
    unsigned char data[15];
    int table_size = sizeof(INN_register_table)/sizeof(LCM_register_table);
    int ret = FALSE;  // register data not changed
    LCM_register_table *ptr = table_ptr;

    for(i = 0; i < table_size; i++)
    {
        memset(data, 0xFF, sizeof(data));
        addr = ptr[i].address;
        param_cnt = ptr[i].count;
        register_data_read(addr, param_cnt, &data);
        LCM_PRINT("[LCD] DUMP LCM REGISTER ADDRESS : 0x%x, data : 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x\n", 
            addr, data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8], data[9], data[10], data[11], data[12], data[13], data[14]);

        if(register_compare(addr, data, param_cnt) == FALSE)
        {
            sprintf(buf, "%s 0x%x", buf, addr);
            ret = TRUE;  // register data changed
        }
    }
    sprintf(buf, "%s\0", buf);

    return ret;
}
开发者ID:kelvinbui31,项目名称:android_mediatek_muse72,代码行数:29,代码来源:ili9340d_dbi_qvga_s5.c


示例13: lcm_init_INN

static void lcm_init_INN(void)
{
        // no power on/off control for TOVIS LCD sleep current consumption issue
        //hwPowerOn(MT6323_POWER_LDO_VCAM_AF, VOL_2800, "2V8_LCD_VCC_MTK_S");
        //MDELAY(1);
        //hwPowerOn(MT6323_POWER_LDO_VGP1, VOL_1800, "1V8_LCD_VIO_MTK_S");
        //MDELAY(1);        
    SET_RESET_PIN(1);
	MDELAY(10);
	SET_RESET_PIN(0);
	MDELAY(10);
	SET_RESET_PIN(1);
	MDELAY(120);
#if 1   /* LGE_BSP_COMMON LGE_CHANGE_S 140325 jongwoo82.lee : LCD dualization temp code */
        if(is_INN_LCD == true)
        {
            init_lcm_registers_INN();
        }
        else
        {
            init_lcm_registers_TCL();
        }
#else
	init_lcm_registers_INN();
#endif  /* LGE_BSP_COMMON LGE_CHANGE_E 140325 jongwoo82.lee : LCD dualization temp code */
	LCM_PRINT("[LCD] lcm_init \n");
}
开发者ID:kelvinbui31,项目名称:android_mediatek_muse72,代码行数:27,代码来源:ili9340d_dbi_qvga_s5.c


示例14: lcm_force_lut_update

void lcm_force_lut_update(void)
{
	dsi_set_cmdq_V3(lcm_lut_update_in_V3, sizeof(lcm_lut_update_in_V3) / sizeof(LCM_setting_table_V3), 1);
	MDELAY(120);

	LCM_PRINT("[LCD] lut update for upgrading Touch FW \n");
}
开发者ID:vitek999,项目名称:android_kernel_lg_mm,代码行数:7,代码来源:lh570_hd720_dsi_vdo_lgd_phase3.c


示例15: lcm_compare_id

static unsigned int lcm_compare_id(void)
{
   unsigned int id = 0;

   SET_RESET_PIN(1);
   SET_RESET_PIN(0);
   MDELAY(25);
   SET_RESET_PIN(1);
   MDELAY(50);

   send_ctrl_cmd(0xB9);  // SET password
   send_data_cmd(0xFF);  
   send_data_cmd(0x83);  
   send_data_cmd(0x69);

   send_ctrl_cmd(0xC3);
   send_data_cmd(0x00);
   send_data_cmd(0x80);
   send_data_cmd(0x00);
   
   send_ctrl_cmd(0xF4);
   id = read_data_cmd();  // dummy read
   id = read_data_cmd();

   LCM_PRINT("[HX] ID:0x%x, 0x%x\n", id, LCM_ID);
   return (LCM_ID == id)?1:0;
}
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:27,代码来源:hx8369_dbi_6571.c


示例16: lcm_compare_id

static unsigned int lcm_compare_id(void)
{
    unsigned int id1, id2, id3 = 0;

    SET_RESET_PIN(1);
    SET_RESET_PIN(0);
    MDELAY(5);
    SET_RESET_PIN(1);
    MDELAY(20);

    //*************Enable CMD2 Page1  *******************//
    set_lcm_register(0xF000, 0x55);
    set_lcm_register(0xF001, 0xAA);
    set_lcm_register(0xF002, 0x52);
    set_lcm_register(0xF003, 0x08);
    set_lcm_register(0xF004, 0x01);
    MDELAY(10); 

    send_ctrl_cmd(0xC500);
    id1 = read_data_cmd();
    send_ctrl_cmd(0xC501);
    id2 = read_data_cmd();
    send_ctrl_cmd(0xC502);
    id3 = read_data_cmd();

    LCM_PRINT("[NT] ID:0x%x, 0x%x, 0x%x, 0x%x\n", id1, id2, id3, LCM_ID);
    return (LCM_ID == (id1 << 8 | id2))?1:0;
}
开发者ID:John677,项目名称:Kernal_k3note,代码行数:28,代码来源:nt35510_mcu_6572.c


示例17: reset_lcd_module

static void reset_lcd_module(unsigned char reset)
{
	mt_set_gpio_mode(GPIO_LCM_RST, GPIO_LCM_RST_M_GPIO);
	//mt_set_gpio_pull_enable(GPIO_LCM_RST, GPIO_PULL_ENABLE);
	mt_set_gpio_dir(GPIO_LCM_RST, GPIO_DIR_OUT);

   if(reset){
   	mt_set_gpio_out(GPIO_LCM_RST, GPIO_OUT_ONE);
	LCM_PRINT("[LCD] Reset High \n");
   }
   else
   {
   mt_set_gpio_out(GPIO_LCM_RST, GPIO_OUT_ZERO);
   LCM_PRINT("[LCD] Reset Low \n");
   }
}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:16,代码来源:r69338_fhd_dsi_vdo_jdi.c


示例18: init_lcm_registers

static void init_lcm_registers(void)
{

#if 1
	//DSI_clk_HS_mode(DISP_MODULE_DSI0, NULL, 1);

	//push_table(lcm_initialization_setting, sizeof(lcm_initialization_setting) / sizeof(struct LCM_setting_table), 1);
	//if ( lge_get_board_revno() > EVB_PCB_REVISION )
		//dsi_set_cmdq_V3(lcm_initialization_setting_rotation_V3, sizeof(lcm_initialization_setting_rotation_V3) / sizeof(LCM_setting_table_V3), 1);
	dsi_set_cmdq_V3(lcm_initialization_setting_V3, sizeof(lcm_initialization_setting_V3) / sizeof(LCM_setting_table_V3), 1);
	MDELAY(120);
	//dsi_set_cmdq_V3(lcm_initialization_setting_V3_Disp_On, sizeof(lcm_initialization_setting_V3_Disp_On) / sizeof(LCM_setting_table_V3), 1);
#else
	unsigned int data_array[32];
	dsi_set_cmdq_V3(lcm_initialization_setting_V3, sizeof(lcm_initialization_setting_V3) / sizeof(LCM_setting_table_V3), 1);
	data_array[0] = 0x00290500;	//Display On
	dsi_set_cmdq(data_array, 1, 1);

	data_array[0] = 0x00110500;	//Sleep Out
	dsi_set_cmdq(data_array, 1, 1);

	MDELAY(120);
#endif
	LCM_PRINT("[LCD] init_lcm_registers \n");
}
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:25,代码来源:r69338_fhd_dsi_vdo_jdi.c


示例19: lcm_esd_recover

static unsigned int lcm_esd_recover(void)
{
    LCM_PRINT("\n[LCD] lcm_esd_recover, LCD re-initialize \n");
    lcm_suspend_INN();
    MDELAY(200);
    lcm_init_INN();
    return TRUE;
}
开发者ID:kelvinbui31,项目名称:android_mediatek_muse72,代码行数:8,代码来源:ili9340d_dbi_qvga_s5.c


示例20: register_compare

static bool register_compare(unsigned char addr, unsigned char data[], unsigned char count)
{
    unsigned char index = 0;
    unsigned char i;
    
    LCM_register_table *ptr = table_ptr;
    
    switch(addr)
    {
        case 0x09 : index = 0; break;
        case 0x0A : index = 1; break;
        case 0x35 : index = 2; break;
        case 0x36 : index = 3; break;
        case 0x3A : index = 4; break;
        case 0x44 : index = 5; break;
        case 0xB1 : index = 6; break;
        case 0xB4 : index = 7; break;
        case 0xB6 : index = 8; break;
        case 0xB7 : index = 9; break;
        case 0xC0 : index = 10; break;
        case 0xC1 : index = 11; break;
        case 0xC2 : index = 12; break;
        case 0xC5 : index = 13; break;
        case 0xCF : index = 14; break;
        case 0xE0 : index = 15; break;
        case 0xE1 : index = 16; break;
        case 0xEE : index = 17; break;
        case 0xF6 : index = 18; break;
        default :         
            LCM_PRINT("[LCD] register_compare, wrong address : 0x%x\n", addr);
            return TRUE;
            break;        
    }

    for(i = 0; i < count; i++)
    {
        if(ptr[index].param_list[i] != data[i])
        {
                LCM_PRINT("[LCD] register data changed, addr : 0x%x, data : 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x\n", 
                    addr, data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8], data[9], data[10], data[11], data[12], data[13], data[14]);
            return FALSE;
        }
    }
    return TRUE;
}
开发者ID:kelvinbui31,项目名称:android_mediatek_muse72,代码行数:45,代码来源:ili9340d_dbi_qvga_s5.c



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ LD函数代码示例发布时间:2022-05-30
下一篇:
C++ LCMDBG函数代码示例发布时间: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