Zephyr API 3.6.99
|
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. | |
RFCOMM DLC operations structure.
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.
dlc | The dlc that has been connected |
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)
dlc | The dlc that has been Disconnected |
void(* bt_rfcomm_dlc_ops::recv) (struct bt_rfcomm_dlc *dlc, struct net_buf *buf) |
DLC recv callback.
dlc | The dlc receiving data. |
buf | Buffer containing incoming data. |
void(* bt_rfcomm_dlc_ops::sent) (struct bt_rfcomm_dlc *dlc, int err) |
DLC sent callback.
dlc | The dlc which has sent data. |
err | Sent result. |