|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
PBAP PSE (Phone Book Server Equipment) callback operations structure. More...
#include <zephyr/bluetooth/classic/pbap.h>
Data Fields | |
| void(* | rfcomm_connected )(struct bt_conn *conn, struct bt_pbap_pse *pbap_pse) |
| RFCOMM transport connected callback. | |
| void(* | rfcomm_disconnected )(struct bt_pbap_pse *pbap_pse) |
| RFCOMM transport disconnected callback. | |
| void(* | l2cap_connected )(struct bt_conn *conn, struct bt_pbap_pse *pbap_pse) |
| L2CAP transport connected callback. | |
| void(* | l2cap_disconnected )(struct bt_pbap_pse *pbap_pse) |
| L2CAP transport disconnected callback. | |
| void(* | connect )(struct bt_pbap_pse *pbap_pse, uint8_t version, uint16_t mopl, struct net_buf *buf) |
| PBAP PSE connect request callback. | |
| void(* | disconnect )(struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
| PBAP PSE disconnect request callback. | |
| void(* | pull_phone_book )(struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
| PBAP PSE pull phone book request callback. | |
| void(* | pull_vcard_listing )(struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
| PBAP PSE pull vCard listing request callback. | |
| void(* | pull_vcard_entry )(struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
| PBAP PSE pull vCard entry request callback. | |
| void(* | set_phone_book )(struct bt_pbap_pse *pbap_pse, uint8_t flags, struct net_buf *buf) |
| PBAP PSE set phone book request callback. | |
| void(* | abort )(struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
| PBAP PSE abort request callback. | |
PBAP PSE (Phone Book Server Equipment) callback operations structure.
Defines callbacks for handling PBAP client requests on the server side.
| void(* bt_pbap_pse_cb::abort) (struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
PBAP PSE abort request callback.
Called when an abort request is received from a PCE client. The PSE should cancel the current ongoing operation.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| buf | Optional request headers buffer. |
| void(* bt_pbap_pse_cb::connect) (struct bt_pbap_pse *pbap_pse, uint8_t version, uint16_t mopl, struct net_buf *buf) |
PBAP PSE connect request callback.
Called when a PBAP connect request is received from a PCE client. The PSE should validate the request and prepare a response.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| version | PBAP version requested by PCE. |
| mopl | Maximum OBEX packet length requested by PCE. |
| buf | Request headers buffer (may contain target, authentication, etc.). |
| void(* bt_pbap_pse_cb::disconnect) (struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
PBAP PSE disconnect request callback.
Called when a PBAP disconnect request is received from a PCE client.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| buf | Optional request headers buffer. |
| void(* bt_pbap_pse_cb::l2cap_connected) (struct bt_conn *conn, struct bt_pbap_pse *pbap_pse) |
L2CAP transport connected callback.
Called when the underlying L2CAP transport is connected.
| conn | ACL connection. |
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| void(* bt_pbap_pse_cb::l2cap_disconnected) (struct bt_pbap_pse *pbap_pse) |
L2CAP transport disconnected callback.
Called when the underlying L2CAP transport is disconnected.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| void(* bt_pbap_pse_cb::pull_phone_book) (struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
PBAP PSE pull phone book request callback.
Called when a pull phone book request is received from a PCE client. The PSE should retrieve the requested phone book and send it back.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| buf | Request headers buffer (contains name, type, app parameters, etc.). |
| void(* bt_pbap_pse_cb::pull_vcard_entry) (struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
PBAP PSE pull vCard entry request callback.
Called when a pull vCard entry request is received from a PCE client. The PSE should retrieve the requested vCard entry and send it back.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| buf | Request headers buffer (contains name, type, app parameters, etc.). |
| void(* bt_pbap_pse_cb::pull_vcard_listing) (struct bt_pbap_pse *pbap_pse, struct net_buf *buf) |
PBAP PSE pull vCard listing request callback.
Called when a pull vCard listing request is received from a PCE client. The PSE should retrieve the requested vCard listing and send it back.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| buf | Request headers buffer (contains name, type, app parameters, etc.). |
| void(* bt_pbap_pse_cb::rfcomm_connected) (struct bt_conn *conn, struct bt_pbap_pse *pbap_pse) |
RFCOMM transport connected callback.
Called when the underlying RFCOMM transport is connected.
| conn | ACL connection. |
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| void(* bt_pbap_pse_cb::rfcomm_disconnected) (struct bt_pbap_pse *pbap_pse) |
RFCOMM transport disconnected callback.
Called when the underlying RFCOMM transport is disconnected.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| void(* bt_pbap_pse_cb::set_phone_book) (struct bt_pbap_pse *pbap_pse, uint8_t flags, struct net_buf *buf) |
PBAP PSE set phone book request callback.
Called when a set phone book request is received from a PCE client. The PSE should set the phone book to the requested one.
| pbap_pse | PBAP PSE object, bt_pbap_pse. |
| flags | Navigation flags (up/down/root).
|
| buf | Optional request headers buffer (may contain folder name). |