Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
bt_rfcomm_dlc_ops Struct Reference

RFCOMM DLC operations structure. More...

#include <rfcomm.h>

Data Fields

void(* connected )(struct bt_rfcomm_dlc *dlc)
 
void(* disconnected )(struct bt_rfcomm_dlc *dlc)
 
void(* recv )(struct bt_rfcomm_dlc *dlc, struct net_buf *buf)
 

Detailed Description

RFCOMM DLC operations structure.

Field Documentation

◆ connected

void(* bt_rfcomm_dlc_ops::connected) (struct bt_rfcomm_dlc *dlc)

DLC connected callback

If this callback is provided it will be called whenever the connection completes.

Parameters
dlcThe dlc that has been connected

◆ disconnected

void(* bt_rfcomm_dlc_ops::disconnected) (struct bt_rfcomm_dlc *dlc)

DLC disconnected callback

If this callback is provided it will be called whenever the dlc is disconnected, including when a connection gets rejected or cancelled (both incoming and outgoing)

Parameters
dlcThe dlc that has been Disconnected

◆ recv

void(* bt_rfcomm_dlc_ops::recv) (struct bt_rfcomm_dlc *dlc, struct net_buf *buf)

DLC recv callback

Parameters
dlcThe dlc receiving data.
bufBuffer containing incoming data.

The documentation for this struct was generated from the following file: