DISP_STATUS DISP_Get_Current_UpdateSpeed(unsigned int *speed) { DISP_STATUS ret = DISP_STATUS_OK; if(LCM_TYPE_DBI == lcm_params->type){//DBI DISP_LOG("DISP_Get_Current_UpdateSpeed():DBI interface\n"); LCD_CHECK_RET(LCD_Get_Current_WriteCycle(ctrl_if, speed)); } else if(LCM_TYPE_DPI == lcm_params->type){//DPI DISP_LOG("DISP_Get_Current_UpdateSpeed():DPI interface\n"); DPI_CHECK_RET(DPI_Get_Current_CLK(speed)); } else{// DSI DISP_LOG("DISP_Get_Current_UpdateSpeed():DSI driver not ready\n"); } return ret; }
DISP_STATUS disphal_get_current_updatespeed(unsigned int *speed) { DISP_STATUS ret = DISP_STATUS_OK; if(LCM_TYPE_DBI == lcm_params->type) {//DBI LCD_CHECK_RET(LCD_Get_Current_WriteCycle(ctrl_if, speed)); } else if(LCM_TYPE_DPI == lcm_params->type) {//DPI DPI_CHECK_RET(DPI_Get_Current_CLK(speed)); } else if(LCM_TYPE_DSI == lcm_params->type) {// DSI DSI_CHECK_RET(DSI_Get_Current_CLK(speed)); } else { ret = DISP_STATUS_ERROR; } return ret; }