⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 indicators.c

📁 蓝牙HANDFREE软件源代码
💻 C
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -