indicators.c
来自「蓝牙HANDFREE软件源代码」· C语言 代码 · 共 30 行
C
30 行
#include "handsfree_private.h"
#include "handsfree.h"
/*
hfIndicatorStatusInd
Indicator status update received.
*/
void hfIndicatorStatusInd(const HANDSFREE_INDICATOR_STATUS_IND_T *ind)
{
/* If the call active indicator is being toggled then reset call set-up */
if (HFstate.hfCallActive != ind->callStatus)
HFstate.hfCallSetup = 0;
else
HFstate.hfCallSetup = ind->callSetupStatus;
/* Store the call setup indicator */
HFstate.hfCallActive = ind->callStatus;
if (!HFstate.hfCallSetup || HFstate.hfCallActive)
{
/* Reset the rining flag on call active or call_setup = 0 */
HFstate.ringing = 0;
}
/* Tell the interface */
handleIndicatorUpdate(ind->serviceStatus, ind->callStatus, ind->callSetupStatus);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?