Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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#include <stdint.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
35int bt_send(struct net_buf *buf);
36
37enum {
44
52};
53
63
71
72#define BT_HCI_ERR_EXT_HANDLED 0xff
73
80#define BT_HCI_RAW_CMD_EXT(_op, _min_len, _func) \
81 { \
82 .op = _op, \
83 .min_len = _min_len, \
84 .func = _func, \
85 }
86
90
92 size_t min_len;
93
105 uint8_t (*func)(struct net_buf *buf);
106};
107
117
128int bt_enable_raw(struct k_fifo *rx_queue);
129
130#ifdef __cplusplus
131}
132#endif
137#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
H:4 mode.
Definition hci_raw.h:51
@ BT_HCI_RAW_MODE_PASSTHROUGH
Passthrough mode.
Definition hci_raw.h:43
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Definition hci_raw.h:87
size_t min_len
Minimal length of the command.
Definition hci_raw.h:92
uint8_t(* func)(struct net_buf *buf)
Handler function.
Definition hci_raw.h:105
uint16_t op
Opcode of the command.
Definition hci_raw.h:89
Definition kernel.h:2391
Network buffer representation.
Definition buf.h:1004
uint16_t size
Amount of data that this buffer can store.
Definition buf.h:1036