本文整理汇总了C++中debug_err函数的典型用法代码示例。如果您正苦于以下问题:C++ debug_err函数的具体用法?C++ debug_err怎么用?C++ debug_err使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了debug_err函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Cal_ShowCalRst
//ethan_20110801_add
ER Cal_ShowCalRst(void)
{
ER ercode = 0;
FLGPTN uiFlag = 0;
ercode = Cal_ReadCalData();
if(ercode!=E_OK)
{
debug_err(("^R %s: read ps error\r\n",__func__));
return E_SYS;;
}
Cal_ClearOSD(_OSD_INDEX_TRANSPART);
if((AAA_Adjust.DP_Status.Prv_White == _Prv_W_Status) && \
(AAA_Adjust.DP_Status.Prv_Black== _Prv_B_Status))
{
sprintf(CalStringBuffer,"DP Pixel num: Prv:%d",(UINT)AAA_Adjust.DPC_Num[DPC_PRV]);
Cal_ShowStringWithColor(CalStringBuffer,20, 20, 4);
}
if((AAA_Adjust.DP_Status.Cap_White == _Cap_W_Status) && \
(AAA_Adjust.DP_Status.Cap_Black == _Cap_B_Status))
{
sprintf(CalStringBuffer,"DP Pixel num: Cap:%d",(UINT)AAA_Adjust.DPC_Num[DPC_CAP]);
Cal_ShowStringWithColor(CalStringBuffer,20, 40, 4);
}
if(AAA_Adjust.ECS_Status == _ECS_Status)
sprintf(CalStringBuffer,"ECS Rst: OK");
else
sprintf(CalStringBuffer,"ECS Rst: NG");
Cal_ShowStringWithColor(CalStringBuffer,20, 60, 4);
if(AAA_Adjust.AWB_Status == _AWB_Status)
sprintf(CalStringBuffer,"AWB: Rgain:%d Bgain:%d",AAA_Adjust.AWB.Rgain,AAA_Adjust.AWB.Bgain);
else
sprintf(CalStringBuffer,"AWB: NG");
Cal_ShowStringWithColor(CalStringBuffer,20, 80, 4);
if(AAA_Adjust.AWBGS_Status == _AWB_Status)
sprintf(CalStringBuffer,"AWB GS: Rgain:%d Bgain:%d",AAA_Adjust.AWBGS.Rgain,AAA_Adjust.AWBGS.Bgain);
else
sprintf(CalStringBuffer,"AWBGS: NG");
Cal_ShowStringWithColor(CalStringBuffer,20, 100, 4);
sprintf(CalStringBuffer,"Press SHUTTER to return");
Cal_ShowStringWithColor(CalStringBuffer,20, 120, 4);
clr_flg(FLG_ID_KEY, FLGKEY_SHUTTER2);
wai_flg(&uiFlag, FLG_ID_KEY, FLGKEY_SHUTTER2, TWF_ORW | TWF_CLR);
return E_OK;
}
示例2: VolDet_Init
/**
Initialize voltage detection
Initialize voltage detection for battery and flash
@param void
@return void
*/
void VolDet_Init(void)
{
if (adc_open(VOLDET_FLASH_ADC_CH) != E_OK)
{
debug_err(("VOLDET ERR: Can't open ADC channel for flash detection\r\n"));
return;
}
// Set mode for flash voltage detection
adc_setMode(VOLDET_FLASH_ADC_CH, TRUE, FALSE, NULL);
// Enable adc control logic
adc_enable();
}
示例3: UIFlowWndPhoto_OnExeZoomIn
static INT32 UIFlowWndPhoto_OnExeZoomIn(VControl *pCtrl, UINT32 paramNum, UINT32 *paramArray)
{
UINT32 uiEvtKeyAct = 0;
if(paramNum > 0)
uiEvtKeyAct = paramArray[0];
switch(uiEvtKeyAct)
{
case NVTEVT_KEY_PRESS:
case NVTEVT_KEY_CONTINUE:
if (DZOOM_IDX_GET() > DZOOM_IDX_MAX())
{
Ux_SendEvent(&CustomPhotoObjCtrl,NVTEVT_EXE_ZOOM,2, UI_ZOOM_CTRL_STOP, UI_GetData(FL_Dzoom));
gPhotoData.State &= ~PHOTO_ST_ZOOM;
return NVTEVT_CONSUME;
}
switch(gPhotoData.State)
{
case PHOTO_ST_VIEW:
case PHOTO_ST_VIEW|PHOTO_ST_ZOOM:
/* set Digital Zoom interface */
UI_SetData(FL_ZoomIFIndex,ZOOM_IF_DIGITAL);
/*
* Suspend all keys while keep ZoomIn pressed.
* Gotta resume them after ZoomIn key released.
*/
Input_SetKeyMask(KEY_PRESS, FLGKEY_KEY_MASK_NULL);
FlowPhoto_ForceLockFdSd();
gPhotoData.State |= PHOTO_ST_ZOOM;
Ux_SendEvent(&CustomPhotoObjCtrl,NVTEVT_EXE_ZOOM,2, UI_ZOOM_CTRL_IN,UI_GetData(FL_Dzoom));
break;
}
break;
case NVTEVT_KEY_RELEASE:
Ux_SendEvent(&CustomPhotoObjCtrl,NVTEVT_EXE_ZOOM,2, UI_ZOOM_CTRL_STOP,UI_GetData(FL_Dzoom));
gPhotoData.State &= ~PHOTO_ST_ZOOM;
FlowPhoto_SetFdSdProc(FlowPhoto_GetSDStatus());
/* Resume keys after ZoomIn released */
Input_SetKeyMask(KEY_PRESS, g_uiMaskKeyPress);
break;
default:
debug_err(("UIFlowWndPhoto_OnKeyZoomin: Unknown evt 0x%x\r\n", uiEvtKeyAct));
break;
}
return NVTEVT_CONSUME;
}
示例4: MsdcNvtCb_LcdGetFreeMem
void MsdcNvtCb_LcdGetFreeMem(void* pData)
{
tMSDCEXT_LCD_DRV_MEM_POOL_GET* pDesc = BEGIN_MSDC_NVT_CB(tMSDCEXT_LCD_DRV_MEM_POOL_GET,pData);
if(pDesc==NULL)
{
debug_err(("MsdcNvtCb_LcdGetFreeMem(): is failed!\r\n"));
return;
}
get_blk((void *)&pDesc->PoolAddr, POOL_ID_CAPTURE);
rel_blk(POOL_ID_CAPTURE, (VP)pDesc->PoolAddr);
pDesc->PoolSize = POOL_SIZE_CAPTURE;
pDesc->tParent.bOK = TRUE;
}
示例5: Cal_DPinBurnIn
void Cal_DPinBurnIn(BOOL checkStatus)
{
ALG_CAL_PARAM CalParam;
if( (checkStatus) && (AAA_Adjust.DP_Status.Prv_Black==_Prv_B_Status)&&(AAA_Adjust.DP_Status.Cap_Black==_Cap_B_Status) )
{
char StringBuf[64];
sprintf(StringBuf,"dark pixel ok \r\n");
debug_err(("%s \r\n",StringBuf));
Cal_ShowString(StringBuf, &BurnInStringRect, TRUE);
debug_err(("warn pixel ok \r\n"));
return ;
}
else
{
char StringBuf[64];
sprintf(StringBuf,"n warn dark defect pixel \r\n");
debug_err(("%s \r\n",StringBuf));
Cal_ShowString(StringBuf, &BurnInStringRect, TRUE);
debug_err(("rn warn dark defect pixel \r\n"));
}
// Close all task
AppInit_Close();
CalParam.FnShowString = Cal_ShowRectStringWithColor;
CalParam.MemoryAddr = Cal_GetMemoryAddr();
CalParam.MemorySize = Cal_GetMemorySize();
Alg_Cal(CAL_DEFECTPIXEL_DARK, &CalParam);
//change back to photo mode
Primary_ChangeMode(PRIMARY_MODE_PHOTO);
}
示例6: Cal_GetDefaultCal
UINT32 Cal_GetDefaultCal(INT8 * pFileName)
{
#if 0
UINT32 itemNum = 0;
UINT32 pCalTxtBuf;
UINT32 filesize = 5*1024;
SysGetSICDAddr(&pCalTxtBuf);
memset((char *)pCalTxtBuf,0,256);
FilesysWaitInitFinish(FST_TIME_INFINITE);
if(FilesysReadWriteByName2(FST_CMD_READ_BY_NAME,
(char *)pFileName,
(UB *)pCalTxtBuf,
(UW *)&filesize,
0,
FST_TIME_INFINITE)==FST_STA_OK)
{
if(filesize >0)
{
debug_err(("%s",pCalTxtBuf));
for(itemNum =0 ; itemNum <= g_CalMaxItemNum; itemNum++)
{
if(strncmp((char *)pCalTxtBuf,
g_CalItem[itemNum].pItemName,strlen(g_CalItem[itemNum].pItemName))==0)
{
debug_err((" %s \r\n",g_CalItem[itemNum].pItemName));
return itemNum;
}
}
}
}
#endif
return CAL_INVALID_DEFAULT;
}
示例7: GSensor_DA380_GetStatus
BOOL GSensor_DA380_GetStatus(Gsensor_Data *GS_Data)
{
short x = 0,y = 0,z = 0;
static short prev_x= 0,prev_y= 0,prev_z= 0;
char upd = 0, rot = 0, prev_rot = 0x0F;
static UINT32 updCount = 0;
INT32 xyz;
int ret=FALSE;
UINT32 stSens = 0;
double dlSens = 0.0;
ret = mir3da_read_data(&x,&y,&z);
rotate(&rot,&upd,x,y,z);
xyz = GSensor_DA380_GetSensitivityLevel();
//debug_msg("[email protected] GSensor_DA380_GetStatus:x=%d,y=%d,z=%d\r\n", x, y, z);
g_stGsenX = x;
g_stGsenY = y;
g_stGsenZ = z;
//debug_msg("[email protected] GSensor_DA380_GetStatus:g_stGsenX=%d,g_stGsenY=%d,g_stGsenZ=%d\r\n", g_stGsenX, g_stGsenY, g_stGsenZ);
//[email protected] begin
#if(_MODEL_DSC_ == _MODEL_CARDV_K12_)
if ((abs(x-prev_x )> LAPSE_REC_TRIG_VALUE)||
(abs(y-prev_y )> LAPSE_REC_TRIG_VALUE)||
(abs(z-prev_z )> LAPSE_REC_TRIG_VALUE))
{
g_bLapseRecFlag = TRUE;
}
else
{
g_bLapseRecFlag = FALSE;
}
#endif
//[email protected] end
if ((abs(x-prev_x )> xyz)||
(abs(y-prev_y )> xyz)||
(abs(z-prev_z )> xyz))
{
debug_err((">>>> DA380 gsensor-move-----\r\n"));
ret=TRUE;//return TRUE;
}
prev_x = x;
prev_y = y;
prev_z = z;
return ret;//FALSE;
}
示例8: SetupExe_OnWifiStart
INT32 SetupExe_OnWifiStart(VControl *pCtrl, UINT32 paramNum, UINT32 *paramArray)
{
UINT32 result =0;
static char buf1[32];
char MacAddr[6];
LED_TurnOnLED(GPIOMAP_LED_FCS);
#if (defined(__ECOS) && (_NETWORK_ == _NETWORK_SDIO_EVB_WIFI_))
#if (CARDV_ON_MEDIA_BOX_DEMO ==ENABLE)
UINet_SetSSID("RTKSurveillance",strlen("RTKSurveillance"));
UINet_SetAuthType(NET_AUTH_NONE);
UI_SetData(FL_NetWorkMode,NETWORK_STATION_MODE);
#else
#if 1 // AP Mode.
//UINet_SetSSID("RTKSurveillance",strlen("RTKSurveillance"));
UINet_SetSSID("DAZA",strlen("DAZA"));
UI_SetData(FL_NetWorkMode,NETWORK_AP_MODE);
#else // Station Mode.
UINet_SetSSID("MyAP",strlen("MyAP")); // SSID of AP
UINet_SetAuthType(NET_AUTH_WPA2);
UINet_SetPASSPHRASE("123456780",strlen("12345678")); // Password of AP
UI_SetData(FL_NetWorkMode,NETWORK_STATION_MODE);
#endif
#endif
result= UINet_WifiInit(UI_GetData(FL_NetWorkMode));
#elif(defined(__ECOS) && (_NETWORK_ == _NETWORK_SPI_EVB_ETHERNET_))
UI_SetData(FL_NetWorkMode,NETWORK_STATION_MODE);
result=UINet_LanInit(UI_GetData(FL_NetWorkMode));
#endif
if(result==0)
{
//GxLED_SetCtrl(KEYSCAN_LED_RED,SET_TOGGLE_LED,FALSE);
//GxLED_SetCtrl(KEYSCAN_LED_RED,TURNON_LED,TRUE);
UI_SetData(FL_WIFI_LINK,WIFI_LINK_OK);
SxTimer_SetFuncActive(SX_TIMER_DET_AUTOPOWEROFF_ID,FALSE);
}
else
{
//GxLED_SetCtrl(KEYSCAN_LED_RED,SETLED_SPEED,GXLED_1SEC_LED_TOGGLE_CNT/10);
//GxLED_SetCtrl(KEYSCAN_LED_RED,SET_TOGGLE_LED,TRUE);
//GxLED_SetCtrl(KEYSCAN_LED_RED,TURNON_LED,TRUE);
UI_SetData(FL_WIFI_LINK,WIFI_LINK_NG);
}
debug_err(("BackgroundWiFiOn %d result %d\r\n",UI_GetData(FL_NetWorkMode),result));
return NVTEVT_CONSUME;
}
示例9: DbgSys_MsgReceive
static ER DbgSys_MsgReceive(CHAR* pMsg)
{
UINT32 nCnt;
CHAR* pDst;
CHAR* pSrc = pMsg;
tMSDCVENDOR_CTRL* pCtrl = MsdcVendorNvt_GetCtrl();
tMSDCVENDOR_HOST_INFO* pHost = &pCtrl->tHostInfo;
tMSDCVENDOR_DBGSYS_CTRL* pDbgSys = &pCtrl->tDbgSys;
UINT32 nMaxLen = pDbgSys->PayloadSize-1;
pDst = (CHAR*)pDbgSys->Queue[pDbgSys->iMsgIn].pMsg;
nCnt = 0;
while((*pMsg)!=0 && nMaxLen--)
{
*(pDst++) = *(pMsg++);
nCnt++;
}
*pDst = 0;
nCnt++;
DbgSys_Lock();
pDbgSys->Queue[pDbgSys->iMsgIn].nUsedBytes = nCnt;
pDbgSys->iMsgIn = (pDbgSys->iMsgIn+1)&pDbgSys->MsgCntMask;
DbgSys_UnLock();
if(!pDbgSys->bNoOutputUart)
uart_putString(pSrc);
//Check Next Payload is Empty
nCnt = pDbgSys->Queue[pDbgSys->iMsgIn].nUsedBytes;
if(pDbgSys->iMsgIn==pDbgSys->iMsgOut && nCnt!=0)
{
INT32 nRetry = 200; //Retry 2 sec for Crash Detect
//Wait to Free Payload by PC Getting
while(pDbgSys->iMsgIn==pDbgSys->iMsgOut && nRetry--)
TimerDelayMs(10);
if(nRetry<0)
{
DbgSys_Close((tDBGSYS_RESPONSE*)pHost->pPoolMem);
debug_err(("^RDbgSys_MsgReceive Closed, due to buffer not empty,pDbgSys->iMsgIn=%d\r\n",pDbgSys->iMsgIn));
return E_OK;
}
}
return E_OK;
}
示例10: Init_GSInfo
void Init_GSInfo(void)
{
debug_msg("[Init_MenuInfo][PStore update GSCali]\r\n");
if (bGSReady)
{
if (GSCaliInfo.uiVerifyCode == GSCALI_VERIFICATION)
{
GSSensor_ReadCalData(GSCaliInfo.GSCalData);
}
else
{
debug_err(("^R Calbration data of G Sensor is invalid, Using default value\r\n"));
}
}
}
示例11: MsdcVendorNvt_Function_DbgSys
//Debug System Vendor Command
void MsdcVendorNvt_Function_DbgSys(void)
{
tMSDCVENDOR_CTRL* pCtrl = MsdcVendorNvt_GetCtrl();
tMSDCVENDOR_HOST_INFO* pHost = &pCtrl->tHostInfo;
UINT8 iCmd = pHost->pCBW->CBWCB[11];
void* pInfo = pHost->pPoolMem;
if(!pCtrl->tDbgSys.bInit)
{
debug_err(("MsdcDbgSys has not been initial\r\n"));
return;
}
if(iCmd<sizeof(CallMap)/sizeof(tMSDCVENDOR_FUNCTION_CMD_HANDLE)
&& iCmd == CallMap[iCmd].iCall
&& CallMap[iCmd].pCall!=NULL)
{
CallMap[iCmd].pCall(pInfo);
}
else
{
debug_err(("MsdcVendorNvt_Function_DbgSys: Call Map Wrong!\r\n"));
}
}
示例12: Cal_SetImageInfor_Value
void Cal_SetImageInfor_Value(UINT32 uiRepeatCnt)
{
VControl *pSysCtrl = Ux_GetSysObj();
debug_err(("Cal_SetImageInfor_Value %x flash %d\r\n",uiRepeatCnt ,ImageInfoTable[uiRepeatCnt].ubFlashIndex));
Ux_SendEvent(pSysCtrl,NVTEVT_EXE_FLASH,1,ImageInfoTable[uiRepeatCnt].ubFlashIndex);
Ux_SendEvent(pSysCtrl,NVTEVT_EXE_SIZE,1,ImageInfoTable[uiRepeatCnt].ubSizeIndex);
Ux_SendEvent(pSysCtrl,NVTEVT_EXE_QUALITY,1,ImageInfoTable[uiRepeatCnt].ubQualityIndex);
Ux_SendEvent(pSysCtrl,NVTEVT_EXE_SCENEMODE,1,ImageInfoTable[uiRepeatCnt].ubSceneIndex);
Ux_SendEvent(pSysCtrl,NVTEVT_EXE_ISO,1,ImageInfoTable[uiRepeatCnt].ubISOIndex);
Ux_SendEvent(pSysCtrl,NVTEVT_EXE_COLOR,1,ImageInfoTable[uiRepeatCnt].ubColorIndex);
Ux_SendEvent(pSysCtrl,NVTEVT_EXE_SATURATION,1,ImageInfoTable[uiRepeatCnt].ubSaturationIndex);
Ux_SendEvent(pSysCtrl,NVTEVT_EXE_SHARPNESS,1,ImageInfoTable[uiRepeatCnt].ubSharpnessIndex);
}
示例13: heat_write_date_into_sqlite
/************************************************************************************************
注意:接收到完整的数据后写数据库
参数1:数组指针
参数2:表类型
返回 CONTROL_RET_FAIL 发送失败, CONTROL_RET_SUC 发送成功
************************************************************************************************/
UINT8 heat_write_date_into_sqlite(MeterFileType *pmf, char *sq_data) {
char *zErrMsg = 0;
int rec;
char sq_dataIn[256] = { 0x00 };
heat_set_sqlite(pmf, sq_data, sq_dataIn);
rec = sqlite3_exec(sqlitedb, sq_dataIn, NULL, 0, &zErrMsg);
if (rec != SQLITE_OK) {
debug_err(gDebugModule[METER], "[%s][%s][%d] \n", FILE_LINE);
fprintf(stderr, "SQL error: %s/n", zErrMsg);
sqlite3_free(zErrMsg);
}
return rec;
}
示例14: cp2056_readData
static UINT32 cp2056_readData(void)
{
UINT32 i;
UINT32 uiBit = 0x0800;
UINT32 uiData = 0;
//UINT32 uiCount = 0;
gpio_clearPin(CP2056.Clk);
cp2056_delay();
gpio_setPin(CP2056.Clk);
cp2056_delay();
gpio_clearPin(CP2056.Clk);
cp2056_delay();
#if 0
while (gpio_getPin(CP2056.Busy))
{
gpio_clearPin(CP2056.Clk);
cp2056_delay();
gpio_setPin(CP2056.Clk);
cp2056_delay();
uiCount++;
if (uiCount > 1000)
{
debug_err(("TP timeout!\r\n"));
return 0;
}
};
gpio_clearPin(CP2056.Clk);
cp2056_delay();
#endif
for (i = 0; i < 12; i++)
{
gpio_setPin(CP2056.Clk);
cp2056_delay();
if (gpio_getPin(CP2056.In))
uiData |= uiBit;
uiBit >>= 1;
gpio_clearPin(CP2056.Clk);
cp2056_delay();
}
return uiData;
}
示例15: Load_TPInfo
void Load_TPInfo(void)
{
PPSTORE_SECTION_HANDLE pSection;
debug_msg("[Init_MenuInfo][PStore read TPCali]\r\n");
// Read TP calibration info from PStore
if ((pSection = PStore_OpenSection(PS_TP_CALI, PS_RDWR)) != E_PS_SECHDLER)
{
PStore_ReadSection((UINT8 *)&TPCaliInfo, 0, sizeof(TPCALI_INFO), pSection);
PStore_CloseSection(pSection);
bTPReady = 1;
}
else
debug_err(("^R Pstore of TouchPanel open to read FAIL\r\n"));
}