/*******************************************************************************
**
** Function         nfa_hciu_get_type_inst_names
**
** Description      This function returns command/response/event name.
**
** Returns          none
**
*******************************************************************************/
char *nfa_hciu_get_type_inst_names (UINT8 pipe, UINT8 type, UINT8 inst, char *p_buff)
{
    int   xx;

    xx = sprintf (p_buff, "Type: %s [0x%02x] ", nfa_hciu_type_2_str (type), type);

    switch (type)
    {
    case NFA_HCI_COMMAND_TYPE:
        sprintf (&p_buff[xx], "Inst: %s [0x%02x] ", nfa_hciu_instr_2_str (inst), inst);
        break;
    case NFA_HCI_EVENT_TYPE:
        sprintf (&p_buff[xx], "Evt: %s [0x%02x] ", nfa_hciu_evt_2_str (pipe, inst), inst);
        break;
    case NFA_HCI_RESPONSE_TYPE:
        sprintf (&p_buff[xx], "Resp: %s [0x%02x] ", nfa_hciu_get_response_name (inst), inst);
        break;
    default:
        sprintf (&p_buff[xx], "Inst: %u ", inst);
        break;
    }
    return (p_buff);
}
/*******************************************************************************
**
** Function         nfa_hciu_get_type_inst_names
**
** Description      This function returns command/response/event name.
**
** Returns          pointer to the name
**
*******************************************************************************/
char *nfa_hciu_get_type_inst_names (UINT8 pipe, UINT8 type, UINT8 inst)
{
    static char buff[100];
    int   xx;

    xx = sprintf (buff, "Type: %s  ", nfa_hciu_type_2_str (type));

    switch (type)
    {
    case NFA_HCI_COMMAND_TYPE:
        sprintf (&buff[xx], "Inst: %s ", nfa_hciu_instr_2_str (inst));
        break;
    case NFA_HCI_EVENT_TYPE:
        sprintf (&buff[xx], "Evt: %s ", nfa_hciu_evt_2_str (pipe, inst));
        break;
    case NFA_HCI_RESPONSE_TYPE:
        sprintf (&buff[xx], "Resp: %s ", nfa_hciu_get_response_name (inst));
        break;
    default:
        sprintf (&buff[xx], "Inst: %u ", inst);
        break;
    }
    return (buff);
}