www.pudn.com > headset.rar > reset.c


#include "demohs.h" 
#include "hal.h" 
 
#include  
#include  
 
 
/* 
    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 */ 
}