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

◆ dtm_tw_to_hci_process_tw_cmd()

dtm_tw_to_hci_status_t dtm_tw_to_hci_process_tw_cmd ( const uint16_t tw_cmd,
struct net_buf * hci_cmd,
uint16_t * tw_event )

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

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

Note
CTE and antenna switching features are not currently supported by this library.
Parameters
[in]tw_cmd2-wire command to process.
[out]hci_cmdBuffer for the generated HCI command (allocated by caller), if any.
[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_HCI_CMDAn HCI command was generated and stored in hci_cmd .
DTM_TW_TO_HCI_STATUS_ERRORAn error was encountered during processing. No output was generated.