|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Phone Book Access Profile handling. More...
#include <zephyr/kernel.h>#include <string.h>#include <errno.h>#include <stdbool.h>#include <zephyr/bluetooth/classic/goep.h>Go to the source code of this file.
Data Structures | |
| struct | bt_pbap_pce_cb |
| PBAP PCE (Phone Book Client Equipment) callback operations structure. More... | |
| struct | bt_pbap_pce |
| PBAP PCE (Phone Book Client Equipment) structure. More... | |
| struct | bt_pbap_pse_cb |
| PBAP PSE (Phone Book Server Equipment) callback operations structure. More... | |
| struct | bt_pbap_pse_rfcomm |
| PBAP PSE RFCOMM server structure. More... | |
| struct | bt_pbap_pse_l2cap |
| PBAP PSE L2CAP server structure. More... | |
| struct | bt_pbap_pse |
| PBAP PSE (Phone Book Server Equipment) structure. More... | |
Macros | |
| #define | BT_PBAP_UUID |
| PBAP target UUID for service identification. | |
| #define | BT_PBAP_PULL_PHONE_BOOK_TYPE "x-bt/phonebook" |
| OBEX type header for pull phone book operation. | |
| #define | BT_PBAP_PULL_VCARD_LISTING_TYPE "x-bt/vcard-listing" |
| OBEX type header for pull vCard listing operation. | |
| #define | BT_PBAP_PULL_VCARD_ENTRY_TYPE "x-bt/vcard" |
| OBEX type header for pull vCard entry operation. | |
| #define | BT_PBAP_SET_PHONE_BOOK_FLAGS_UP (BT_OBEX_SETPATH_FLAG_BACKUP | BT_OBEX_SETPATH_FLAG_NO_CREATE) |
| Set phone book flags: Navigate up to parent directory. | |
| #define | BT_PBAP_SET_PHONE_BOOK_FLAGS_DOWN_OR_ROOT BT_OBEX_SETPATH_FLAG_NO_CREATE |
| Set phone book flags: Navigate down to child directory or to root. | |
Functions | |
| int | bt_pbap_pce_rfcomm_connect (struct bt_conn *conn, struct bt_pbap_pce *pbap_pce, struct bt_pbap_pce_cb *cb, uint8_t channel) |
| PCE Connect to PSE over RFCOMM transport. | |
| int | bt_pbap_pce_rfcomm_disconnect (struct bt_pbap_pce *pbap_pce) |
| Disconnect PBAP PCE RFCOMM transport. | |
| int | bt_pbap_pce_l2cap_connect (struct bt_conn *conn, struct bt_pbap_pce *pbap_pce, struct bt_pbap_pce_cb *cb, uint16_t psm) |
| Connect PBAP PCE client over L2CAP transport. | |
| int | bt_pbap_pce_l2cap_disconnect (struct bt_pbap_pce *pbap_pce) |
| Disconnect PBAP PCE L2CAP transport. | |
| struct net_buf * | bt_pbap_pce_create_pdu (struct bt_pbap_pce *pbap_pce, struct net_buf_pool *pool) |
| Allocate buffer from pool with reserved headroom for PBAP PCE. | |
| int | bt_pbap_pce_connect (struct bt_pbap_pce *pbap_pce, uint16_t mopl, struct net_buf *buf) |
| Establish PBAP protocol connection from PCE client to PSE server. | |
| int | bt_pbap_pce_disconnect (struct bt_pbap_pce *pbap_pce, struct net_buf *buf) |
| Disconnect PBAP connection from PBAP client PCE. | |
| int | bt_pbap_pce_pull_phone_book (struct bt_pbap_pce *pbap_pce, struct net_buf *buf) |
| Pull phone book from PBAP server PSE. | |
| int | bt_pbap_pce_pull_vcard_listing (struct bt_pbap_pce *pbap_pce, struct net_buf *buf) |
| Pull vCard listing from PBAP server PSE. | |
| int | bt_pbap_pce_pull_vcard_entry (struct bt_pbap_pce *pbap_pce, struct net_buf *buf) |
| Pull specific vCard entry from PBAP server PSE. | |
| int | bt_pbap_pce_set_phone_book (struct bt_pbap_pce *pbap_pce, uint8_t flags, struct net_buf *buf) |
| Set current phone book on PBAP server PSE. | |
| int | bt_pbap_pce_abort (struct bt_pbap_pce *pbap_pce, struct net_buf *buf) |
| Abort current operation on PBAP server PSE. | |
| struct net_buf * | bt_pbap_pse_create_pdu (struct bt_pbap_pse *pbap_pse, struct net_buf_pool *pool) |
| Allocate buffer from pool with reserved headroom for PBAP PSE. | |
| int | bt_pbap_pse_rfcomm_register (struct bt_pbap_pse_rfcomm *server) |
| Register PBAP PSE RFCOMM server. | |
| int | bt_pbap_pse_l2cap_register (struct bt_pbap_pse_l2cap *server) |
| Register PBAP PSE L2CAP server. | |
| int | bt_pbap_pse_register (struct bt_pbap_pse *pbap_pse, struct bt_pbap_pse_cb *cb) |
| Register PBAP PSE instance. | |
| int | bt_pbap_pse_connect_rsp (struct bt_pbap_pse *pbap_pse, uint16_t mopl, uint8_t rsp_code, struct net_buf *buf) |
| Send connect response from PBAP PSE. | |
| int | bt_pbap_pse_disconnect_rsp (struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf) |
| Send disconnect response from PBAP PSE. | |
| int | bt_pbap_pse_pull_phone_book_rsp (struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf) |
| Send pull phone book response from PBAP PSE. | |
| int | bt_pbap_pse_pull_vcard_listing_rsp (struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf) |
| Send pull vCard listing response from PBAP PSE. | |
| int | bt_pbap_pse_pull_vcard_entry_rsp (struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf) |
| Send pull vCard entry response from PBAP PSE. | |
| int | bt_pbap_pse_set_phone_book_rsp (struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf) |
| Send set phone book response from PBAP PSE. | |
| int | bt_pbap_pse_abort_rsp (struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf) |
| Send abort response from PBAP PSE. | |
| int | bt_pbap_calculate_nonce (const uint8_t *pwd, uint8_t nonce[BT_OBEX_CHALLENGE_TAG_NONCE_LEN]) |
| Calculate authentication nonce for PBAP challenge. | |
| int | bt_pbap_calculate_rsp_digest (const uint8_t *pwd, const uint8_t nonce[BT_OBEX_CHALLENGE_TAG_NONCE_LEN], uint8_t rsp_digest[BT_OBEX_RESPONSE_TAG_REQ_DIGEST_LEN]) |
| Calculate response digest for PBAP authentication. | |
| int | bt_pbap_verify_authentication (uint8_t nonce[BT_OBEX_CHALLENGE_TAG_NONCE_LEN], uint8_t rsp_digest[BT_OBEX_RESPONSE_TAG_REQ_DIGEST_LEN], const uint8_t *pwd) |
| Verify authentication response. | |
Phone Book Access Profile handling.