Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pbap.h
Go to the documentation of this file.
1
4
5/*
6 * Copyright 2025-2026 NXP
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 */
10
11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_PBAP_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_PBAP_H_
13
20
21#include <zephyr/kernel.h>
22#include <string.h>
23#include <errno.h>
24#include <stdbool.h>
25
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
37#define BT_PBAP_UUID \
38 (const struct bt_uuid_128 *)BT_UUID_DECLARE_128( \
39 BT_UUID_128_ENCODE(0x796135f0, 0xf0c5, 0x11d8, 0x0966, 0x0800200c9a66))
40
42#define BT_PBAP_PULL_PHONE_BOOK_TYPE "x-bt/phonebook"
43
45#define BT_PBAP_PULL_VCARD_LISTING_TYPE "x-bt/vcard-listing"
46
48#define BT_PBAP_PULL_VCARD_ENTRY_TYPE "x-bt/vcard"
49
55#define BT_PBAP_SET_PHONE_BOOK_FLAGS_UP \
56 (BT_OBEX_SETPATH_FLAG_BACKUP | BT_OBEX_SETPATH_FLAG_NO_CREATE)
57
63#define BT_PBAP_SET_PHONE_BOOK_FLAGS_DOWN_OR_ROOT BT_OBEX_SETPATH_FLAG_NO_CREATE
64
94
104
114
122
130
136
205};
206
242
266
278
280struct bt_pbap_pce;
281
294 void (*rfcomm_connected)(struct bt_conn *conn, struct bt_pbap_pce *pbap_pce);
295
302 void (*rfcomm_disconnected)(struct bt_pbap_pce *pbap_pce);
303
311 void (*l2cap_connected)(struct bt_conn *conn, struct bt_pbap_pce *pbap_pce);
312
319 void (*l2cap_disconnected)(struct bt_pbap_pce *pbap_pce);
320
331 void (*connect)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, uint8_t version,
332 uint16_t mopl, struct net_buf *buf);
333
342 void (*disconnect)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf);
343
352 void (*pull_phone_book)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code,
353 struct net_buf *buf);
354
363 void (*pull_vcard_listing)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code,
364 struct net_buf *buf);
365
374 void (*pull_vcard_entry)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code,
375 struct net_buf *buf);
376
385 void (*set_phone_book)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf);
386
395 void (*abort)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf);
396};
397
402
404 struct bt_goep _goep;
405
407 atomic_t _transport_state;
408
413 uint32_t _conn_id;
414
419 struct bt_obex_client _client;
420
425 atomic_t _state;
426
428 void (*_rsp_cb)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf);
429
431 const char *_req_type;
432};
433
448int bt_pbap_pce_rfcomm_connect(struct bt_conn *conn, struct bt_pbap_pce *pbap_pce,
449 struct bt_pbap_pce_cb *cb, uint8_t channel);
450
460
475int bt_pbap_pce_l2cap_connect(struct bt_conn *conn, struct bt_pbap_pce *pbap_pce,
476 struct bt_pbap_pce_cb *cb, uint16_t psm);
477
487
502struct net_buf *bt_pbap_pce_create_pdu(struct bt_pbap_pce *pbap_pce, struct net_buf_pool *pool);
503
521int bt_pbap_pce_connect(struct bt_pbap_pce *pbap_pce, uint16_t mopl, struct net_buf *buf);
522
533int bt_pbap_pce_disconnect(struct bt_pbap_pce *pbap_pce, struct net_buf *buf);
534
547int bt_pbap_pce_pull_phone_book(struct bt_pbap_pce *pbap_pce, struct net_buf *buf);
548
561int bt_pbap_pce_pull_vcard_listing(struct bt_pbap_pce *pbap_pce, struct net_buf *buf);
562
575int bt_pbap_pce_pull_vcard_entry(struct bt_pbap_pce *pbap_pce, struct net_buf *buf);
576
589int bt_pbap_pce_set_phone_book(struct bt_pbap_pce *pbap_pce, uint8_t flags, struct net_buf *buf);
590
600int bt_pbap_pce_abort(struct bt_pbap_pce *pbap_pce, struct net_buf *buf);
601
603struct bt_pbap_pse;
604
610
618 void (*rfcomm_connected)(struct bt_conn *conn, struct bt_pbap_pse *pbap_pse);
619
626 void (*rfcomm_disconnected)(struct bt_pbap_pse *pbap_pse);
627
635 void (*l2cap_connected)(struct bt_conn *conn, struct bt_pbap_pse *pbap_pse);
636
643 void (*l2cap_disconnected)(struct bt_pbap_pse *pbap_pse);
644
655 void (*connect)(struct bt_pbap_pse *pbap_pse, uint8_t version, uint16_t mopl,
656 struct net_buf *buf);
657
665 void (*disconnect)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf);
666
675 void (*pull_phone_book)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf);
676
685 void (*pull_vcard_listing)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf);
686
695 void (*pull_vcard_entry)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf);
696
708 void (*set_phone_book)(struct bt_pbap_pse *pbap_pse, uint8_t flags, struct net_buf *buf);
709
718 void (*abort)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf);
719};
720
728
740 int (*accept)(struct bt_conn *conn, struct bt_pbap_pse_rfcomm *pbap_pse_rfcomm,
741 struct bt_pbap_pse **pbap_pse);
742};
743
751
763 int (*accept)(struct bt_conn *conn, struct bt_pbap_pse_l2cap *pbap_pse_l2cap,
764 struct bt_pbap_pse **pbap_pse);
765};
766
771
773 struct bt_goep _goep;
774
776 atomic_t _transport_state;
777
782 uint32_t _conn_id;
783
788 struct bt_obex_server _server;
789
794 atomic_t _state;
795
797 void (*_req_cb)(struct bt_pbap_pse *pse, struct net_buf *buf);
798
800 const char *_optype;
801
803 atomic_t _flags;
804};
805
820struct net_buf *bt_pbap_pse_create_pdu(struct bt_pbap_pse *pbap_pse, struct net_buf_pool *pool);
821
832
843
855int bt_pbap_pse_register(struct bt_pbap_pse *pbap_pse, struct bt_pbap_pse_cb *cb);
856
868int bt_pbap_pse_connect_rsp(struct bt_pbap_pse *pbap_pse, uint16_t mopl, uint8_t rsp_code,
869 struct net_buf *buf);
870
881int bt_pbap_pse_disconnect_rsp(struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf);
882
896 struct net_buf *buf);
897
911 struct net_buf *buf);
912
926 struct net_buf *buf);
927
939 struct net_buf *buf);
940
952int bt_pbap_pse_abort_rsp(struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf);
953
966
984
1001 const uint8_t *pwd);
1002
1003#ifdef __cplusplus
1004}
1005#endif
1006
1010
1011#endif /* ZEPHYR_INCLUDE_BLUETOOTH_PBAP_H_ */
long atomic_t
Definition atomic_types.h:15
System error numbers.
#define BT_OBEX_CHALLENGE_TAG_NONCE_LEN
OBEX digest-challenge nonce length (16 bytes).
Definition obex.h:1276
#define BT_OBEX_RESPONSE_TAG_REQ_DIGEST_LEN
OBEX digest-response request-digest length (16 bytes).
Definition obex.h:1316
@ BT_OBEX_RSP_CODE_NOT_FOUND
Not Found.
Definition obex.h:73
@ BT_OBEX_RSP_CODE_BAD_REQ
Bad Request - server couldn’t understand request.
Definition obex.h:65
@ BT_OBEX_RSP_CODE_NOT_ACCEPT
Not Acceptable.
Definition obex.h:77
@ BT_OBEX_RSP_CODE_FORBIDDEN
Forbidden - operation is understood but refused.
Definition obex.h:71
@ BT_OBEX_RSP_CODE_UNAVAIL
Service Unavailable.
Definition obex.h:103
@ BT_OBEX_RSP_CODE_CONTINUE
Continue.
Definition obex.h:35
@ BT_OBEX_RSP_CODE_OK
OK.
Definition obex.h:37
@ BT_OBEX_RSP_CODE_PRECON_FAIL
Precondition Failed.
Definition obex.h:89
@ BT_OBEX_RSP_CODE_NOT_IMPL
Not Implemented.
Definition obex.h:99
@ BT_OBEX_RSP_CODE_UNAUTH
Unauthorized.
Definition obex.h:67
@ BT_OBEX_RSP_CODE_SUCCESS
Success.
Definition obex.h:39
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_pce_pull_phone_book(struct bt_pbap_pce *pbap_pce, struct net_buf *buf)
Pull phone book from PBAP server 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_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_pse_register(struct bt_pbap_pse *pbap_pse, struct bt_pbap_pse_cb *cb)
Register PBAP PSE instance.
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_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_pce_disconnect(struct bt_pbap_pce *pbap_pce, struct net_buf *buf)
Disconnect PBAP connection from PBAP client PCE.
bt_pbap_appl_param_format
PBAP application parameter Format parameter values.
Definition pbap.h:116
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_pse_rfcomm_register(struct bt_pbap_pse_rfcomm *server)
Register PBAP PSE RFCOMM server.
bt_pbap_appl_param_vcard_selector_operator
PBAP application parameter vCard Selector Operator parameter values.
Definition pbap.h:124
bt_pbap_appl_param_property_mask
PBAP property bitmask.
Definition pbap.h:138
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.
bt_pbap_rsp_code
PBAP response codes.
Definition pbap.h:70
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.
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_abort(struct bt_pbap_pce *pbap_pce, struct net_buf *buf)
Abort current operation on PBAP server PSE.
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_pse_l2cap_register(struct bt_pbap_pse_l2cap *server)
Register PBAP PSE L2CAP server.
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_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.
bt_pbap_appl_param_order
PBAP application parameter Order parameter values.
Definition pbap.h:96
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_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_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_pce_l2cap_disconnect(struct bt_pbap_pce *pbap_pce)
Disconnect PBAP PCE L2CAP transport.
bt_pbap_appl_param_tag_id
PBAP application parameter tag IDs.
Definition pbap.h:208
bt_pbap_appl_param_reset_new_missed_calls
PBAP application parameter reset neww missed calls parameter values.
Definition pbap.h:132
bt_pbap_supported_repositories
PBAP supported repositories bitmask.
Definition pbap.h:268
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.
bt_pbap_supported_feature
PBAP supported features bitmask.
Definition pbap.h:244
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_pse_disconnect_rsp(struct bt_pbap_pse *pbap_pse, uint8_t rsp_code, struct net_buf *buf)
Send disconnect response from PBAP PSE.
bt_pbap_appl_param_search_property
PBAP application parameter Search Property parameter values.
Definition pbap.h:106
@ BT_PBAP_APPL_PARAM_FORMAT_3_0
vCard version 3.0.
Definition pbap.h:120
@ BT_PBAP_APPL_PARAM_FORMAT_2_1
vCard version 2.1.
Definition pbap.h:118
@ BT_PBAP_APPL_PARAM_VCARD_SELECTOR_OPERATOR_OR
OR operator.
Definition pbap.h:126
@ BT_PBAP_APPL_PARAM_VCARD_SELECTOR_OPERATOR_AND
AND operator.
Definition pbap.h:128
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_SOUND
Pronunciation of name.
Definition pbap.h:178
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_N
Structured presentation of name.
Definition pbap.h:144
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_UID
Unique ID.
Definition pbap.h:182
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_PRODID
Product ID.
Definition pbap.h:190
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_NICKNAME
Nickname.
Definition pbap.h:186
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_KEY
Public key.
Definition pbap.h:184
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_X_BT_UCI
Bluetooth UCI (Unique Contact Identifier).
Definition pbap.h:200
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_GEO
Geographic position.
Definition pbap.h:162
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_ROLE
Role or occupation.
Definition pbap.h:166
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_URL
Uniform resource locator.
Definition pbap.h:180
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_ADR
Delivery address.
Definition pbap.h:150
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_FN
Formatted name.
Definition pbap.h:142
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_LABEL
Delivery address label.
Definition pbap.h:152
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_X_BT_UID
Bluetooth UID.
Definition pbap.h:202
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_TITLE
Job title.
Definition pbap.h:164
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_X_IRMC_CALL_DATETIME
Time stamp of a missed call.
Definition pbap.h:196
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_CLASS
Class information.
Definition pbap.h:192
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_SORT_STRING
String used for sorting operations.
Definition pbap.h:194
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_AGENT
vCard of person who acts as agent.
Definition pbap.h:170
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_TZ
Time zone.
Definition pbap.h:160
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_CATEGORIES
Categories.
Definition pbap.h:188
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_VERSION
vCard version.
Definition pbap.h:140
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_NOTE
Comments.
Definition pbap.h:174
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_REV
Revision.
Definition pbap.h:176
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_MAILER
Email program name.
Definition pbap.h:158
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_BDAY
Birthday.
Definition pbap.h:148
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_PROPRIETARY_FILTER
Proprietary filtering.
Definition pbap.h:204
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_TEL
Telephone number.
Definition pbap.h:154
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_PHOTO
Associated image or photo.
Definition pbap.h:146
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_ORG
Name of organization.
Definition pbap.h:172
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_X_BT_SPEEDDIALKEY
Speed-dial shortcut.
Definition pbap.h:198
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_EMAIL
Electronic mail address.
Definition pbap.h:156
@ BT_PBAP_APPL_PARAM_PROPERTY_SELECTOR_LOGO
Organization logo.
Definition pbap.h:168
@ BT_PBAP_RSP_CODE_SUCCESS
Success.
Definition pbap.h:76
@ BT_PBAP_RSP_CODE_NOT_FOUND
Not found.
Definition pbap.h:84
@ BT_PBAP_RSP_CODE_BAD_REQ
Bad request - Server couldn't understand request.
Definition pbap.h:78
@ BT_PBAP_RSP_CODE_CONTINUE
Continue.
Definition pbap.h:72
@ BT_PBAP_RSP_CODE_UNAVAIL
Service unavailable.
Definition pbap.h:92
@ BT_PBAP_RSP_CODE_FORBIDDEN
Forbidden - Operation is understood but refused.
Definition pbap.h:82
@ BT_PBAP_RSP_CODE_NOT_ACCEPT
Not acceptable.
Definition pbap.h:86
@ BT_PBAP_RSP_CODE_OK
OK.
Definition pbap.h:74
@ BT_PBAP_RSP_CODE_UNAUTH
Unauthorized.
Definition pbap.h:80
@ BT_PBAP_RSP_CODE_NOT_IMPL
Not implemented.
Definition pbap.h:90
@ BT_PBAP_RSP_CODE_PRECON_FAIL
Precondition failed.
Definition pbap.h:88
@ BT_PBAP_APPL_PARAM_ORDER_ALPHABETICAL
Alphabetical order.
Definition pbap.h:100
@ BT_PBAP_APPL_PARAM_ORDER_INDEXED
Indexed order.
Definition pbap.h:98
@ BT_PBAP_APPL_PARAM_ORDER_PHONETIC
Phonetic order.
Definition pbap.h:102
@ BT_PBAP_APPL_PARAM_TAG_ID_PHONEBOOK_SIZE
Phonebook size.
Definition pbap.h:224
@ BT_PBAP_APPL_PARAM_TAG_ID_LIST_START_OFFSET
List start offset.
Definition pbap.h:218
@ BT_PBAP_APPL_PARAM_TAG_ID_ORDER
Order bt_pbap_appl_param_order.
Definition pbap.h:210
@ BT_PBAP_APPL_PARAM_TAG_ID_SEARCH_VALUE
Search value.
Definition pbap.h:212
@ BT_PBAP_APPL_PARAM_TAG_ID_RESET_NEW_MISSED_CALLS
Reset new missed calls bt_pbap_appl_param_reset_new_missed_calls.
Definition pbap.h:238
@ BT_PBAP_APPL_PARAM_TAG_ID_DATABASE_IDENTIFIER
Database identifier.
Definition pbap.h:234
@ BT_PBAP_APPL_PARAM_TAG_ID_SUPPORTED_FEATURES
PBAP supported features bt_pbap_supported_feature.
Definition pbap.h:240
@ BT_PBAP_APPL_PARAM_TAG_ID_PROPERTY_SELECTOR
Property selector bt_pbap_appl_param_property_mask.
Definition pbap.h:220
@ BT_PBAP_APPL_PARAM_TAG_ID_SECONDARY_FOLDER_VERSION
Secondary folder version.
Definition pbap.h:230
@ BT_PBAP_APPL_PARAM_TAG_ID_MAX_LIST_COUNT
Max list count.
Definition pbap.h:216
@ BT_PBAP_APPL_PARAM_TAG_ID_PRIMARY_FOLDER_VERSION
Primary folder version.
Definition pbap.h:228
@ BT_PBAP_APPL_PARAM_TAG_ID_FORMAT
Format bt_pbap_appl_param_format.
Definition pbap.h:222
@ BT_PBAP_APPL_PARAM_TAG_ID_NEW_MISSED_CALLS
New missed calls.
Definition pbap.h:226
@ BT_PBAP_APPL_PARAM_TAG_ID_VCARD_SELECTOR_OPERATOR
vCard selector operator bt_pbap_appl_param_property_mask.
Definition pbap.h:236
@ BT_PBAP_APPL_PARAM_TAG_ID_VCARD_SELECTOR
vCard selector bt_pbap_appl_param_property_mask .
Definition pbap.h:232
@ BT_PBAP_APPL_PARAM_TAG_ID_SEARCH_PROPERTY
Search property bt_pbap_appl_param_search_property.
Definition pbap.h:214
@ BT_PBAP_APPL_PARAM_RESET_NEW_MISSED_CALLS
Reset.
Definition pbap.h:134
@ BT_PBAP_SUPPORTED_REPOSITORIES_LOCAL_PHONE_BOOK
Local phone book repository.
Definition pbap.h:270
@ BT_PBAP_SUPPORTED_REPOSITORIES_SPEED_DIAL
Speed dial repository.
Definition pbap.h:274
@ BT_PBAP_SUPPORTED_REPOSITORIES_SIM
SIM card repository.
Definition pbap.h:272
@ BT_PBAP_SUPPORTED_REPOSITORIES_FAVORITES
Favorites repository.
Definition pbap.h:276
@ BT_PBAP_SUPPORTED_FEATURE_VCARD_SELECTOR
vCard selector feature - Support for vCard property filtering.
Definition pbap.h:254
@ BT_PBAP_SUPPORTED_FEATURE_ENHANCED_MISSED_CALLS
Enhanced missed calls feature - Support for enhanced missed call handling.
Definition pbap.h:256
@ BT_PBAP_SUPPORTED_FEATURE_UCI_VCARD_PROPERTY
UCI vCard property feature - Support for Unique Contact Identifier.
Definition pbap.h:258
@ BT_PBAP_SUPPORTED_FEATURE_DEFAULT_CONTACT_IMAGE
Default contact image feature - Support for default contact images.
Definition pbap.h:264
@ BT_PBAP_SUPPORTED_FEATURE_DATABASE_IDENTIFIER
Database identifier feature - Support for database change tracking.
Definition pbap.h:250
@ BT_PBAP_SUPPORTED_FEATURE_CONTACT_REFERENCING
Contact referencing feature - Support for contact reference handling.
Definition pbap.h:262
@ BT_PBAP_SUPPORTED_FEATURE_UID_VCARD_PROPERTY
UID vCard property feature - Support for vCard UID property.
Definition pbap.h:260
@ BT_PBAP_SUPPORTED_FEATURE_DOWNLOAD
Download feature - Support for phone book download.
Definition pbap.h:246
@ BT_PBAP_SUPPORTED_FEATURE_BROWSING
Browsing feature - Support for phone book browsing.
Definition pbap.h:248
@ BT_PBAP_SUPPORTED_FEATURE_FOLDER_VERSION_COUNTERS
Folder version counters feature - Support for folder version tracking.
Definition pbap.h:252
@ BT_PBAP_APPL_PARAM_SEARCH_PROPERTY_SOUND
Sound.
Definition pbap.h:112
@ BT_PBAP_APPL_PARAM_SEARCH_PROPERTY_NUMBER
Number.
Definition pbap.h:110
@ BT_PBAP_APPL_PARAM_SEARCH_PROPERTY_NAME
Name.
Definition pbap.h:108
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
#define BIT64(_n)
64-bit unsigned integer with bit position _n set.
Definition util_macro.h:49
Public kernel APIs.
flags
Definition parser.h:97
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Opaque type representing a connection to a remote device.
GOEP Server structure for GOEP v2.0 and later.
Definition goep.h:228
GOEP Server structure GOEP v1.1.
Definition goep.h:128
Definition goep.h:87
OBEX client structure.
Definition obex.h:541
OBEX server structure.
Definition obex.h:497
PBAP PCE (Phone Book Client Equipment) callback operations structure.
Definition pbap.h:286
void(* rfcomm_connected)(struct bt_conn *conn, struct bt_pbap_pce *pbap_pce)
RFCOMM transport connected callback.
Definition pbap.h:294
void(* pull_vcard_listing)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf)
PBAP PCE pull vCard listing response callback.
Definition pbap.h:363
void(* pull_phone_book)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf)
PBAP PCE pull phone book response callback.
Definition pbap.h:352
void(* pull_vcard_entry)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf)
PBAP PCE pull vCard entry response callback.
Definition pbap.h:374
void(* set_phone_book)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf)
PBAP PCE set phone book response callback.
Definition pbap.h:385
void(* l2cap_connected)(struct bt_conn *conn, struct bt_pbap_pce *pbap_pce)
L2CAP transport connected callback.
Definition pbap.h:311
void(* connect)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, uint8_t version, uint16_t mopl, struct net_buf *buf)
PBAP PCE connect response callback.
Definition pbap.h:331
void(* l2cap_disconnected)(struct bt_pbap_pce *pbap_pce)
L2CAP transport disconnected callback.
Definition pbap.h:319
void(* disconnect)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf)
PBAP PCE disconnect response callback.
Definition pbap.h:342
void(* abort)(struct bt_pbap_pce *pbap_pce, uint8_t rsp_code, struct net_buf *buf)
PBAP PCE abort response callback.
Definition pbap.h:395
void(* rfcomm_disconnected)(struct bt_pbap_pce *pbap_pce)
RFCOMM transport disconnected callback.
Definition pbap.h:302
PBAP PCE (Phone Book Client Equipment) structure.
Definition pbap.h:399
struct bt_pbap_pce_cb * cb
Callback operations structure.
Definition pbap.h:401
PBAP PSE (Phone Book Server Equipment) callback operations structure.
Definition pbap.h:609
void(* pull_vcard_entry)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf)
PBAP PSE pull vCard entry request callback.
Definition pbap.h:695
void(* pull_vcard_listing)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf)
PBAP PSE pull vCard listing request callback.
Definition pbap.h:685
void(* pull_phone_book)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf)
PBAP PSE pull phone book request callback.
Definition pbap.h:675
void(* rfcomm_connected)(struct bt_conn *conn, struct bt_pbap_pse *pbap_pse)
RFCOMM transport connected callback.
Definition pbap.h:618
void(* abort)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf)
PBAP PSE abort request callback.
Definition pbap.h:718
void(* l2cap_connected)(struct bt_conn *conn, struct bt_pbap_pse *pbap_pse)
L2CAP transport connected callback.
Definition pbap.h:635
void(* disconnect)(struct bt_pbap_pse *pbap_pse, struct net_buf *buf)
PBAP PSE disconnect request callback.
Definition pbap.h:665
void(* rfcomm_disconnected)(struct bt_pbap_pse *pbap_pse)
RFCOMM transport disconnected callback.
Definition pbap.h:626
void(* set_phone_book)(struct bt_pbap_pse *pbap_pse, uint8_t flags, struct net_buf *buf)
PBAP PSE set phone book request callback.
Definition pbap.h:708
void(* l2cap_disconnected)(struct bt_pbap_pse *pbap_pse)
L2CAP transport disconnected callback.
Definition pbap.h:643
void(* connect)(struct bt_pbap_pse *pbap_pse, uint8_t version, uint16_t mopl, struct net_buf *buf)
PBAP PSE connect request callback.
Definition pbap.h:655
PBAP PSE L2CAP server structure.
Definition pbap.h:748
int(* accept)(struct bt_conn *conn, struct bt_pbap_pse_l2cap *pbap_pse_l2cap, struct bt_pbap_pse **pbap_pse)
Accept connection callback.
Definition pbap.h:763
struct bt_goep_transport_l2cap_server server
Underlying GOEP L2CAP server.
Definition pbap.h:750
PBAP PSE RFCOMM server structure.
Definition pbap.h:725
int(* accept)(struct bt_conn *conn, struct bt_pbap_pse_rfcomm *pbap_pse_rfcomm, struct bt_pbap_pse **pbap_pse)
Accept connection callback.
Definition pbap.h:740
struct bt_goep_transport_rfcomm_server server
Underlying GOEP RFCOMM server.
Definition pbap.h:727
PBAP PSE (Phone Book Server Equipment) structure.
Definition pbap.h:768
struct bt_pbap_pse_cb * cb
Callback operations structure.
Definition pbap.h:770
Network buffer pool representation.
Definition net_buf.h:1088
Network buffer representation.
Definition net_buf.h:1015