text stringlengths 1 9.98k | __index_level_0__ int64 0 4.17k |
|---|---|
h)
** The default for each component is to use static memory allocations.
*/
#ifndef A2D_DYNAMIC_MEMORY
#define A2D_DYNAMIC_MEMORY FALSE
#endif
#ifndef VDP_DYNAMIC_MEMORY
#define VDP_DYNAMIC_MEMORY FALSE
#endif
#ifndef AVRC_DYNAMIC_MEMORY
#define AVRC_DYNAMIC_MEMORY FALSE
#endif
#ifndef BIP_DYNAMIC_MEMORY
#define... | 3,116 |
h)
** The default for each component is to use static memory allocations.
*/
#ifndef BTA_DYNAMIC_MEMORY
#define BTA_DYNAMIC_MEMORY FALSE
#endif
#ifndef BTC_DYNAMIC_MEMORY
#define BTC_DYNAMIC_MEMORY FALSE
#endif
#endif /* #ifdef DYN_MEM_H */
| 3,116 |
/
/
#ifndef AVDT_API_H
#define AVDT_API_H
#include "stack/bt_types.h"
#include "common/bt_target.h"
/
** Constants
/
#ifndef AVDT_VERSION
#define AVDT_VERSION 0x0102
#endif
#define AVDT_VERSION_SYNC 0x0103
/* API function return value result codes. */
#define AVDT_SUCCESS 0 ... | 3,118 |
This is the size of the media packet header, the
** L2CAP packet header and HCI header.
*/
#define AVDT_MEDIA_OFFSET 23
/* The marker bit is used by the application to mark significant events such
** as frame boundaries in the data stream. This constant is used to check or
** set the marker bit in the m_p... | 3,118 |
This indicates the protocol service
** capabilities of a stream endpoint. This value is a mask.
** Multiple values can be combined with a bitwise OR.
*/
#define AVDT_PSC_TRANS (1= 1-Errors.
** >= 2-Warnings.
** >= 3-APIs.
** >= 4-Events.
** ... | 3,118 |
/
/
#ifndef _AVRC_DEFS_H
#define _AVRC_DEFS_H
#include "common/bt_target.h"
#if (AVRC_INCLUDED == TRUE)
/
** constants
/
/* Profile revision numbers */
#define AVRC_REV_1_0 0x0100
#define AVRC_REV_1_3 0x0103
#define AVRC_REV_1_4 0x0104
#define AVRC_REV_1_5 0x0105
#define AVRC_PACKET_LEN... | 3,119 |
Sneak one for the browsing channel */
#define AVRC_OP_BROWSE 0xFF /* Browsing */
#define AVRC_OP_INVALID 0xFE /* invalid one */
/* Company ID's
*/
#define AVRC_CO_BLUETOOTH_SIG 0x00FFFFFF
#define AVRC_CO_WIDCOMM 0x00000361
#define AVRC_CO_BROADCOM 0x00001018
#define AVRC_CO_METADATA ... | 3,119 |
4 */
#define AVRC_PDU_SET_ABSOLUTE_VOLUME 0x50
#define AVRC_PDU_SET_ADDRESSED_PLAYER 0x60
#define AVRC_PDU_SET_BROWSED_PLAYER 0x70
#define AVRC_PDU_GET_FOLDER_ITEMS 0x71
#define AVRC_PDU_CHANGE_PATH 0x72
#define AVRC_PDU_GET_ITEM_ATTRIBUTES 0x... | 3,119 |
*/
#define AVRC_STS_BAD_PARAM 0x01 /* Invalid parameter, sent if the TG received a PDU with a parameter ID that it did not understand. Sent if there is only one parameter ID in the PDU. */
#define AVRC_STS_NOT_FOUND 0x02 /* Specified parameter not found., sent if the parameter ID is understood, but con... | 3,119 |
SetBrowsedPlayer */
#define AVRC_STS_PLAYER_N_ADDR 0x13 /* Player Not Addressed. The Player Id supplied refers to a player which is not currently addressed, and the command is not able to be performed if the player is not set as addressed. Search, SetBrowsedPlayer*/
#define AVRC_STS_BAD_SEARCH_RES 0x14 /* No... | 3,119 |
This PASSTHROUGH command is supported. */
#define AVRC_PF_VENDOR_BIT_NO 56
#define AVRC_PF_VENDOR_MASK 0x01
#define AVRC_PF_VENDOR_OFF 7
#define AVRC_PF_VENDOR_SUPPORTED(x) ((x)[AVRC_PF_VENDOR_OFF] & AVRC_PF_VENDOR_MASK)
/* Basic Group Navigation. This overrules the SDP entry a... | 3,119 |
This bit is set if the player supports searching. */
#define AVRC_PF_SEARCH_BIT_NO 60
#define AVRC_PF_SEARCH_MASK 0x10
#define AVRC_PF_SEARCH_OFF 7
#define AVRC_PF_SEARCH_SUPPORTED(x) ((x)[AVRC_PF_SEARCH_OFF] & AVRC_PF_SEARCH_MASK)
/* AddToNowPlaying. This bit is set if the pla... | 3,119 |
*/
#define AVRC_PF_BR_WH_ADDR_BIT_NO 63
#define AVRC_PF_BR_WH_ADDR_MASK 0x80
#define AVRC_PF_BR_WH_ADDR_OFF 7
#define AVRC_PF_BR_WH_ADDR_SUPPORTED(x) ((x)[AVRC_PF_BR_WH_ADDR_OFF] & AVRC_PF_BR_WH_ADDR_MASK)
/* OnlySearchableWhenAddressed. This bit is set if the player is only able to be searche... | 3,119 |
*/
typedef struct {
UINT8 ctype; /* Command type. */
UINT8 subunit_type; /* Subunit type. */
UINT8 subunit_id; /* Subunit ID. This value is typically ignored in AVRCP,
UINT8 opcode; /* Op Code (passthrough, vendor, etc) */
} tAVRC_HDR;
/* This structure contains a UNIT... | 3,119 |
*/
typedef struct {
tAVRC_HDR hdr; /* Message header. */
UINT32 company_id; /* Company identifier. */
UINT8 *p_vendor_data;/* Pointer to vendor dependent data. */
UINT16 vendor_len; /* Length in bytes of vendor dependent data. */
} tAVRC_MSG_VENDOR;
/* PASS THROUGH message stru... | 3,119 |
*/
UINT16 browse_len; /* Length in bytes of data. */
BT_HDR *p_browse_pkt; /* The GKI buffer received. Set to NULL, if the callback function wants to keep the buffer */
} tAVRC_MSG_BROWSE;
/* This is a union of all message type structures. */
typedef union {
tAVRC_HDR hdr; /* ... | 3,119 |
*/
UINT8 major_type; /* Use AVRC_MJ_TYPE_AUDIO, AVRC_MJ_TYPE_VIDEO, AVRC_MJ_TYPE_BC_AUDIO, or AVRC_MJ_TYPE_BC_VIDEO.*/
UINT32 sub_type; /* Use AVRC_SUB_TYPE_NONE, AVRC_SUB_TYPE_AUDIO_BOOK, or AVRC_SUB_TYPE_PODCAST*/
UINT8 play_status; /* Use AVRC_PLAYSTA... | 3,119 |
*/
BOOLEAN playable; /* TRUE, if the folder can be played. */
tAVRC_FULL_NAME name; /* The folder name, name length and character set id. */
} tAVRC_ITEM_FOLDER;
typedef struct {
UINT32 attr_id; /* Use AVRC_MEDIA_ATTR_ID_TITLE, AVRC_MEDIA_ATTR_ID_ARTIST, ... | 3,119 |
*/
} tAVRC_ITEM_MEDIA;
typedef struct {
UINT8 item_type; /* AVRC_ITEM_PLAYER, AVRC_ITEM_FOLDER, or AVRC_ITEM_MEDIA */
union {
tAVRC_ITEM_PLAYER player; /* The properties of a media player item.*/
tAVRC_ITEM_FOLDER folder; /* The properties of a folder item.*/
... | 3,119 |
opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */
UINT8 capability_id;
UINT8 count;
tAVRC_CAPS_PARAM param;
} tAVRC_GET_CAPS_RSP;
/* ListPlayerAppAttr */
typedef struct {
UINT8 pdu;
tAVRC_STS status;
UINT8 opcode; /* Op Code (copied ... | 3,119 |
invalid one to generate according to pdu) */
UINT8 num_val;
tAVRC_APP_SETTING *p_vals;
} tAVRC_GET_CUR_APP_VALUE_RSP;
/* GetAppAttrTxt */
typedef struct {
UINT8 pdu;
tAVRC_STS status;
UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. inva... | 3,119 |
opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */
UINT8 event_id;
tAVRC_NOTIF_RSP_PARAM param;
} tAVRC_REG_NOTIF_RSP;
/* SetAbsVolume */
typedef struct {
UINT8 pdu;
tAVRC_STS status;
UINT8 opcode; /* Op Co... | 3,119 |
opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */
UINT16 uid_counter;
UINT16 item_count;
tAVRC_ITEM *p_item_list;
} tAVRC_GET_ITEMS_RSP;
/* ChangePath */
typedef struct {
UINT8 pdu;
tAVRC_STS status;
UINT8 ... | 3,119 |
opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */
UINT16 uid_counter;
UINT32 num_items;
} tAVRC_SEARCH_RSP;
typedef struct {
UINT8 pdu;
tAVRC_STS status;
UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldRes... | 3,119 |
/
/
#ifndef A2D_API_H
#define A2D_API_H
#include "common/bt_defs.h"
#include "stack/sdp_api.h"
#if (A2D_INCLUDED == TRUE)
/
** constants
/
#define A2D_VERSION 0x0102
#define A2D_VERSION_1_3 0x0103
#define A2D_VERSION_1_4 0x0104
/* Profile supported features */
#define A2D_SUPF_PLAYER ... | 3,120 |
*/
#define A2D_BAD_CP_FORMAT 0xE1 /* The format of Content Protection Service Capability/Content Protection Scheme Dependent Data is not correct. */
typedef UINT8 tA2D_STATUS;
/* the return values from A2D_BitsSet() */
#define A2D_SET_ONE_BIT 1 /* one and only one bit is set */
#define A2D_SET_ZERO_BI... | 3,120 |
This character string may not be null terminated.
char *p_provider_name;/* Pointer the provider name. This character string may not be null terminated.
UINT16 features; /* Profile supported features */
UINT16 avdt_version; /* AVDTP protocol version */
} tA2D_Service;
/* This is the callback ... | 3,120 |
**
** p_provider_name: Pointer to a null-terminated character
** string containing the provider name.
**
** features: Profile supported features.
**
** sdp_handle: SDP handle returned by SDP_CreateRecord().
**
** Ou... | 3,120 |
The callback
** function will be executed when service discovery is
** complete. There can only be one outstanding call to
** A2D_FindService() at a time; the application must wait
** for the callback before it makes another call to
** ... | 3,120 |
** A2D_FAIL if function execution failed.
**
/
extern tA2D_STATUS A2D_FindService(UINT16 service_uuid, BD_ADDR bd_addr,
tA2D_SDP_DB_PARAMS *p_db, tA2D_FIND_CBACK *p_cback);
/
**
** Function A2D_SetTraceLevel
**
** Description Sets the trace level for A2... | 3,120 |
**
** Returns void
**
/
extern bt_status_t A2D_Init(void);
/
**
** Function A2D_Deinit
**
** Description This function is called at stack startup to free the
** control block (if using dynamic memory), and free the
** control block and tracing level.
**
** Retur... | 3,120 |
/
/
#ifndef HIDDEFS_H
#define HIDDEFS_H
#include "common/bt_target.h"
#if (HID_HOST_INCLUDED == TRUE || HID_DEV_INCLUDED == TRUE)
#if (SDP_INCLUDED == TRUE)
#include "stack/sdp_api.h"
#endif ///SDP_INCLUDED == TRUE
/*
** tHID_STATUS: HID result codes, returned by HID and device and host functions.
*/
enum {
... | 3,121 |
*/
UINT16 rel_num; /*Release Number */
UINT16 hpars_ver; /*HID Parser Version.*/
UINT16 ssr_max_latency; /* HIDSSRHostMaxLatency value, if HID_SSR_PARAM_INVALID not used*/
UINT16 ssr_min_tout; /* HIDSSRHostMinTimeout value, if HID_SSR_PARAM_INVALID not used* */
UINT8 sub_class; ... | 3,121 |
/
/
#ifndef PORT_API_H
#define PORT_API_H
#include "common/bt_target.h"
#include "common/bt_defs.h"
/
** Constants and Types
/
/*
** Define port settings structure send from the application in the
** set settings request, or to the application in the set settings indication.
*/
typedef struct {
#define PORT_BAUD_... | 3,122 |
Parameters are specific
** to each event and are described bellow
*/
typedef int (tPORT_DATA_CALLBACK) (UINT16 port_handle, void *p_data, UINT16 len);
#define DATA_CO_CALLBACK_TYPE_INCOMING 1
#define DATA_CO_CALLBACK_TYPE_OUTGOING_SIZE 2
#define DATA_CO_CALLBACK_TYPE_OUTGOING 3
typedef int (t... | 3,122 |
**
** Parameters: scn - Service Channel Number as registered with
** the SDP (server) or obtained using SDP from
** the peer device (client).
** is_server - TRUE if requesting application is a server
** m... | 3,122 |
Otherwise it is (scn * 2).
** For the server DLCI can be changed later if client will be calling it using
** (scn * 2 + 1) dlci.
**
/
extern int RFCOMM_CreateConnection (UINT16 uuid, UINT8 scn,
BOOLEAN is_server, UINT16 mtu,
BD_ADDR bd_addr, UINT... | 3,122 |
**
** Parameters: handle - Handle of the port returned in the Open
** p_callback - address of the callback function which should
** be called from the RFCOMM when an event
** specified in the mask occurs.
**
/
extern int PORT... | 3,122 |
**
/
extern int PORT_SetDataCallback (UINT16 port_handle,
tPORT_DATA_CALLBACK *p_cb);
extern int PORT_SetDataCOCallback (UINT16 port_handle, tPORT_DATA_CO_CALLBACK *p_port_cb);
/
**
** Function PORT_SetEventMask
**
** Description This function is called to close the speci... | 3,122 |
**
** Parameters: TRUE if any connection opening is found
** bd_addr - bd_addr of the peer
**
/
extern BOOLEAN PORT_IsOpening (BD_ADDR bd_addr);
/
**
** Function PORT_SetState
**
** Description This function configures connection according to the
** specification... | 3,122 |
**
/
extern int PORT_GetState (UINT16 handle, tPORT_STATE *p_settings);
/
**
** Function PORT_Control
**
** Description This function directs a specified connection to pass control
** control information to the peer device.
**
** Parameters: handle - Handle returned in the RFCO... | 3,122 |
Enable flag passed
** shows if port can accept more data.
**
** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
** enable - enables data flow
**
/
extern int PORT_FlowControl (UINT16 handle, BOOLEAN enable);
/
**
** Function PORT_FlowControl_... | 3,122 |
**
** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
** callback.
** p_signal - specify the pointer to control signals info
**
/
#define PORT_DTRDSR_ON 0x01
#define PORT_CTSRTS_ON 0x02
#define PORT_RING_ON 0x04
... | 3,122 |
The
** function should be called when an error occures to clear
** the connection error flag and to enable additional read
** and write operations.
**
** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
** p_errors - poi... | 3,122 |
**
** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
** p_status - pointer to the tPORT_STATUS structur to receive
** connection status
**
/
extern int PORT_GetQueueStatus (UINT16 handle, tPORT_STATUS *p_status);
/
**
** Function ... | 3,122 |
** Application calling this function is responsible to free
** buffer returned.
**
** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
** callback.
** pp_buf - pointer to address of buffer with data,
**
/... | 3,122 |
** Application should not free the buffer.
**
** Parameters: handle - Handle returned in the RFCOMM_CreateConnection
** p_buf - pointer to the buffer with data,
**
/
extern int PORT_Write (UINT16 handle, BT_HDR *p_buf);
/
**
** Function PORT_WriteData
**
** De... | 3,122 |
**
** Returns void
**
/
extern void RFCOMM_Deinit(void);
/
**
** Function PORT_SetTraceLevel
**
** Description This function sets the trace level for RFCOMM. If called with
** a value of 0xFF, it simply reads the current trace level.
**
** Returns the new (current) trac... | 3,122 |
/
/
#ifndef BTU_H
#define BTU_H
#include "common/bt_target.h"
#include "common/bt_defs.h"
#include "osi/thread.h"
// HACK(zachoverflow): temporary dark magic
#define BTU_POST_TO_TASK_NO_GOOD_HORRIBLE_HACK 0x1700 // didn't look used in bt_types...here goes nothing
typedef struct {
void (*callback)(BT_HDR *);
} p... | 3,123 |
*/
typedef struct {
BD_ADDR remote_bd_addr;
UINT8 page_scan_rep_mode;
UINT8 page_scan_per_mode;
UINT8 page_scan_mode;
DEV_CLASS dev_class;
UINT16 clock_offset;
} tBTU_INQ_INFO;
#define BTU_MAX_REG_TIMER (2) /* max # timer callbacks which may register */
#de... | 3,123 |
c
*/
void btu_start_timer (TIMER_LIST_ENT *p_tle, UINT16 type, UINT32 timeout);
void btu_stop_timer (TIMER_LIST_ENT *p_tle);
void btu_free_timer (TIMER_LIST_ENT *p_tle);
void btu_start_timer_oneshot(TIMER_LIST_ENT *p_tle, UINT16 type, UINT32 timeout);
void btu_stop_timer_oneshot(TIMER_LIST_ENT *p_tle);
void btu_uipc_... | 3,123 |
c
*/
void btu_init_core(void);
void btu_free_core(void);
void BTU_StartUp(void);
void BTU_ShutDown(void);
void btu_task_start_up(void *param);
void btu_task_shut_down(void);
UINT16 BTU_BleAclPktSize(void);
bool btu_task_post(uint32_t sig, void *param, uint32_t timeout);
int get_btu_work_queue_size(void);
osi_t... | 3,123 |
/
#ifndef SDP_API_H
#define SDP_API_H
#include "common/bt_target.h"
#include "stack/sdpdefs.h"
#if (SDP_INCLUDED == TRUE)
/
** Constants
/
/* Success code and error codes */
#define SDP_SUCCESS 0x0000
#define SDP_INVALID_VERSION 0x0001
#define SDP_INVALID_SERV_REC_HDL ... | 3,124 |
*/
typedef void (tSDP_DISC_CMPL_CB) (UINT16 result);
typedef void (tSDP_DISC_CMPL_CB2) (UINT16 result, void *user_data);
typedef struct {
BD_ADDR peer_addr;
UINT16 peer_mtu;
} tSDP_DR_OPEN;
typedef struct {
UINT8 *p_data;
UINT16 data_len;
} tSDP_DR_DATA;
typedef u... | 3,124 |
allocated/released by client */
UINT32 raw_size; /* size of raw_data */
UINT32 raw_used; /* length of raw_data used */
#endif
} tSDP_DISCOVERY_DB;
/* This structure is used to add protocol lists and find protocol elements */
typedef struct {
UINT16 ... | 3,124 |
*/
/
**
** Function SDP_InitDiscoveryDb
**
** Description This function is called to initialize a discovery database.
**
** Returns TRUE if successful, FALSE if one or more parameters are bad
**
/
extern BOOLEAN SDP_InitDiscoveryDb (tSDP_DISCOVERY_DB *p_db, UINT32 len,
... | 3,124 |
**
/
extern BOOLEAN SDP_ServiceSearchRequest (UINT8 *p_bd_addr,
tSDP_DISCOVERY_DB *p_db,
tSDP_DISC_CMPL_CB *p_cb);
/
**
** Function SDP_ServiceSearchAttributeRequest
**
** Description This function queries an SDP server for information.
**
** The difference between this ... | 3,124 |
**
/
extern BOOLEAN SDP_ServiceSearchAttributeRequest2 (UINT8 *p_bd_addr,
tSDP_DISCOVERY_DB *p_db,
tSDP_DISC_CMPL_CB2 *p_cb, void *user_data);
/* API of utilities to find data in the local discovery database */
/
**
** Function SDP_FindAttributeInDb
**
** Description This function querie... | 3,124 |
** If the p_start_rec pointer is NULL, it looks from the beginning
** of the database, else it continues from the next record after
** p_start_rec.
**
** Returns Pointer to record containing service class, or NULL
**
/
extern tSDP_DISC_REC *SDP_FindServiceInD... | 3,124 |
**
** Parameters: p_rec - pointer to a SDP record.
** p_uuid - output parameter to save the UUID found.
**
** Returns TRUE if found, otherwise FALSE.
**
/
extern BOOLEAN SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID *p_uuid);
/
**
** Function SDP_FindSe... | 3,124 |
**
/
extern BOOLEAN SDP_FindProtocolListElemInRec (tSDP_DISC_REC *p_rec,
UINT16 layer_uuid,
tSDP_PROTOCOL_ELEM *p_elem);
/
**
** Function SDP_FindAddProtoListsElemInRec
**
** Description This function looks at a specific discovery record for a
** protocol list element.
*... | 3,124 |
**
/
extern BOOLEAN SDP_FindProfileVersionInRec (tSDP_DISC_REC *p_rec,
UINT16 profile_uuid,
UINT16 *p_version);
/* API into SDP for local service database updates */
/
**
** Function SDP_CreateRecord
**
** Description This function is called to create a record in the database.
** ... | 3,124 |
**
** Returns -1, if the record is not found.
** Otherwise, the offset (0 or 1) to start of data in p_data.
**
** The size of data copied into p_data is in *p_data_len.
**
/
extern INT32 SDP_ReadRecord(UINT32 handle, UINT8 *p_data, INT32 *p_data_len);
/
**
** Function ... | 3,124 |
** This would be through the SDP database maintenance API.
** If the sequence already exists in the record, it is replaced
** with the new sequence.
**
** NOTE Element values must be passed as a Big Endian stream.
**
** Returns TRUE if added OK, e... | 3,124 |
This would be through the SDP database maintenance API.
** If the protocol list already exists in the record, it is replaced
** with the new list.
**
** Returns TRUE if added OK, else FALSE
**
/
extern BOOLEAN SDP_AddProtocolList (UINT32 handle, UINT16 num_elem,
... | 3,124 |
This would be through the SDP database maintenance API.
** If the version already exists in the record, it is replaced
** with the new one.
**
** Returns TRUE if added OK, else FALSE
**
/
extern BOOLEAN SDP_AddProfileDescriptorList (UINT32 handle,
UINT16 profile_uuid,... | 3,124 |
** This would be through the SDP database maintenance API.
** If the service list already exists in the record, it is replaced
** with the new list.
**
** Returns TRUE if added OK, else FALSE
**
/
extern BOOLEAN SDP_AddServiceClassIdList (UINT32 handle,
... | 3,124 |
**
** Returns SDP_SUCCESS if query started successfully, else error
**
/
extern UINT16 SDP_DiDiscover (BD_ADDR remote_device,
tSDP_DISCOVERY_DB *p_db, UINT32 len,
tSDP_DISC_CMPL_CB *p_cb);
/
**
** Function SDP_GetNumDiRecords
**
** Descript... | 3,124 |
If called with
** a value of 0xFF, it simply reads the current trace level.
**
** Returns the new (current) trace level
**
/
extern UINT8 SDP_SetTraceLevel (UINT8 new_level);
/
**
** Function SDP_ConnOpen
**
** Description This function creates a connection to the SDP server on ... | 3,124 |
**
/
BOOLEAN SDP_ConnClose (UINT32 handle);
/
**
** Function SDP_FindServiceUUIDInRec
**
** Description This function is called to read the service UUID within a record
** if there is any.
**
** Parameters: p_rec - pointer to a SDP record.
**
** Returns TRUE if found, ... | 3,124 |
/
#ifndef _L2CAP_CLIENT_H_
#define _L2CAP_CLIENT_H_
#if (defined(L2CAP_CLIENT_INCLUDED) && L2CAP_CLIENT_INCLUDED == TRUE)
//#include
#include
#include
typedef struct buffer_t buffer_t;
typedef struct l2cap_client_t l2cap_client_t;
typedef struct {
void (*connected)(l2cap_client_t *client, void *context);
... | 3,125 |
|context| may be NULL and will be passed as the argument
// to all callbacks in |l2cap_client_callbacks_t|. The returned object must be freed
// with |l2cap_client_free|.
l2cap_client_t *l2cap_client_new(const l2cap_client_callbacks_t *callbacks, void *context);
// Frees the L2CAP client object allocated with |l2cap_... | 3,125 |
This function is asynchronous and idempotent. It
// will indicate completion with a 'disconnected' callback. |client| must not be NULL.
void l2cap_client_disconnect(l2cap_client_t *client);
// Returns true if |client| is connected and is ready to accept data written to it.
// |client| must not be NULL.
bool l2cap_cli... | 3,125 |
..for Starting PDU of a semented SDU */
#define L2CAP_FCR_END_SDU 0x8000 /* ...for ending PDU of a segmented SDU */
#define L2CAP_FCR_CONT_SDU 0xc000 /* ...for continuation PDU of a segmented SDU */
/* Supervisory frame types
*/
#define L2CAP_FCR_SUP_RR 0x0000 /* Supervisory frame - RR ... | 3,126 |
/
#ifndef HCIMSGS_H
#define HCIMSGS_H
#include
#include "common/bt_target.h"
#include "stack/hcidefs.h"
#include "stack/bt_types.h"
#include "osi/pkt_queue.h"
#include "osi/allocator.h"
#define HCI_CMD_BUF_TYPE_METADATA (0xa56e)
#define HCI_CMD_MSG_F_SRC_NOACK (0x01)
typedef void (*hci_cmd_cmpl_cb)(... | 3,127 |
/
/
#ifndef A2D_SBC_H
#define A2D_SBC_H
#if (A2D_INCLUDED == TRUE)
/
** Constants
/
/* the length of the SBC Media Payload header. */
#define A2D_SBC_MPL_HDR_LEN 1
/* the LOSC of SBC media codec capabilitiy */
#define A2D_SBC_INFO_LEN 6
/* for Codec Specific Information Element */
#define A2D_SBC... | 3,128 |
** Input Parameters:
** media_type: Indicates Audio, or Multimedia.
**
** p_ie: The SBC Codec Information Element information.
**
** Output Parameters:
** p_result: the resulting codec info byte sequence.
**
** Returns ... | 3,128 |
**
** Returns A2D_SUCCESS if function execution succeeded.
** Error status code, otherwise.
/
extern tA2D_STATUS A2D_ParsSbcInfo(tA2D_SBC_CIE *p_ie, UINT8 *p_info,
BOOLEAN for_caps);
/
**
** Function A2D_BldSbcMplHdr
**
** Description This func... | 3,128 |
**
** Returns void.
/
extern void A2D_BldSbcMplHdr(UINT8 *p_dst, BOOLEAN frag, BOOLEAN start,
BOOLEAN last, UINT8 num);
/
**
** Function A2D_ParsSbcMplHdr
**
** Description This function is called by an application to parse
** the SBC Media Payload h... | 3,128 |
/
#ifndef HIDD_API_H
#define HIDD_API_H
#include "hiddefs.h"
#include "sdp_api.h"
#if (HID_DEV_INCLUDED == TRUE)
/
/
enum {
HID_CHANNEL_INTR,
HID_CHANNEL_CTRL
};
/*
HID_DHOST_EVT_OPEN - connected to host device (CTRL and INTR), data = n/a
HID_DHOST_EVT_CLOSE - disconnected from host device, data=reas... | 3,129 |
/
#ifndef GATT_API_H
#define GATT_API_H
#include "common/bt_target.h"
#include "stack/gattdefs.h"
#include "stack/btm_ble_api.h"
/
** Constants
/
/* Success code and error codes */
#define GATT_SUCCESS 0x00
#define GATT_INVALID_HANDLE 0x01
#define GATT_READ_NOT_PERMIT ... | 3,130 |
0 01001-0010(write cmd)*/
#define GATT_REQ_PREPARE_WRITE 0x16
#define GATT_RSP_PREPARE_WRITE 0x17
#define GATT_REQ_EXEC_WRITE 0x18
#define GATT_RSP_EXEC_WRITE 0x19
#define GATT_HANDLE_VALUE_NOTIF 0x1B
#define GATT_HANDLE_VALUE_IND ... | 3,130 |
This field is used with GATT_DISC_SRVC_ALL
or GATT_DISC_SRVC_BY_UUID
type of discovery result callback. */
UINT16 handle; /* When used with GATT_DISC_INC_SRVC type disc... | 3,130 |
*/
typedef void (tGATT_CMPL_CBACK) (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status,
tGATT_CL_COMPLETE *p_data);
/* Define a callback function when an initialized connection is established. */
typedef void (tGATT_CONN_CBACK) (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEA... | 3,130 |
*/
typedef struct {
tGATT_CONN_CBACK *p_conn_cb;
tGATT_CMPL_CBACK *p_cmpl_cb;
tGATT_DISC_RES_CB *p_disc_res_cb;
tGATT_DISC_CMPL_CB *p_disc_cmpl_cb;
tGATT_REQ_CBACK *p_req_cb;
tGATT_ENC_CMPL_CB *p_enc_cmpl_cb;... | 3,130 |
If called with
** a value of 0xFF, it simply returns the current trace level.
**
** Returns The new or current trace level
**
/
extern UINT8 GATT_SetTraceLevel (UINT8 new_level);
//
/* GATT Profile API Functions */
//
/* GATT Profile Server Functions */
//
/
**
** Function GATTS_Ad... | 3,130 |
**
** *** It should be called only once per service instance ***
**
** Parameter gatt_if : application if
** p_svc_uuid : service UUID
** svc_inst : instance of the service inside the application
** num_handles : number of hand... | 3,130 |
**
/
extern UINT16 GATTS_AddIncludeService (UINT16 service_handle,
UINT16 include_svc_handle);
/
**
** Function GATTS_AddCharacteristic
**
** Description This function is called to add a characteristic into a service.
** It will add a characteristi... | 3,130 |
Add descriptor should follow add char
** to which it belongs, and next add char should be done only
** after all add descriptors for the previous char.
**
** Parameter service_handle : To which service this characteristic descriptor
** is add... | 3,130 |
**
** Parameter gatt_if : application interface
** p_svc_uuid : service UUID
** svc_inst : instance of the service inside the application
**
** Returns TRUE if operation succeed, FALSE if handle block was not found.
**
/
extern BOOLEAN GATTS_DeleteService... | 3,130 |
**
/
extern void GATTS_StopService (UINT16 service_handle);
/
**
** Function GATTs_HandleValueIndication
**
** Description This function sends a handle value indication to a client.
**
** Parameter conn_id: connection identifier.
** attr_handle: Attribute handle of this handle va... | 3,130 |
** p_val: Pointer to the indicated attribute value data.
**
** Returns GATT_SUCCESS if successfully sent; otherwise error code.
**
/
extern tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_handle,
UINT16 val_len, UINT8 *p_val);
/
**
** Function GATTS_... | 3,130 |
**
/
tGATT_STATUS GATTS_SetAttributeValue(UINT16 attr_handle, UINT16 length, UINT8 *value);
/
**
** Function GATTS_GetAttributeValue
**
** Description This function sends to set the attribute value .
**
** Parameter attr_handle: the attribute handle
** length:the attribute va... | 3,130 |
.
**
** Returns GATT_SUCCESS if command started successfully.
**
/
extern tGATT_STATUS GATTC_ConfigureMTU (UINT16 conn_id);
/
**
** Function GATTC_Discover
**
** Description This function is called to do a discovery procedure on ATT server.
**
** Parameters conn_id: connection identifier.
*... | 3,130 |
**
** Returns GATT_SUCCESS if command started successfully.
**
/
extern tGATT_STATUS GATTC_Read (UINT16 conn_id, tGATT_READ_TYPE type,
tGATT_READ_PARAM *p_read);
/
**
** Function GATTC_Write
**
** Description This function is called to read the value of an attribu... | 3,130 |
**
/
extern tGATT_STATUS GATTC_ExecuteWrite (UINT16 conn_id, BOOLEAN is_execute);
/
**
** Function GATTC_SendHandleValueConfirm
**
** Description This function is called to send a handle value confirmation
** as response to a handle value notification from server.
**
** Parameters ... | 3,130 |
** idle_tout: timeout value in seconds.
** transport: transport option.
**
** Returns void
**
/
extern void GATT_SetIdleTimeout (BD_ADDR bd_addr, UINT16 idle_tout,
tGATT_TRANSPORT transport);
/
**
** Function GATT_Register
**
** Desc... | 3,130 |
Function may call back
** with connection status and queued notifications
**
** Parameter gatt_if: application interface.
**
** Returns None
**
/
extern void GATT_StartIf (tGATT_IF gatt_if);
/
**
** Function GATT_Connect
**
** Description This function initiate a connec... | 3,130 |
**
** Parameters gatt_if: client interface. If 0 used as unconditionally disconnect,
** typically used for direct connection cancellation.
** bd_addr: peer device address.
** is_direct: is a direct connection or a background auto connection
**
** Returns... | 3,130 |
**
** Returns status.
**
/
extern tGATT_STATUS GATT_SendServiceChangeIndication (BD_ADDR bd_addr);
/
**
** Function GATT_GetConnectionInfor
**
** Description This function use conn_id to find its associated BD address and application
** interface
**
** Parameters conn_id:... | 3,130 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.