piohshf_init.c
来自「蓝牙HANDFREE软件源代码」· C语言 代码 · 共 48 行
C
48 行
#include "piohshf_private.h"
#include "piohshf.h"
#include "handsfree.h"
#include <button.h>
/* Define the features supported by this app as registered in its SDP record. */
#define EC_NR_ENABLED 0
#define CALL_WAITING_ENABLED 0
#define CLI_DISPLAY_ENABLED 4
#define VOICE_RECOG_ENABLED 8
#define REMOTE_VOL_CTRL 16
hshfLocalState hshfState;
/*
pioHsHfInit
Start up the PIO driven combined headset/ hands_free application. This
function initialises buttons, starts LEDs flashing and initialises the
libs used by this app. In short it gets things going.
*/
void pioHsHfInit(void)
{
uint16 supp_features =
(EC_NR_ENABLED |
CALL_WAITING_ENABLED |
CLI_DISPLAY_ENABLED |
VOICE_RECOG_ENABLED |
REMOTE_VOL_CTRL);
/* Initialise the button scanning */
ButtonInit(PIOHSHF_BUTTONS_USED, ButtonDirect);
/* Initialise the flashing LEDs */
pioHsHfFlashInit();
/* Start the application */
startReqAction(supp_features, (uint16)(frameworkHeadset | frameworkHandsFree));
}
/*Mute and IGN initialisation*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?