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

📄 localstate.c

📁 蓝牙HANDFREE软件源代码
💻 C
字号:
#include "handsfree_private.h"
#include "handsfree.h"


/* 
    setLocalState

    Use this function to update the local connect state
*/
void setLocalState(uint16 new_state)
{
    HFstate.connectState = new_state;
    handleLocalStateChange();
}


/*
    isLocalStateConnected

    Return true if SLC is connected and false otherwise
*/
uint16 isLocalStateConnected(void)
{
    if (HFstate.connectState == connected || HFstate.connectState == scoConnected)
        return 1;
    else 
        return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -