📄 localstate.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 + -