Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_rfcomm_dlc_ops Struct Reference

RFCOMM DLC operations structure. More...

#include <rfcomm.h>

Data Fields

void(* connected )(struct bt_rfcomm_dlc *dlc)
 DLC connected callback.
 
void(* disconnected )(struct bt_rfcomm_dlc *dlc)
 DLC disconnected callback.
 
void(* recv )(struct bt_rfcomm_dlc *dlc, struct net_buf *buf)
 DLC recv callback.
 
void(* sent )(struct bt_rfcomm_dlc *dlc, int err)
 DLC sent callback.
 

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.

◆ sent

void(* bt_rfcomm_dlc_ops::sent) (struct bt_rfcomm_dlc *dlc, int err)

DLC sent callback.

Parameters
dlcThe dlc which has sent data.
errSent result.

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