![]() |
nRF Connect SDK API 3.4.99
|
| 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 <dtm_twowire_to_hci.h>
Process a DTM 2-wire command and generate either a 2-wire event or an HCI command.
| [in] | tw_cmd | 2-wire command to process. |
| [out] | hci_cmd | Buffer for the generated HCI command (allocated by caller), if any. |
| [out] | tw_event | Pointer to the generated 2-wire event, if any. |
| DTM_TW_TO_HCI_STATUS_TW_EVENT | A 2-wire event was generated and stored in tw_event . |
| DTM_TW_TO_HCI_STATUS_HCI_CMD | An HCI command was generated and stored in hci_cmd . |
| DTM_TW_TO_HCI_STATUS_ERROR | An error was encountered during processing. No output was generated. |