Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_l2cap_br_echo_cb Struct Reference

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.
 

Detailed Description

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.

Field Documentation

◆ req

void(* bt_l2cap_br_echo_cb::req) (struct bt_conn *conn, uint8_t identifier, struct net_buf *buf)

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.

Parameters
connThe ACL connection object.
identifierThe identifier of the ECHO request.
bufReceived ECHO data.

◆ rsp

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.

Parameters
connThe ACL connection object.
bufReceived ECHO data.

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