localstate.c
来自「蓝牙HANDFREE软件源代码」· C语言 代码 · 共 29 行
C
29 行
#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 + =
减小字号Ctrl + -
显示快捷键?