3.0.0.0R11
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
wiced_bt_sdp.h File Reference

Data Structures

struct  sdp_discovery_record_t
 
struct  t_sdp_discovery_attr
 
struct  wiced_bt_sdp_discovery_attribute_value_t
 
struct  wiced_bt_sdp_discovery_db_t
 
struct  wiced_bt_sdp_protocol_elem_t
 

Typedefs

typedef struct t_sdp_discovery_attr wiced_bt_sdp_discovery_attribute_t
 
typedef void( wiced_bt_sdp_discovery_complete_cback_t )(uint16_t sdp_result)
 
typedef struct
sdp_discovery_record_t 
wiced_bt_sdp_discovery_record_t
 

Enumerations

enum  wiced_bt_sdp_result_t {
  WICED_BT_SDP_SUCCESS = WICED_BT_SUCCESS, WICED_BT_SDP_INVALID_VERSION = 0x0001, WICED_BT_SDP_INVALID_SERV_REC_HDL = 0x0002, WICED_BT_SDP_INVALID_REQ_SYNTAX = 0x0003,
  WICED_BT_SDP_INVALID_PDU_SIZE = 0x0004, WICED_BT_SDP_INVALID_CONT_STATE = 0x0005, WICED_BT_SDP_NO_RESOURCES = 0x0006, WICED_BT_SDP_DI_REG_FAILED = 0x0007,
  WICED_BT_SDP_DI_DISC_FAILED = 0x0008, WICED_BT_SDP_NO_DI_RECORD_FOUND = 0x0009, WICED_BT_SDP_ERR_ATTR_NOT_PRESENT = 0x000A, WICED_BT_SDP_ILLEGAL_PARAMETER = 0x000B,
  WICED_BT_SDP_NO_RECS_MATCH = 0xFFF0, WICED_BT_SDP_CONN_FAILED = 0xFFF1, WICED_BT_SDP_CFG_FAILED = 0xFFF2, WICED_BT_SDP_GENERIC_ERROR = 0xFFF3,
  WICED_BT_SDP_DB_FULL = 0xFFF4, WICED_BT_SDP_INVALID_PDU = 0xFFF5, WICED_BT_SDP_SECURITY_ERR = 0xFFF6, WICED_BT_SDP_CONN_REJECTED = 0xFFF7,
  WICED_BT_SDP_CANCEL = 0xFFF8
}
 

Functions

wiced_bool_t wiced_bt_sdp_cancel_service_search (wiced_bt_sdp_discovery_db_t *p_db)
 
wiced_bool_t wiced_bt_sdp_db_init (uint8_t *p_sdp_db, uint16_t size)
 
wiced_bt_sdp_discovery_record_twiced_bt_sdp_find_attribute_in_db (wiced_bt_sdp_discovery_db_t *p_db, uint16_t attr_id, wiced_bt_sdp_discovery_record_t *p_start_rec)
 
wiced_bt_sdp_discovery_attribute_twiced_bt_sdp_find_attribute_in_rec (wiced_bt_sdp_discovery_record_t *p_rec, uint16_t attr_id)
 
wiced_bool_t wiced_bt_sdp_find_profile_version_in_rec (wiced_bt_sdp_discovery_record_t *p_rec, uint16_t profile_uuid, uint16_t *p_version)
 
wiced_bool_t wiced_bt_sdp_find_protocol_list_elem_in_rec (wiced_bt_sdp_discovery_record_t *p_rec, uint16_t layer_uuid, wiced_bt_sdp_protocol_elem_t *p_elem)
 
wiced_bool_t wiced_bt_sdp_find_protocol_lists_elem_in_rec (wiced_bt_sdp_discovery_record_t *p_rec, uint16_t layer_uuid, wiced_bt_sdp_protocol_elem_t *p_elem)
 
wiced_bt_sdp_discovery_record_twiced_bt_sdp_find_service_in_db (wiced_bt_sdp_discovery_db_t *p_db, uint16_t service_uuid, wiced_bt_sdp_discovery_record_t *p_start_rec)
 
wiced_bt_sdp_discovery_record_twiced_bt_sdp_find_service_uuid_in_db (wiced_bt_sdp_discovery_db_t *p_db, wiced_bt_uuid_t *p_uuid, wiced_bt_sdp_discovery_record_t *p_start_rec)
 
wiced_bool_t wiced_bt_sdp_find_service_uuid_in_rec (wiced_bt_sdp_discovery_record_t *p_rec, wiced_bt_uuid_t *p_uuid)
 
wiced_bool_t wiced_bt_sdp_init_discovery_db (wiced_bt_sdp_discovery_db_t *p_db, uint32_t len, uint16_t num_uuid, wiced_bt_uuid_t *p_uuid_list, uint16_t num_attr, uint16_t *p_attr_list)
 
wiced_bool_t wiced_bt_sdp_service_search_attribute_request (uint8_t *p_bd_addr, wiced_bt_sdp_discovery_db_t *p_db, wiced_bt_sdp_discovery_complete_cback_t *p_cb)
 
wiced_bool_t wiced_bt_sdp_service_search_request (uint8_t *p_bd_addr, wiced_bt_sdp_discovery_db_t *p_db, wiced_bt_sdp_discovery_complete_cback_t *p_cb)
 

Detailed Description

Bluetooth SDP Application Programming Interface

Typedef Documentation

typedef void( wiced_bt_sdp_discovery_complete_cback_t)(uint16_t sdp_result)

Function wiced_bt_sdp_discovery_complete_cback_t

         Service discovery complete callback.

         If discovery was successful, the discovery results database (provided when #wiced_bt_sdp_service_search_request
         or #wiced_bt_sdp_service_search_attribute_request was called) will be filled.

         Use the wiced_bt_sdp_find_* utility functions to parse the results.
Parameters
[in]sdp_result: SDP result code (see wiced_bt_sdp_result_t)
Returns
Nothing

Discovery record from SDP search result

Enumeration Type Documentation

SDP result - Success code and error codes

Enumerator
WICED_BT_SDP_SUCCESS 

SDP - Result: Success

WICED_BT_SDP_INVALID_VERSION 

SDP - invalid version

WICED_BT_SDP_INVALID_SERV_REC_HDL 

SDP - invalid service record

WICED_BT_SDP_INVALID_REQ_SYNTAX 

SDP - invalid request syntax

WICED_BT_SDP_INVALID_PDU_SIZE 

SDP - invalid PDU size

WICED_BT_SDP_INVALID_CONT_STATE 

SDP - invalid controller state

WICED_BT_SDP_NO_RESOURCES 

SDP - no resources

WICED_BT_SDP_DI_REG_FAILED 

SDP - registration failed

WICED_BT_SDP_DI_DISC_FAILED 

SDP - discovery failed

WICED_BT_SDP_NO_DI_RECORD_FOUND 

SDP - no record found

WICED_BT_SDP_ERR_ATTR_NOT_PRESENT 

SDP - no attribute present

WICED_BT_SDP_ILLEGAL_PARAMETER 

SDP - Illegal parameter

WICED_BT_SDP_NO_RECS_MATCH 

SDP - No records match

WICED_BT_SDP_CONN_FAILED 

SDP - Connection failed

WICED_BT_SDP_CFG_FAILED 

SDP - Configuration failed

WICED_BT_SDP_GENERIC_ERROR 

SDP - Generic error

WICED_BT_SDP_DB_FULL 

SDP - DB full

WICED_BT_SDP_INVALID_PDU 

SDP - Invalid PDU

WICED_BT_SDP_SECURITY_ERR 

SDP - Security Error

WICED_BT_SDP_CONN_REJECTED 

SDP - Connection rejected

WICED_BT_SDP_CANCEL 

SDP - cancel