nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ dtm_tw_to_hci_process_hci_event()

dtm_tw_to_hci_status_t dtm_tw_to_hci_process_hci_event ( const uint16_t tw_cmd,
const struct net_buf * hci_event,
uint16_t * tw_event )

#include <include/bluetooth/dtm_twowire/dtm_twowire_to_hci.h>

Process an HCI event and generate a DTM 2-wire event.

Parameters
[in]tw_cmd2-wire command that the caller is expecting a response to.
[in]hci_eventHCI event to process.
[out]tw_eventPointer to the generated 2-wire event, if any.
Returns
Status of the processing result.
Return values
DTM_TW_TO_HCI_STATUS_TW_EVENTA 2-wire event was generated and stored in tw_event .
DTM_TW_TO_HCI_STATUS_UNHANDLEDThe HCI event was irrelevant to DTM. No output was generated.
DTM_TW_TO_HCI_STATUS_ERRORAn error was encountered during processing. No output was generated.