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

📄 piohshf_init.c

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