这段代码是获得baseline的。
<div class="blockcode"><blockquote>uint32_t Cy_CapSense_getbaseline(uint32_t widgetId,const cy_stc_capsense_context_t * context) // add by guolingling
{
uint16_t test=0;
const cy_stc_capsense_widget_config_t * ptrWdCfg;
//cy_stc_capsense_sensor_context_t * ptrSnsCxtSns;
ptrWdCfg = &context->ptrWdConfig[widgetId];
test = ptrWdCfg->ptrSnsContext[0].bsln; //ptrWdCfg->ptrWdContext->snsClk
return test;
}
这段代码是获得diffcount的。uint32_t Cy_CapSense_getbaseline(uint32_t widgetId,const cy_stc_capsense_context_t * context) // add by guolingling
{
uint16_t test=0;
const cy_stc_capsense_widget_config_t * ptrWdCfg;
//cy_stc_capsense_sensor_context_t * ptrSnsCxtSns;
ptrWdCfg = &context->ptrWdConfig[widgetId];
test = ptrWdCfg->ptrSnsContext[0].diff; //ptrWdCfg->ptrWdContext->snsClk
return test;
}
附件提供的测试工程可以通过bridge control panel进行实时打印数据。
get_mscv3_param.zip
(33.5 MB)
|