Zephyr Project API 4.1.99
A Scalable Open Source RTOS
|
ECHO request/response callback structure. More...
#include <l2cap_br.h>
Data Fields | |
void(* | req )(struct bt_conn *conn, uint8_t identifier, struct net_buf *buf) |
A ECHO request has been received. | |
void(* | rsp )(struct bt_conn *conn, struct net_buf *buf) |
A ECHO response has been received. | |
ECHO request/response callback structure.
This structure is used for tracking the ECHO request/response signaling packets of L2CAP BR. It is registered with the help of the bt_l2cap_br_echo_cb_register() API. It's permissible to register multiple instances of this bt_l2cap_br_echo_cb type, in case different modules of an application are interested in tracking the ECHO request/response signaling packets. If a callback is not of interest for an instance, it may be set to NULL and will as a consequence not be used for that instance.
A ECHO request has been received.
This callback notifies the application of a ECHO request has been received. The ECHO response should be performed by calling the bt_l2cap_br_echo_rsp() API.
conn | The ACL connection object. |
identifier | The identifier of the ECHO request. |
buf | Received ECHO data. |
void(* bt_l2cap_br_echo_cb::rsp) (struct bt_conn *conn, struct net_buf *buf) |
A ECHO response has been received.
This callback notifies the application of a ECHO response has been received.
conn | The ACL connection object. |
buf | Received ECHO data. |