zephyr/subsys/bluetooth/host/hci_raw_internal.h

36 lines
619 B
C

/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __BT_HCI_RAW_INTERNAL_H
#define __BT_HCI_RAW_INTERNAL_H
#include <zephyr/devicetree.h>
#include <zephyr/net_buf.h>
#ifdef __cplusplus
extern "C" {
#endif
struct bt_dev_raw {
#if DT_HAS_CHOSEN(zephyr_bt_hci)
const struct device *hci;
#else
/* Registered HCI driver */
const struct bt_hci_driver *drv;
#endif
};
#if DT_HAS_CHOSEN(zephyr_bt_hci)
int bt_hci_recv(const struct device *dev, struct net_buf *buf);
#endif
extern struct bt_dev_raw bt_dev;
#ifdef __cplusplus
}
#endif
#endif /* __BT_HCI_RAW_INTERNAL_H */