Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
Connectionless data channel callback structure. More...
#include <l2cap_br.h>
Data Fields | |
uint16_t | psm |
Register PSM. | |
bt_security_t | sec_level |
Required minimum security level. | |
void(* | recv )(struct bt_conn *conn, uint16_t psm, struct net_buf *buf) |
A connectionless channel data has been received. | |
Connectionless data channel callback structure.
This structure is used for tracking the connectionless data channel frames. It is registered with the help of the bt_l2cap_br_connless_register() API. It's permissible to register multiple instances of this bt_l2cap_br_connless_cb type, in case different modules of an application are interested in tracking the connectionless data channel frames.
uint16_t bt_l2cap_br_connless_cb::psm |
Register PSM.
For BR, possible values:
The PSM field is at least two octets in length. All PSM values shall have the least significant bit of the most significant octet equal to 0 and the least significant bit of all other octets equal to 1.
0 Any connectionless data channel frame will be notified.
0x0001-0x0eff Standard, Bluetooth SIG-assigned fixed values.
0x1000 Dynamically allocated. May be pre-set by the application before server registration (not recommended however), or auto-allocated by the stack if the app gave 0 as the value.
A connectionless channel data has been received.
This callback notifies the application of a connectionless channel data has been received.
conn | The ACL connection object. |
psm | Protocol/Service Multiplexer. |
buf | Received connectionless channel data. |
bt_security_t bt_l2cap_br_connless_cb::sec_level |
Required minimum security level.