Esempio n. 1
0
// -----------------------------------------------------------------------------
//! \brief      This routine notifies the app layer that the HS is complete
//!
//! \return     void
// -----------------------------------------------------------------------------
static void NPITL_handshakeCompleteCallBack(hsTransactionRole role)
{
    //If we are the initiator, give the app the signal to send the message
    //else if not the initiator, our TL is busy because we are listening(reading) 
    //whatever the initiator wanted to tell us
    if(HS_INITIATOR == role)
      trasnportLayerState = TL_ready;
    else 
      trasnportLayerState = TL_busy;
    
    //Trigger the HS complete callback in the task
    if (taskCBs.handshakeCompleteCB)
    {
        taskCBs.handshakeCompleteCB(role);
    }
}