当前位置: 首页>>代码示例>>C++>>正文


C++ DBG_DUMP函数代码示例

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


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

示例1: DxUSB_UpdateConnectType

UINT32 DxUSB_UpdateConnectType(void)
{
    USB_CHARGER_STS RetUSB;
    UINT32  uiUSBCurrType;
    if(!DxUSB_GetIsUSBPlug())
    {
        uiUSBCurrType = USB_CONNECT_NONE;
    }
    else
    {
        RetUSB = usb_chkCharger(0);
        switch (RetUSB)
        {
            case USB_CHARGER_STS_NONE:
                DBG_DUMP("CONNECT to PC\r\n");
                uiUSBCurrType = USB_CONNECT_PC;
                break;
            case USB_CHARGER_STS_CHARGING_DOWNSTREAM_PORT:
                DBG_DUMP("CONNECT to Charging PC\r\n");
                uiUSBCurrType = USB_CONNECT_CHARGING_PC;
                break;
            case USB_CHARGER_STS_CHARGER:
                DBG_DUMP("CONNECT to CHARGER\r\n");
                uiUSBCurrType = USB_CONNECT_CHARGER;
                break;
            default:
                DBG_ERR("CONNECTION UNKNOWN!\r\n");
                uiUSBCurrType = USB_CONNECT_UNKNOWN;
                break;
        }
    }
    return uiUSBCurrType;
}
开发者ID:github188,项目名称:NT9665X_GMD_V18,代码行数:33,代码来源:DxUsb.c

示例2: GPIOMap_DumpBacklight

void GPIOMap_DumpBacklight(void)
{
#if (LCD_BACKLIGHT_CTRL == LCD_BACKLIGHT_BY_PWM)
    DBG_DUMP("BACKLIGHT clk :\t\t%d MHz\r\n",48/(g_LCDBacklightPWMInfo.uiDiv+1));
    DBG_DUMP("BACKLIGHT Duty :\t%d %\r\n",(g_LCDBacklightPWMInfo.uiFall-g_LCDBacklightPWMInfo.uiRise)*100/g_LCDBacklightPWMInfo.uiPrd);
#endif
}
开发者ID:magic-gjh,项目名称:NT96655_SL508,代码行数:7,代码来源:DxDisplay_LCD.c

示例3: Power_StartUSBCharge

void Power_StartUSBCharge(void)
{
    if (!gIsBattInsert)
    {
        DBG_DUMP("  NO Battery, Ignore START\r\n");
        return;
    }

    if (GxPower_GetControl(GXPWR_CTRL_BATTERY_CHARGE_EN))
    {
        DBG_DUMP("  Already UNDER Charge, Ignore START\r\n");
        return;
    }

    if((USB_GetSource() == USB_SRC_USB_ADAPTER))
    {
        GxPower_SetControl(GXPWR_CTRL_BATTERY_CHARGE_CURRENT,BATT_CHARGE_CURRENT_HIGH);
        DBG_MSG("  Charge Current = %d\r\n", BATT_CHARGE_CURRENT_HIGH);
    }
#if _MIPS_TODO
    //#NT#2010/12/10#Jeah Yen -begin
    if((USB_GetSource() == USB_SRC_USB_ADAPTER) && (Power_GetSource() != POWER_SRC_USB_ADAPTER))
    {
        //Do not charge, just stop check low-battery
        DBG_DUMP("GxPower: Stop low-battery check.\r\n");
        GxPower_SetControl(GXPWR_CTRL_BATTERY_DETECT_EN, FALSE);
        return;
    }
    //#NT#2010/12/10#Jeah Yen -end
#endif
    //#NT#2010/12/10#Jeah Yen -begin
    if((USB_GetSource() == USB_SRC_USB_PC))
    {
        GxPower_SetControl(GXPWR_CTRL_BATTERY_CHARGE_CURRENT,BATT_CHARGE_CURRENT_MEDIUM);
        DBG_MSG("  Charge Current = %d\r\n", BATT_CHARGE_CURRENT_MEDIUM);
    }
    //#NT#2010/12/10#Jeah Yen -end

    //#NT#2010/12/10#Jeah Yen -begin
    DBG_DUMP("GxPower: Stop low-battery check.\r\n");
    GxPower_SetControl(GXPWR_CTRL_BATTERY_DETECT_EN, FALSE);
    DBG_DUMP("GxPower: Start to Charge Battery\r\n");
#if (USB_CHARGE_VERIFY == ENABLE)
    GxLED_SetCtrl(KEYSCAN_LED_GREEN,TURNON_LED,TRUE);
#endif
    GxPower_SetControl(GXPWR_CTRL_BATTERY_CHARGE_EN,TRUE);
    //#NT#2010/12/10#Jeah Yen -end
#if (USB_CHARGE_VERIFY == ENABLE)
#else
    //GxLED_SetCtrl(KEYSCAN_LED_GREEN,TURNON_LED,FALSE);
#endif
    //GxLED_SetCtrl(KEYSCAN_LED_RED,SETLED_SPEED,GXLED_1SEC_LED_TOGGLE_CNT);
    //GxLED_SetCtrl(KEYSCAN_LED_RED,SET_TOGGLE_LED,TRUE);
    GxLED_SetCtrl(KEYSCAN_LED_GREEN,SETLED_SPEED,GXLED_1SEC_LED_TOGGLE_CNT);
    GxLED_SetCtrl(KEYSCAN_LED_GREEN,SET_TOGGLE_LED,TRUE);

    // disable flash re-charge
    SxTimer_SetFuncActive(SX_TIMER_DET_RECHARGE_ID,FALSE);
}
开发者ID:magic-gjh,项目名称:NT96655_S600_A5,代码行数:59,代码来源:SysPower_Exe.c

示例4: SysDump_ver_drv

void SysDump_ver_drv(void)
{
    DBG_DUMP("\r\n=========================================================\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("    NT96650 Driver version info.\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("=========================================================\r\n");
    SwTimer_DelayMs(5);
    //dumpver(driver_ver);
}
开发者ID:github188,项目名称:NT9665X_GMD_V18,代码行数:10,代码来源:SysDumpVerInfo.c

示例5: SysDump_ver_eCos

void SysDump_ver_eCos(void)
{
    DBG_DUMP("\r\n=========================================================\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("    NT96650 eCos version info.\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("=========================================================\r\n");
    SwTimer_DelayMs(5);
    dumpver(eCos_Ver);
}
开发者ID:github188,项目名称:NT9665X_GMD_V18,代码行数:10,代码来源:SysDumpVerInfo.c

示例6: SysDump_ver_app

void SysDump_ver_app(void)
{
    DBG_DUMP("\r\n=========================================================\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("    NT96650 Application version info.\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("=========================================================\r\n");
    SwTimer_DelayMs(5);
    //dumpver(app_ver);
}
开发者ID:github188,项目名称:NT9665X_GMD_V18,代码行数:10,代码来源:SysDumpVerInfo.c

示例7: SysDump_ver_lib

void SysDump_ver_lib(void)
{
    DBG_DUMP("\r\n=========================================================\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("    NT96650 Library version info.\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("=========================================================\r\n");
    SwTimer_DelayMs(5);
    //dumpver(lib_ver);
}
开发者ID:github188,项目名称:NT9665X_GMD_V18,代码行数:10,代码来源:SysDumpVerInfo.c

示例8: SysDump_ver_common

void SysDump_ver_common(void)
{
    DBG_DUMP("\r\n=========================================================\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("    NT96650 Common version info.\r\n");
    SwTimer_DelayMs(5);
    DBG_DUMP("=========================================================\r\n");
    SwTimer_DelayMs(5);
    //dumpver(common_ver);
}
开发者ID:github188,项目名称:NT9665X_GMD_V18,代码行数:10,代码来源:SysDumpVerInfo.c

示例9: DrvNANDCommand

UINT32 DrvNANDCommand(CHAR *pcCmdStr) //General Command Console
{
    switch (*pcCmdStr)
    {
    case 'd':
        /*if (!strncmp(pcCmdStr, "Nand dump", 9))
        {
            return TRUE;
        }*/
        break;
    }
#if 0
#if _MIPS_TODO
    if((nand_info.ucDeviceCode == NAND_128M_2K)
    || (nand_info.ucDeviceCode == NAND_256M_2K))
    {
        DBG_DUMP("NAND type = 2K page\r\n");
    }
    else
    {
        DBG_DUMP("NAND type = 512B page\r\n");
    }
#endif
    //#NT#2010/02/22#Jeah Yen -end
    DBG_DUMP("Page Count/Block = %d\r\n", nand_info.uiPagePerBlock);
    DBG_DUMP("Data Size/Page = %d bytes\r\n", nand_info.uiBytesPerPageData);
    DBG_DUMP("Spare Size/Page = %d bytes\r\n", nand_info.uiSparePerPage);
    DBG_DUMP("Data Size/Block = %d bytes\r\n", nand_info.uiBlockSize);
    DBG_DUMP("Spare Size/Block = %d bytes\r\n", nand_info.uiPagePerBlock*nand_info.uiSparePerPage);

    DBG_DUMP("Physical Block Count = %d\r\n", nand_info.uiPhysicalBlockCount);
    DBG_DUMP("Total NAND data size = 0x%08x bytes\r\n",
        nand_info.uiPhysicalBlockCount*nand_info.uiBlockSize);
    DBG_DUMP("Total NAND spare size = 0x%08x bytes\r\n",
        nand_info.uiPhysicalBlockCount*nand_info.uiPagePerBlock*nand_info.uiSparePerPage);

/*
Ex:
ERR: Page Count/Block = 32
ERR: Data Size/Page = 512 bytes
ERR: Spare Size/Page = 16 bytes
ERR: Data Size/Block = 16384 bytes
ERR: Spare Size/Block = 512 bytes

ERR: Physical Block Count = 1728  //<------------ 注意! 不包含PST區的block
ERR: Total NAND data size = 0x01b00000 bytes  //<------------ 注意! 不包含PST區的block
ERR: Total NAND spare size = 0x000d8000 bytes  //<------------ 注意! 不包含PST區的block
*/
#endif
    return FALSE;
}
开发者ID:magic-gjh,项目名称:NT96655_SL508,代码行数:51,代码来源:DxStorage_Nand.c

示例10: if

//------------------------------------------------------------
// CNsmlObexClient::SendDataL( TDesC8& aStartPtr, TBool /*aFinalPacket*/, TRequestStatus &aStatus )
//------------------------------------------------------------
void CNsmlObexClient::SendDataL( TDesC8& aStartPtr, TBool /*aFinalPacket*/, TRequestStatus &aStatus )
    {
	iAgentStatus = &aStatus;
	// agent
	*iAgentStatus = KRequestPending;

	if ( iState == EWaitingToReceive )
		{
		iClient->Abort();
		iState = EWaitingToSend;
		}
    if ( iState != EWaitingToSend )
        {
        User::Leave( KErrDisconnected );
        }
    else if ( IsActive() ) 
        {
        User::Leave( KErrInUse );
        }

    iCurrObject->Reset();
	
	DBG_DUMP((void*)aStartPtr.Ptr(), aStartPtr.Length(), 
	        _S8("SendDataL (WBXML)") );
#ifdef __NSML_DEBUG__
	_DBG_FILE("CNsmlObexClient::SendDataL: CWbxml2XmlConverter::ConvertL() begin");
	CWbxml2XmlConverter* c = CWbxml2XmlConverter::NewLC();
	c->ConvertL(aStartPtr.Ptr(), aStartPtr.Length());
	DBG_DUMP((void*)c->Document().Ptr(), c->Document().Length(), 
	        _S8("SendDataL (XML)") );
	CleanupStack::PopAndDestroy(); // c
	_DBG_FILE("CNsmlObexClient::SendDataL: CWbxml2XmlConverter::ConvertL() end");
#endif // __NSML_DEBUG__
		        
	iDocumentLength = aStartPtr.Length();

	iDataBuf->Reset();
	iDataBuf->InsertL( 0, aStartPtr );
    TRAPD( err, iCurrObject->SetDataBufL( iDataBuf ) );

    if( KErrNone == err )
		{
        TBuf8<KNameLen> str;
		str.Copy( this->iMimeType->Des() );
        iCurrObject->SetTypeL( str );

        iClient->Put( *iCurrObject, iStatus );
		SetActive ();
		}
    }
开发者ID:kuailexs,项目名称:symbiandump-mw3,代码行数:53,代码来源:NSmlObexClient.cpp

示例11: RfcommPutData

unsigned char RfcommPutData(const unsigned char *pData, unsigned short uLen)
{
    unsigned char bCtrl, bFCS, bMsgType, bMsgLen;
    unsigned char uOffset, uMsgOffset, bChNumber;
    unsigned short uFrameHdrLen, uFrameInfLen;
    unsigned char bRetVal= FALSE_, bHasCrField = FALSE_;
    RFCOMM_CHANNEL *psChannel = NULL;

    DBG_INFO ("->");
    DBG_DUMP(pData, uLen);

    /*
     * Parse the header
     */
    ASSERT(uLen >= RFCOMM_HDR_LEN_1B);

    /* Get the Channel number and Control field */
    bChNumber = pData[0] >> 3;
    bCtrl = pData[1];
    /* Check the channel */
    psChannel = _RFCOMM_getChannel(bChNumber);
    if(NULL == psChannel)
    {
        return FALSE_;
    }

    /* Check if the len field has 1 or 2 octets */
    if ((pData[2] & RFCOMM_MASK_LI_1B))
    {
        uFrameHdrLen = RFCOMM_HDR_LEN_1B;
        uFrameInfLen = pData[2] >> 1;
    }
开发者ID:12bits,项目名称:openmovement,代码行数:32,代码来源:rfcomm.c

示例12: Cmd_dsc_shutdown

BOOL Cmd_dsc_shutdown(CHAR* strCmd)
{
    DBG_DUMP("Dsc Shutdown\r\n");
    //System_PowerOff(SYS_POWEROFF_NORMAL);
    Ux_SendEvent(0, NVTEVT_SYSTEM_SHUTDOWN, 1, 0); //shutdown start
    return TRUE;
}
开发者ID:magic-gjh,项目名称:NT96655_FHD6600,代码行数:7,代码来源:SysCmdCB.c

示例13: Cmd_time_lapse_test

BOOL Cmd_time_lapse_test(CHAR* strCmd)
{
    UINT32 uiTmpLapseOption;

    sscanf(strCmd,"%d", &uiTmpLapseOption);

    DBG_DUMP("Test time-lapse option=%d\r\n", uiTmpLapseOption);

    switch(uiTmpLapseOption)
    {
      case 0:
      default:
        SysSetFlag(FL_MOVIE_TIMELAPSE_REC,  MOVIE_TIMELAPSEREC_OFF);
        break;
      case 1:
        SysSetFlag(FL_MOVIE_TIMELAPSE_REC,  MOVIE_TIMELAPSEREC_100MS);
        break;
      case 2:
        SysSetFlag(FL_MOVIE_TIMELAPSE_REC,  MOVIE_TIMELAPSEREC_200MS);
        break;
      case 3:
        SysSetFlag(FL_MOVIE_TIMELAPSE_REC,  MOVIE_TIMELAPSEREC_500MS);
        break;
    }
    return TRUE;
}
开发者ID:magic-gjh,项目名称:NT96655_FHD6600,代码行数:26,代码来源:SysCmdCB.c

示例14: Cmd_mode_sidc

BOOL Cmd_mode_sidc(CHAR* strCmd)
{
#if (UI_STYLE!=UI_STYLE_DRIVER)
    DBG_DUMP("USB SIDC Mode\r\n");
    Ux_PostEvent(NVTEVT_SYSTEM_MODE, 1, PRIMARY_MODE_USBSIDC);
#endif
    return TRUE;
}
开发者ID:magic-gjh,项目名称:NT96655_FHD6600,代码行数:8,代码来源:SysCmdCB.c

示例15: Cmd_dsc_boot

BOOL Cmd_dsc_boot(CHAR* strCmd)
{
    DBG_DUMP("Dsc Boot\r\n");
    //DscMain();
    // Start Dsc System
    //System_PowerOn(SYS_POWERON_NORMAL);
    GxSystem_PowerOn(); //boot start
    return TRUE;
}
开发者ID:magic-gjh,项目名称:NT96655_FHD6600,代码行数:9,代码来源:SysCmdCB.c


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