#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_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. |
- Returns
- Status of the processing result.
- Return values
-
| 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. |