nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
dtm_twowire_to_hci.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef DTM_TWOWIRE_TO_HCI_H_
8#define DTM_TWOWIRE_TO_HCI_H_
9
10#include <stdint.h>
11#include <zephyr/net_buf.h>
12
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24typedef enum {
25 /* Returned when a 2-wire event was generated */
27 /* Returned when an HCI command was generated */
29 /* Returned when the provided HCI event was irrelevant to DTM */
31 /* Returned when an error was encountered while processing the command or event */
34
49dtm_tw_to_hci_status_t dtm_tw_to_hci_process_tw_cmd(const uint16_t tw_cmd, struct net_buf *hci_cmd,
50 uint16_t *tw_event);
51
66 const struct net_buf *hci_event,
67 uint16_t *tw_event);
68
69#ifdef __cplusplus
70}
71#endif
72
77#endif /* DTM_TWOWIRE_TO_HCI_H_ */
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)
Process an HCI event and generate a DTM 2-wire event.
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)
Process a DTM 2-wire command and generate either a 2-wire event or an HCI command.
dtm_tw_to_hci_status_t
Definition dtm_twowire_to_hci.h:24
@ DTM_TW_TO_HCI_STATUS_UNHANDLED
Definition dtm_twowire_to_hci.h:30
@ DTM_TW_TO_HCI_STATUS_HCI_CMD
Definition dtm_twowire_to_hci.h:28
@ DTM_TW_TO_HCI_STATUS_TW_EVENT
Definition dtm_twowire_to_hci.h:26
@ DTM_TW_TO_HCI_STATUS_ERROR
Definition dtm_twowire_to_hci.h:32