35 #ifndef __BT_PBAPC_H__ 36 #define __BT_PBAPC_H__ 213 #include "bt_system.h" 214 #include "bt_debug.h" 215 #include "bt_platform.h" 225 #define BT_PBAPC_CONNECT_CNF (BT_MODULE_PBAPC|0x01) 226 #define BT_PBAPC_GET_NUMBER_OF_PHOENBOOK_OBJECTS_IND (BT_MODULE_PBAPC|0x02) 227 #define BT_PBAPC_GET_NUMBER_OF_PHOENBOOK_OBJECTS_CNF (BT_MODULE_PBAPC|0x03) 228 #define BT_PBAPC_GET_PHOENBOOK_OBJECTS_IND (BT_MODULE_PBAPC|0x04) 229 #define BT_PBAPC_GET_PHONEBOOK_OBJECTS_CNF (BT_MODULE_PBAPC|0x05) 230 #define BT_PBAPC_GET_CALLER_NAME_IND (BT_MODULE_PBAPC|0x06) 231 #define BT_PBAPC_GET_CALLER_NAME_CNF (BT_MODULE_PBAPC|0x07) 232 #define BT_PBAPC_DISCONNECT_IND (BT_MODULE_PBAPC|0x08) 236 typedef uint8_t bt_pbapc_phonebook_type_t; 237 #define BT_PBAPC_MISSED_CALL_TYPE 0x00 238 #define BT_PBAPC_POHONEBOOK_TYPE 0x01 This structure defines the name and number of a missed call.
Definition: bt_pbapc.h:287
uint8_t number_length
The length of the number.
Definition: bt_pbapc.h:288
uint32_t handle
PBAPC handle.
Definition: bt_pbapc.h:252
This structure defines the data type of the parameter in the callback for BT_PBAPC_CONNECT_CNF event...
Definition: bt_pbapc.h:251
uint8_t * number
The content of the number.
Definition: bt_pbapc.h:290
bt_status_t bt_pbapc_disconnect(uint32_t handle)
This function disconnects from the specified remote device.
uint32_t handle
PBAPC handle.
Definition: bt_pbapc.h:321
uint8_t new_missed_call
Unread missed call number.
Definition: bt_pbapc.h:275
bt_status_t bt_pbapc_get_num_of_phonebook_objects(uint32_t handle, bt_pbapc_phonebook_type_t type)
This function gets the number of phonebook objects of type Missed Calls History or Main Phonebook of ...
uint8_t * name
The content of the name.
Definition: bt_pbapc.h:291
This structure defines the data type of the parameter in the callback for BT_PBAPC_DISCONNECT_IND eve...
Definition: bt_pbapc.h:258
uint16_t number
The number of Phonebook objects.
Definition: bt_pbapc.h:274
This structure defines the data type of the parameter in the callback for BT_PBAPC_GET_CALLER_NAME_CN...
Definition: bt_pbapc.h:313
uint32_t handle
PBAPC handle.
Definition: bt_pbapc.h:273
This structure defines the data type of the parameter in the callback for BT_PBAPC_GET_CALLER_NAME_IN...
Definition: bt_pbapc.h:320
uint32_t handle
PBAPC handle.
Definition: bt_pbapc.h:298
uint8_t name_length
The length of the name.
Definition: bt_pbapc.h:289
uint32_t handle
PBAPC handle.
Definition: bt_pbapc.h:314
bt_status_t bt_pbapc_pull_vcard_entry(uint32_t handle, uint8_t index)
This function pulls a specific vCard object from the specified remote device.
uint32_t handle
PBAPC handle.
Definition: bt_pbapc.h:281
uint8_t bt_bd_addr_t[6]
Address type, defined in Bluetooth core specification version 4.2.
Definition: bt_type.h:180
int32_t bt_status_t
Define the status type, returned from the APIs, and defined as BT_STATUS_XXX.
Definition: bt_type.h:173
bt_status_t bt_pbapc_connect(uint32_t *handle, const bt_bd_addr_t *address)
This function connects to the specified remote device.
bt_status_t bt_pbapc_get_caller_name_by_number(uint32_t handle, uint8_t *number)
This function gets the contact name of a phonebook object stored in the phonebook of the remote devic...
This structure defines the data type of the parameter in the callback for BT_PBAPC_GET_PHOENBOOK_OBJE...
Definition: bt_pbapc.h:297
uint8_t bt_pbapc_phonebook_type_t
The following macros define the type of phonebook objects.
Definition: bt_pbapc.h:236
This structure defines the data type of the parameter in the callback for BT_PBAPC_GET_PHONEBOOK_OBJE...
Definition: bt_pbapc.h:280
This structure defines the data type of the parameter in the callback for BT_PBAPC_GET_NUMBER_OF_PHOE...
Definition: bt_pbapc.h:265
bt_pbapc_contact_t * caller
The contact information of phonebook objects.
Definition: bt_pbapc.h:322
bt_status_t bt_pbapc_get_phonebook_objects(uint32_t handle, uint16_t offset, bt_pbapc_phonebook_type_t type)
This function gets the phonebook objects of type Missed Calls History or Main Phone Book of the speci...
This structure defines the data type of the parameter in the callback for BT_PBAPC_GET_NUMBER_OF_PHOE...
Definition: bt_pbapc.h:272
uint32_t handle
PBAPC handle.
Definition: bt_pbapc.h:259
uint32_t handle
PBAPC handle.
Definition: bt_pbapc.h:266
bt_pbapc_phonebook_objects_t * object
The information of phonebook objects.
Definition: bt_pbapc.h:299