Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
hci_raw.h
Go to the documentation of this file.
1
5/*
6 * Copyright (c) 2016 Intel Corporation
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 */
10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_
11#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_
12
20#ifdef __cplusplus
21extern "C" {
22#endif
23
33int bt_send(struct net_buf *buf);
34
35enum {
42
50};
51
61
69
70#define BT_HCI_ERR_EXT_HANDLED 0xff
71
78#define BT_HCI_RAW_CMD_EXT(_op, _min_len, _func) \
79 { \
80 .op = _op, \
81 .min_len = _min_len, \
82 .func = _func, \
83 }
84
88
90 size_t min_len;
91
103 uint8_t (*func)(struct net_buf *buf);
104};
105
115
126int bt_enable_raw(struct k_fifo *rx_queue);
127
128#ifdef __cplusplus
129}
130#endif
135#endif /* ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_ */
int bt_send(struct net_buf *buf)
Send packet to the Bluetooth controller.
void bt_hci_raw_cmd_ext_register(struct bt_hci_raw_cmd_ext *cmds, size_t size)
Register Bluetooth RAW command extension table.
uint8_t bt_hci_raw_get_mode(void)
Get Bluetooth RAW channel mode.
int bt_enable_raw(struct k_fifo *rx_queue)
Enable Bluetooth RAW channel:
int bt_hci_raw_set_mode(uint8_t mode)
Set Bluetooth RAW channel mode.
@ BT_HCI_RAW_MODE_H4
Definition: hci_raw.h:49
@ BT_HCI_RAW_MODE_PASSTHROUGH
Definition: hci_raw.h:41
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: hci_raw.h:85
size_t min_len
Definition: hci_raw.h:90
uint8_t(* func)(struct net_buf *buf)
Definition: hci_raw.h:103
uint16_t op
Definition: hci_raw.h:87
Definition: kernel.h:2153
Network buffer representation.
Definition: buf.h:919
uint16_t size
Definition: buf.h:950