请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TIDA-020047 工具与软件:
您好!
我正在调试 LVDS 数据采集、但当运行到 CSIConfig 接口时、 该函数中的状态采集 一直失败。 isComplexIOpowerStatusCSIRX_complexioGetPowerStatus
如何解决该 问题?
无法获得、并且始终保持为0。 powerStatus
Therefore, this condition is always satisfied: while (isComplexIOpowerStatus == 0);
uint8_t isComplexIOpowerStatus = 1;
do
{
errorCode = CSIRX_complexioGetPowerStatus(CascadeMCB->csiRxHandle[u32DevIdx], &isComplexIOpowerStatus);
ClockP_usleep(1000);
if(errorCode != SystemP_SUCCESS)
{
/* test_print("CSIRX_getComplexIOpowerStatus failed, errorCode = %d\n", errorCode); */
DebugP_assert (0);
return;
}
}while(isComplexIOpowerStatus == 0);
int32_t CSIRX_complexioGetPowerStatus (CSIRX_Handle handle, uint8_t *powerStatus)
{
int32_t status = SystemP_SUCCESS;
CSIRX_Config *config = (CSIRX_Config *)handle;
if( config == NULL
|| config->object == NULL
|| config->hwAttrs == NULL
|| config->hwAttrs->csirxRegs == 0
|| powerStatus == NULL
)
{
status = SystemP_FAILURE;
}
else
{
CSL_csirxRegs *regs = (CSL_csirxRegs *) config->hwAttrs->csirxRegs;
*powerStatus = (uint8_t)CSL_REG32_FEXT(& regs->COMPLEXIO_CFG1, CSI2_COMPLEXIO_CFG1_PWR_STATUS);
}
return status;
}