base/ANTInterface.c
void WaitForResponse(TimeoutAlarmStruct* pclTimeoutStruct_, UCHAR ucChannel_, UCHAR ucResponseID_, UCHAR ucMessageID_)
{  

   pclTimeoutStruct_->stTimeoutStruct.ucMessageID = ucMessageID_;
   pclTimeoutStruct_->stTimeoutStruct.ucResponseID = ucResponseID_;
   pclTimeoutStruct_->stTimeoutStruct.ucChannel = ucChannel_;

   pclTimeoutStruct_->stTimeoutStruct.bWaitingForResponse = TRUE;

   Timer_Start( pclTimeoutStruct_->ucAlarmNumber, pclTimeoutStruct_->stTimeoutStruct.usTimeout);    // Start the command timeout timer         
}
/**************************************************************************
 * WaitForResponse
 * 
 * Sets state variables and starts timer. Called when a command is sent
 * that requires some response. 
 *
 * Params: 
 *
 * ucChannel_: ANT Channel
 * ucResponseID_: Message ID of the response we are waiting for
 * ucMessageID_: The message ID of the message just sent (the one istigating the response)
 *
 * 
 * returns: Right away
 *
 **************************************************************************/


Sets state variables and starts timer. Called when a command is sent
that requires some response.



ANT Channel
ucResponseID_: Message ID of the response we are waiting for
ucMessageID_: The message ID of the message just sent (the one istigating the response)

Right away
Sets state variables and starts timer . Called when a command is sent that requires some response . ANT Channel ucResponseID_ : Message ID of the response we are waiting for ucMessageID_ : The message ID of the message just sent ( the one istigating the response ) Right away
void WaitForResponse(TimeoutAlarmStruct* pclTimeoutStruct_, UCHAR ucChannel_, UCHAR ucResponseID_, UCHAR ucMessageID_)
{  
   pclTimeoutStruct_->stTimeoutStruct.ucMessageID = ucMessageID_;
   pclTimeoutStruct_->stTimeoutStruct.ucResponseID = ucResponseID_;
   pclTimeoutStruct_->stTimeoutStruct.ucChannel = ucChannel_;
   pclTimeoutStruct_->stTimeoutStruct.bWaitingForResponse = TRUE;
   Timer_Start( pclTimeoutStruct_->ucAlarmNumber, pclTimeoutStruct_->stTimeoutStruct.usTimeout);    
}
void WaitForResponse ( TimeoutAlarmStruct * pclTimeoutStruct_ , UCHAR ucChannel_ , UCHAR ucResponseID_ , UCHAR ucMessageID_ ) { pclTimeoutStruct_ -> stTimeoutStruct . ucMessageID = ucMessageID_ ; pclTimeoutStruct_ -> stTimeoutStruct . ucResponseID = ucResponseID_ ; pclTimeoutStruct_ -> stTimeoutStruct . ucChannel = ucChannel_ ; pclTimeoutStruct_ -> stTimeoutStruct . bWaitingForResponse = TRUE ; Timer_Start ( pclTimeoutStruct_ -> ucAlarmNumber , pclTimeoutStruct_ -> stTimeoutStruct . usTimeout ) ; }
WaitForResponse
WaitForResponse
// Start the command timeout timer         