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

📄 reset.c

📁 蓝牙耳机软件源代码
💻 C
字号:
#include "demohs.h"
#include "hal.h"

#include <message.h>
#include <framework.h>


/*
    resetReq

    The user has pressed some combination of buttons which means that
    they want to reset any knowledge of pairing so we ask the
    framework to handle this for us.
*/
void resetReq(void)
{
    /* Send a reset req to the framework */
    MAKE_MSG(HS_RESET_REQ) ;
    putMsg(msg) ;  
}


/*
    resetCfm

    Hard reset cmpleted
*/
void resetCfm(void)
{
    /* go into pairing mode */
    pairButton();
}


/*
    errorInd

    Indication that an error has occurred. Look at the reson code to
    find out exactly what the error is.
*/
void errorInd(const HS_ERROR_IND_T *ind)
{
    ind = ind; /* stop the compiler complaining */

    /* Add code to handle different error types here */
}

⌨️ 快捷键说明

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