Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Bluetooth RFCOMM handling. More...
#include <zephyr/bluetooth/buf.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/l2cap.h>
Go to the source code of this file.
Data Structures | |
struct | bt_rfcomm_dlc_ops |
RFCOMM DLC operations structure. More... | |
struct | bt_rfcomm_dlc |
RFCOMM DLC structure. More... | |
struct | bt_rfcomm_server |
Macros | |
#define | BT_RFCOMM_HDR_MAX_SIZE 4 |
RFCOMM Maximum Header Size. | |
#define | BT_RFCOMM_FCS_SIZE 1 |
RFCOMM FCS Size. | |
#define | BT_RFCOMM_BUF_SIZE(mtu) |
Helper to calculate needed buffer size for RFCOMM PDUs. | |
Typedefs | |
typedef enum bt_rfcomm_role | bt_rfcomm_role_t |
Role of RFCOMM session and dlc. | |
Enumerations | |
enum | { BT_RFCOMM_CHAN_HFP_HF = 1 , BT_RFCOMM_CHAN_HFP_AG , BT_RFCOMM_CHAN_HSP_AG , BT_RFCOMM_CHAN_HSP_HS , BT_RFCOMM_CHAN_SPP , BT_RFCOMM_CHAN_DYNAMIC_START } |
enum | bt_rfcomm_role { BT_RFCOMM_ROLE_ACCEPTOR , BT_RFCOMM_ROLE_INITIATOR } |
Role of RFCOMM session and dlc. More... | |
Functions | |
int | bt_rfcomm_server_register (struct bt_rfcomm_server *server) |
Register RFCOMM server. | |
int | bt_rfcomm_dlc_connect (struct bt_conn *conn, struct bt_rfcomm_dlc *dlc, uint8_t channel) |
Connect RFCOMM channel. | |
int | bt_rfcomm_dlc_send (struct bt_rfcomm_dlc *dlc, struct net_buf *buf) |
Send data to RFCOMM. | |
int | bt_rfcomm_dlc_disconnect (struct bt_rfcomm_dlc *dlc) |
Disconnect RFCOMM dlc. | |
struct net_buf * | bt_rfcomm_create_pdu (struct net_buf_pool *pool) |
Allocate the buffer from pool after reserving head room for RFCOMM, L2CAP and ACL headers. | |
Bluetooth RFCOMM handling.