Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_pbap_pse_cb Struct Reference

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.

Detailed Description

PBAP PSE (Phone Book Server Equipment) callback operations structure.

Defines callbacks for handling PBAP client requests on the server side.

Field Documentation

◆ abort

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.
bufOptional request headers buffer.

◆ connect

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.
versionPBAP version requested by PCE.
moplMaximum OBEX packet length requested by PCE.
bufRequest headers buffer (may contain target, authentication, etc.).

◆ disconnect

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.
bufOptional request headers buffer.

◆ l2cap_connected

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.

Parameters
connACL connection.
pbap_psePBAP PSE object, bt_pbap_pse.

◆ l2cap_disconnected

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.

◆ pull_phone_book

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.
bufRequest headers buffer (contains name, type, app parameters, etc.).

◆ pull_vcard_entry

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.
bufRequest headers buffer (contains name, type, app parameters, etc.).

◆ pull_vcard_listing

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.
bufRequest headers buffer (contains name, type, app parameters, etc.).

◆ rfcomm_connected

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.

Parameters
connACL connection.
pbap_psePBAP PSE object, bt_pbap_pse.

◆ rfcomm_disconnected

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.

◆ set_phone_book

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.

Parameters
pbap_psePBAP PSE object, bt_pbap_pse.
flagsNavigation flags (up/down/root).
bufOptional request headers buffer (may contain folder name).

The documentation for this struct was generated from the following file:
  • zephyr/bluetooth/classic/pbap.h