text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
/ #ifndef BTC_HD_H #define BTC_HD_H #if BTC_HD_INCLUDED == TRUE #include #include "bta/bta_hd_api.h" #include "btc/btc_task.h" #include "esp_hidd_api.h" typedef enum { BTC_HD_INIT_EVT = 0, BTC_HD_DEINIT_EVT, BTC_HD_REGISTER_APP_EVT, BTC_HD_UNREGISTER_APP_EVT, BTC_HD_CONNECT_EVT, BTC_HD_DISCO...
2,969
/* */ #ifndef __BTC_L2CAP_H__ #define __BTC_L2CAP_H__ #include "btc/btc_task.h" #include "esp_bt_defs.h" #include "esp_l2cap_bt_api.h" #include "common/bt_target.h" #include "bta/bta_jv_api.h" #if (defined BTC_L2CAP_INCLUDED && BTC_L2CAP_INCLUDED == TRUE) #define BTC_L2CAP_INVALID_PSM 0x00 typedef enum { BTC_...
2,970
/* */ / ** ** Name: btc_av_api.h ** ** Description: This is the public interface file for the advanced ** audio/video streaming (AV) subsystem of BTC. ** / #ifndef __BTC_AV_API_H__ #define __BTC_AV_API_H__ #include "common/bt_target.h" #include "bta/bta_av_api.h" #include "st...
2,971
/* */ #ifndef __BTC_SPP_H__ #define __BTC_SPP_H__ #include "btc/btc_task.h" #include "esp_bt_defs.h" #include "esp_spp_api.h" #include "common/bt_target.h" #include "bta/bta_jv_api.h" #if (defined BTC_SPP_INCLUDED && BTC_SPP_INCLUDED == TRUE) #define ESP_SPP_MAX_SESSION BTA_JV_MAX_RFC_SR_SESSION #define ESP_SP...
2,972
/ / ** ** Header file for profile folder. ** / #ifndef SRVC_DIS_API_H #define SRVC_DIS_API_H #include "common/bt_target.h" #include "stack/gatt_api.h" #include "stack/gattdefs.h" #include "esp_gatts_api.h" #define DIS_SUCCESS GATT_SUCCESS #define DIS_ILLEGAL_PARAM GATT_ILLEGAL_PARAMETER #define DI...
2,973
** / //extern tGATT_STATUS srvc_eng_init (void); / ** DIS Server Function / extern bool dis_valid_handle_range(UINT16 handle); / ** ** Function DIS_Init ** ** Description Initializa the Device Information Service Server. ** / extern void DIS_Init (tBTA_GATTS_IF gatt_if, tDIS_ATTR_MASK dis_attr_mask); ...
2,973
/* */ #ifndef __BT_SDP_H__ #define __BT_SDP_H__ #include // #include "bluetooth.h" #include "common/bt_defs.h" #include "esp_bt_defs.h" #define SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH 15 /** */ typedef enum { SDP_TYPE_RAW, // Used to carry raw SDP search data for unknown UUIDs SDP_TYPE_MAP_MAS, //...
2,975
/ #ifndef SRVC_DIS_API_H #define SRVC_DIS_API_H #include "common/bt_target.h" #include "stack/gatt_api.h" #include "stack/gattdefs.h" #define DIS_SUCCESS GATT_SUCCESS #define DIS_ILLEGAL_PARAM GATT_ILLEGAL_PARAMETER #define DIS_NO_RESOURCES GATT_NO_RESOURCES typedef UINT8 tDIS_STATUS; / **...
2,976
** / extern tGATT_STATUS srvc_eng_init (void); / ** DIS Server Function / / ** ** Function DIS_SrInit ** ** Description Initializa the Device Information Service Server. ** / extern tDIS_STATUS DIS_SrInit (tDIS_ATTR_MASK dis_attr_mask); / ** ** Function DIS_SrUpdate ** ** Description Upda...
2,976
/* */ / #ifndef __BTC_HF_CLIENT_H__ #define __BTC_HF_CLIENT_H__ #include "common/bt_target.h" #include "esp_hf_client_api.h" #include "btc/btc_task.h" #include "btc/btc_common.h" #include "bta/bta_hf_client_api.h" #if (BTC_HF_CLIENT_INCLUDED == TRUE) / ** Type definitions for callback functions / typedef enum { ...
2,977
/* */ #ifndef __BTC_GATTS_H__ #define __BTC_GATTS_H__ #include "btc/btc_task.h" #include "esp_bt_defs.h" #include "esp_gatt_defs.h" #include "esp_gatts_api.h" #include "osi/future.h" typedef enum { BTC_GATTS_ACT_APP_REGISTER = 0, BTC_GATTS_ACT_APP_UNREGISTER, BTC_GATTS_ACT_CREATE_SERVICE, BTC_GATTS_...
2,978
/* */ / #ifndef __BTC_A2DP_SOURCE_H__ #define __BTC_A2DP_SOURCE_H__ #include #include "common/bt_target.h" #include "bta/bta_api.h" #include "btc_av_api.h" #include "esp_a2dp_api.h" #if BTC_AV_SRC_INCLUDED / ** Data types / /* tBTC_MEDIA_INIT_AUDIO msg structure */ typedef struct { BT_HDR hdr; UINT16 ...
2,979
This function ** should be called by the BTC AV state machine prior to using ** the module ** ** Returns TRUE is success ** / bool btc_a2dp_source_startup(void); / ** ** Function btc_a2dp_source_shutdown ** ** Description Shutdown and cleanup the A2DP ...
2,979
/* */ #ifndef __BTC_GAP_BT_H__ #define __BTC_GAP_BT_H__ #include "common/bt_target.h" #include "common/bt_defs.h" #include "esp_bt_defs.h" #include "esp_gap_bt_api.h" #include "btc/btc_task.h" #include "bta/utl.h" #if (BTC_GAP_BT_INCLUDED == TRUE) typedef enum { BTC_GAP_BT_SEARCH_DEVICES_EVT = 0, BTC_GAP_BT...
2,980
/* */ / #ifndef __BTC_AV_H__ #define __BTC_AV_H__ #include "common/bt_target.h" #include "esp_a2dp_api.h" #include "btc/btc_task.h" #include "btc/btc_common.h" #include "btc/btc_sm.h" #include "bta/bta_av_api.h" #if (BTC_AV_INCLUDED == TRUE) // global variable to inidcate avrc is initialized with a2dp extern boo...
2,981
Only when connected this function ** will accurately provide a true capability of ** remote peer. If not connected it will always be false. ** ** Returns TRUE if remote device is capable of EDR ** / BOOLEAN btc_av_is_peer_edr(void); / ** ** Function btc_av_clear_rem...
2,981
/* */ / #ifndef __BTC_A2DP_H__ #define __BTC_A2DP_H__ #include #include "common/bt_target.h" #include "bta/bta_api.h" #include "btc_av_api.h" #include "esp_a2dp_api.h" #if BTC_AV_INCLUDED / ** Constants / #define BTC_AV_SUCCESS (0) /** */ #define BTC_ERROR_SRV_AV_NOT_ENABLED ...
2,982
/ #ifndef BTC_HH_H #define BTC_HH_H #include #include "bta/bta_hh_api.h" #include "btc/btc_task.h" #include "osi/alarm.h" #include "esp_hidh_api.h" #define BTC_HH_MAX_HID 8 #define BTC_HH_MAX_ADDED_DEV 32 #define BTC_HH_MAX_KEYSTATES 3 #define BTC_HH_KEYSTATE_MASK_NUMLOCK 0x01 #define BTC_HH_KEYSTATE_MASK_CAPSLOCK ...
2,983
/* */ / #ifndef __BTC_HF_AG_H__ #define __BTC_HF_AG_H__ #include "common/bt_target.h" #include "btc/btc_task.h" #include "btc/btc_common.h" #include "bta/bta_ag_api.h" #include "esp_hf_ag_api.h" #if (BTC_HF_INCLUDED == TRUE) / ** Type Defs / /* btc_hf_act_t */ typedef enum { //INIT BTC_HF_INIT_EVT, ...
2,984
/* */ #ifndef __BTC_GATT_UTIL_H__ #define __BTC_GATT_UTIL_H__ #include "stack/bt_types.h" #include "bta/bta_gatt_api.h" #include "esp_bt_defs.h" #include "esp_gatt_defs.h" #include "esp_gattc_api.h" #define BTC_GATT_CREATE_CONN_ID(gatt_if, conn_id) ((uint16_t) ((((uint8_t)(conn_id)) > 8) #define BTC_GATT_GET_GATT_...
2,985
/* */ / #ifndef __BTC_A2DP_CONTROL_H__ #define __BTC_A2DP_CONTROL_H__ #include #include "common/bt_target.h" #include "bta/bta_api.h" #include "btc_av_api.h" #include "esp_a2dp_api.h" #if BTC_AV_INCLUDED / ** Public functions / / ** ** Function btc_a2dp_control_media_ctrl ** ** Description Ha...
2,986
It should be called during ** the startup stage of A2DP streaming. ** / bool btc_a2dp_control_init(void); / ** ** Function btc_a2dp_control_cleanup ** ** Description Cleanup the A2DP control module ** / void btc_a2dp_control_cleanup(void); #endif /* #if BTC_AV_INCLUDED */ #en...
2,986
/* */ #ifndef __BTC_SDP_H__ #define __BTC_SDP_H__ #include "btc/btc_task.h" #include "esp_bt_defs.h" #include "common/bt_target.h" #include "bta/bta_sdp_api.h" #include "bt_sdp.h" #if (defined BTC_SDP_INCLUDED && BTC_SDP_INCLUDED == TRUE) typedef enum { BTC_SDP_ACT_INIT = 0, BTC_SDP_ACT_DEINIT, BTC_SDP...
2,987
/* */ #ifndef __ESP_SEC_API_H__ #define __ESP_SEC_API_H__ #include "stack/bt_types.h" #define APP_SEC_IRK_FLAG (0) #define RAND_NB_LEN 0x08 #define SEC_KEY_LEN 0x10 /* */ /// Generic Security key structure typedef struct { /// Key value MSB -> LSB UINT8 key[SEC_KEY_LEN]; } smp_s...
2,988
/ #ifndef SRVC_DIS_INT_H #define SRVC_DIS_INT_H #include "common/bt_target.h" #include "srvc_api.h" #include "stack/gatt_api.h" #define DIS_MAX_CHAR_NUM 9 typedef struct { UINT16 uuid; UINT16 handle; } tDIS_DB_ENTRY; #define DIS_SYSTEM_ID_SIZE 8 #define DIS_PNP_ID_SIZE 7 ...
2,989
/ #ifndef SRVC_BATTERY_INT_H #define SRVC_BATTERY_INT_H #include "common/bt_target.h" #include "srvc_api.h" #include "stack/gatt_api.h" #ifndef BA_MAX_INT_NUM #define BA_MAX_INT_NUM 4 #endif #define BATTERY_LEVEL_SIZE 1 typedef struct { UINT8 app_id; UINT16 ba_level_hdl; UI...
2,990
/* */ #ifndef __BTC_AV_CO_H__ #define __BTC_AV_CO_H__ #include "btc_a2dp.h" #include "bta/bta_av_co.h" #if (BTA_AV_INCLUDED == TRUE) / ** Constants & Macros / enum { BTC_SV_AV_AA_SBC_INDEX = 0, BTC_SV_AV_AA_SBC_SINK_INDEX, BTC_SV_AV_AA_SEP_INDEX /* Last index */ }; / ** Local data / typedef struct ...
2,991
** This function is starting to modify the configuration, it ** should be protected. ** ** Returns TRUE if successful, FALSE otherwise ** / BOOLEAN bta_av_co_audio_set_codec(const tBTC_AV_MEDIA_FEEDINGS *p_feeding, tBTC_AV_STATUS *p_status); / ** ** Function ...
2,991
If set we will set the ** remote preference. ** ** Returns TRUE if config set, FALSE otherwize ** / BOOLEAN bta_av_co_get_remote_bitpool_pref(UINT8 *min, UINT8 *max); #endif ///BTA_AV_INCLUDED == TRUE #endif
2,991
/* */ #pragma once #include #include "bt_common.h" struct bluedroid_config { bool (*get_ssp_enabled)(void); }; bt_status_t bluedriod_config_init(esp_bluedroid_config_t *cfg); void bluedriod_config_deinit(void); const struct bluedroid_config *bluedriod_config_get(void);
2,992
/ #ifndef _HCI_LAYER_H_ #define _HCI_LAYER_H_ #include "common/bt_target.h" #include "stack/bt_types.h" #include "osi/allocator.h" #include "osi/osi.h" #include "osi/future.h" #include "osi/thread.h" #include "osi/pkt_queue.h" ///// LEGACY DEFINITIONS ///// /* Message event mask across Host/Controller lib and stack...
2,993
BT_EVT_TO_LM_HCI_ACL */ #define MSG_STACK_TO_HC_HCI_SCO 0x2200 /* eq. BT_EVT_TO_LM_HCI_SCO */ #define MSG_STACK_TO_HC_HCI_CMD 0x2000 /* eq. BT_EVT_TO_LM_HCI_CMD */ /* Local Bluetooth Controller ID for BR/EDR */ #define LOCAL_BR_EDR_CONTROLLER_ID 0 #define HCI_CMD_MSG_F_VND_FUTURE (0x01) #defi...
2,993
//void (*send_low_power_command)(low_power_command_t command); // Do the postload sequence (call after the rest of the BT stack initializes). void (*do_postload)(void); // Send a command through the HCI layer void (*transmit_command)( BT_HDR *command, command_complete_cb complete_...
2,993
/ #ifndef BT_VENDOR_LIB_H #define BT_VENDOR_LIB_H #include //#include //#include /** Struct types */ /** Typedefs and defines */ /** Vendor specific operations OPCODE */ typedef enum { /* [operation] */ BT_VND_OP_POWER_CTRL, /* [operation] */ BT_VND_OP_FW_CFG, /* [operation] ...
2,994
*/ typedef enum { CH_CMD, // HCI Command channel CH_EVT, // HCI Event channel CH_ACL_OUT, // HCI ACL downstream channel CH_ACL_IN, // HCI ACL upstream channel CH_MAX // Total channels } bt_vendor_hci_channels_t; /** LPM disable/enable request */ typedef enum { BT_VND_LPM_DISAB...
2,994
/ #ifndef _HCI_HAL_H_ #define _HCI_HAL_H_ #include #include #include "common/bt_target.h" #include "osi/pkt_queue.h" #include "stack/bt_types.h" #if ((BT_CONTROLLER_INCLUDED == TRUE) && SOC_ESP_NIMBLE_CONTROLLER) #include "os/os_mbuf.h" #endif typedef enum { DATA_TYPE_COMMAND = 1, DATA_TYPE_ACL = 2, ...
2,995
//bool (*init)(const hci_hal_callbacks_t *upper_callbacks); // Connect to the underlying hardware, and let data start flowing. bool (*open)(const hci_hal_callbacks_t *upper_callbacks, void *task_thread); // Disconnect from the underlying hardware, and close the HAL. // "Daisy, Daisy..." void ...
2,995
// |data| may not be NULL. |length| must be greater than zero. // // IMPORTANT NOTE: // Depending on the underlying implementation, the byte right // before the beginning of |data| may be borrowed during this call // and then restored to its original value. // This is safe in the bluetooth ...
2,995
/ #ifndef _HCI_AUDIO_H_ #define _HCI_AUDIO_H_ #include // Audio state definitions. typedef enum { SCO_STATE_OFF = 0, // Audio is off. SCO_STATE_OFF_TRANSFER, // Closed pending final transfer of audio. SCO_STATE_ON, // Audio is on. SCO_STATE_SETUP, // Open pending completion of a...
2,996
/ #ifndef _HCI_PACKET_FACTORY_H_ #define _HCI_PACKET_FACTORY_H_ #include "stack/bt_types.h" #include "device/event_mask.h" typedef struct { BT_HDR *(*make_reset)(void); BT_HDR *(*make_read_buffer_size)(void); BT_HDR *(*make_set_c2h_flow_control)(uint8_t enable); BT_HDR *(*make_set_adv_report_flow_con...
2,997
/ #ifndef _HCI_PACKET_PARSER_H_ #define _HCI_PACKET_PARSER_H_ #include #include "osi/allocator.h" #include "device/bdaddr.h" #include "stack/bt_types.h" #include "device/device_features.h" //#include "features.h" #include "device/version.h" typedef struct { void (*parse_generic_command_complete)(BT_HDR *respon...
2,998
/* */ #ifndef __HCI_TRANS_INT_H__ #define __HCI_TRANS_INT_H__ #include #include #include "esp_err.h" #include "esp_bluedroid_hci.h" #ifdef __cplusplus extern "C" { #endif /** */ bool hci_host_check_send_available(void); /** */ void hci_host_send_packet(uint8_t *data, uint16_t len); /** */ esp_err_t hci_host...
2,999
/ #ifndef _PACKET_FRAGMENTER_H_ #define _PACKET_FRAGMENTER_H_ #include "osi/allocator.h" #include "stack/bt_types.h" #include "hci/hci_layer.h" typedef void (*transmit_finished_cb)(BT_HDR *packet, bool all_fragments_sent); typedef void (*packet_reassembled_cb)(BT_HDR *packet); typedef void (*packet_fragmented_cb)(BT...
3,000
void (*cleanup)(void); // Check if Current fragmenter is ongoing BT_HDR *(*fragment_current_packet)(void); // Fragments |packet| if necessary and hands off everything to the fragmented callback. void (*fragment_and_dispatch)(BT_HDR *packet); // If |packet| is a complete packet, forwards to th...
3,000
/ #ifndef _HCI_INTERNALS_H_ #define _HCI_INTERNALS_H_ // 2 bytes for opcode, 1 byte for parameter length (Volume 2, Part E, 5.4.1) #define HCI_COMMAND_PREAMBLE_SIZE 3 // 2 bytes for handle, 2 bytes for data length (Volume 2, Part E, 5.4.2) #define HCI_ACL_PREAMBLE_SIZE 4 // 2 bytes for handle, 1 byte for data length ...
3,001
/ / #ifndef BTE_H #define BTE_H //#include //#include //#include #include "common/bt_target.h" /* by default on shutdown, baudrate is reset 115kbits. this should NOT be need for platforms */ #ifndef BTE_RESET_BAUD_ON_BT_DISABLE #define BTE_RESET_BAUD_ON_BT_DISABLE TRUE #endif /* Target Modes (based on jumper se...
3,002
should probably go into bt_types to avoid collisions! */ #define BT_EVT_TO_HCISU_USERIAL_OP (0x0080 | BT_EVT_HCISU) /* operation for above hcisu event */ #define BT_HCISU_USERIAL_OPEN (0) /* open serial port calling USERIAL_Open() */ #define BT_HCISU_USERIAL_CLOSE (1) /* close userial port */ /* options associated ...
3,002
/* */ #ifndef _BT_COMMON_TYPES_H_ #define _BT_COMMON_TYPES_H_ #include "common/bt_defs.h" #include "osi/thread.h" typedef void (* bluedroid_init_done_cb_t)(void); typedef struct { uint8_t client_if; uint8_t filt_index; uint8_t advertiser_state; uint8_t advertiser_info_present; uint8_t addr_...
3,003
/ #ifndef BT_VENDOR_LIB_H #define BT_VENDOR_LIB_H #include //#include //#include /** Struct types */ /** Typedefs and defines */ /** Vendor specific operations OPCODE */ typedef enum { /* [operation] */ BT_VND_OP_POWER_CTRL, /* [operation] */ BT_VND_OP_FW_CFG, /* [operation] ...
3,004
*/ typedef enum { CH_CMD, // HCI Command channel CH_EVT, // HCI Event channel CH_ACL_OUT, // HCI ACL downstream channel CH_ACL_IN, // HCI ACL upstream channel CH_MAX // Total channels } bt_vendor_hci_channels_t; /** LPM disable/enable request */ typedef enum { BT_VND_LPM_DISAB...
3,004
/ / #pragma once typedef struct { #if ((BLE_INCLUDED == TRUE) && (SMP_INCLUDED == TRUE)) UINT8 ble_auth_req; UINT8 ble_io_cap; UINT8 ble_init_key; UINT8 ble_resp_key; UINT8 ble_max_key_size; UINT8 ble_min_key_size; UINT8 ble_accept_auth_enable; UINT8 oob_support; #endi...
3,006
/* */ /** #ifndef _BT_DEFS_H_ #define _BT_DEFS_H_ #include #include #include #include "bt_common.h" #include "common/bt_target.h" #define UNUSED(x) (void)(x) /*Timer Related Defination*/ //by Snake.T typedef void (TIMER_CBACK)(void *p_tle); typedef struct _tle { struct _tle *p_next; ...
3,007
/ #ifndef BT_TARGET_H #define BT_TARGET_H #include #ifndef BUILDCFG #define BUILDCFG #endif /* #if !defined(HAS_BDROID_BUILDCFG) && !defined(HAS_NO_BDROID_BUILDCFG) #error "An Android.mk file did not include bdroid_CFLAGS and possibly not bdorid_C_INCLUDES" #endif */ #ifdef HAS_BDROID_BUILDCFG #include "bdroid_bu...
3,008
*/ #if (VND_BT_JV_BTA_L2CAP == TRUE) #define BTA_JV_L2CAP_INCLUDED TRUE #define GAP_CONN_INCLUDED TRUE #endif /* VND_BT_JV_BTA_L2CAP */ #ifndef CLASSIC_BT_INCLUDED #define CLASSIC_BT_INCLUDED FALSE #endif /* CLASSIC_BT_INCLUDED */ #ifndef CLASSIC_BT_GATT_INCLUDED #define CLASSIC_BT_GATT_INCLU...
3,008
h #ifndef L2CAP_EXTFEA_SUPPORTED_MASK #define L2CAP_EXTFEA_SUPPORTED_MASK (L2CAP_EXTFEA_ENH_RETRANS | L2CAP_EXTFEA_STREAM_MODE | L2CAP_EXTFEA_NO_CRC | L2CAP_EXTFEA_FIXED_CHNLS) #endif #ifndef BTUI_OPS_FORMATS #define BTUI_OPS_FORMATS (BTA_OP_VCARD21_MASK | BTA_OP_ANY_MASK) #endif #ifndef BTA_RFC_MTU_SIZE #define BTA_...
3,008
*/ #ifndef VND_BT_JV_BTA_L2CAP #define VND_BT_JV_BTA_L2CAP FALSE #endif #ifndef BTA_JV_L2CAP_INCLUDED #define BTA_JV_L2CAP_INCLUDED FALSE #endif #ifndef GAP_CONN_INCLUDED #define GAP_CONN_INCLUDED FALSE #endif / ** ** Stack-layer components ** / #ifndef AVCT_INCLUDED #define AVCT_INCLUDED FAL...
3,008
h / ** ** Buffer Size ** / #ifndef BT_DEFAULT_BUFFER_SIZE #define BT_DEFAULT_BUFFER_SIZE (4096 + 16) #endif #ifndef BT_SMALL_BUFFER_SIZE #define BT_SMALL_BUFFER_SIZE 660 #endif /* Receives HCI events from the lower-layer. */ #ifndef HCI_CMD_BUF_SIZE #define HCI_CMD_BUF_SIZE BT_SM...
3,008
*/ #ifndef BTM_CMD_BUF_SIZE #define BTM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE #endif #ifndef OBX_LRG_DATA_BUF_SIZE #define OBX_LRG_DATA_BUF_SIZE (8080 + 26) #endif /* Used to send data to L2CAP. */ #ifndef GAP_DATA_BUF_SIZE #define GAP_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE #endif /...
3,008
5 As Default */ #ifndef BTM_INQ_DB_SIZE #define BTM_INQ_DB_SIZE 5 #endif /* The default scan mode */ #ifndef BTM_DEFAULT_SCAN_TYPE #define BTM_DEFAULT_SCAN_TYPE BTM_SCAN_TYPE_INTERLACED #endif /* Should connections to unknown devices be allowed when not discoverable? */ #ifndef BTM_ALLOW_CONN_IF_NO...
3,008
*/ #ifndef BTM_MAX_SCO_LINKS #define BTM_MAX_SCO_LINKS 0 //3 #endif /* The preferred type of SCO links (2-eSCO, 0-SCO). */ #ifndef BTM_DEFAULT_SCO_MODE #define BTM_DEFAULT_SCO_MODE 2 #endif /* The number of security records for peer devices. 15 AS Default*/ #ifndef BTM_SEC_MAX_DEVICE_RECORDS #define...
3,008
When this is defined as null string, the device's */ #ifndef BTM_DEF_LOCAL_NAME #define BTM_DEF_LOCAL_NAME "" #endif /* Maximum service name stored with security authorization (0 if not needed) */ #ifndef BTM_SEC_SERVICE_NAME_LEN #define BTM_SEC_SERVICE_NAME_LEN BT_MAX_SERVICE_NAME_LEN #endif /* Maximum len...
3,008
*/ #ifndef BTM_EIR_DEFAULT_FEC_REQUIRED #define BTM_EIR_DEFAULT_FEC_REQUIRED TRUE #endif /* The IO capability of the local device (for Simple Pairing) */ #ifndef BTM_LOCAL_IO_CAPS #define BTM_LOCAL_IO_CAPS BTM_IO_CAP_NONE #endif #ifndef BTM_LOCAL_IO_CAPS_BLE #if (BLE_INCLUDED == TRUE && SMP_INCLUDED...
3,008
1/4.2 secure connections feature */ #ifndef SC_MODE_INCLUDED // Disable AES-CCM (BT 4.1) for BT Classic to workaround controller AES issue. E0 encryption (BT 4.0) will be used. #define SC_MODE_INCLUDED FALSE #endif /* Used for conformance testing ONLY */ #ifndef BTM_BLE_CONFORMANCE_TESTING #define BTM_B...
3,008
Up to 7*/ #ifndef MAX_ACL_CONNECTIONS #define MAX_L2CAP_LINKS 5 #else #define MAX_L2CAP_LINKS MAX_ACL_CONNECTIONS #endif /* The maximum number of simultaneous channels that L2CAP can support. Up to 16*/ #ifndef MAX_L2CAP_CHANNELS #if (CLASSIC_BT_INCLUDED == TRUE) #define MAX_L2CAP_CHANNELS ...
3,008
*/ #ifndef L2CAP_LINK_INACTIVITY_TOUT #define L2CAP_LINK_INACTIVITY_TOUT 4 #endif /* The number of seconds of link inactivity after bonding before a link is disconnected. */ #ifndef L2CAP_BONDING_TIMEOUT #define L2CAP_BONDING_TIMEOUT 3 #endif /* The time from the HCI connection complete to disconnect if no ch...
3,008
*/ #ifndef L2CAP_WAKE_PARKED_LINK #define L2CAP_WAKE_PARKED_LINK TRUE #endif /* Whether link wants to be the master or the slave. */ #ifndef L2CAP_DESIRED_LINK_ROLE #define L2CAP_DESIRED_LINK_ROLE HCI_ROLE_SLAVE #endif /* Include Non-Flushable Packet Boundary Flag feature of Lisbon */ #ifndef L2CAP_NON_FLUS...
3,008
) */ /* Excluding L2CAP signaling channel and UCD */ #ifndef L2CAP_NUM_FIXED_CHNLS #if (CLASSIC_BT_INCLUDED == TRUE) #define L2CAP_NUM_FIXED_CHNLS 32 #else #define L2CAP_NUM_FIXED_CHNLS 3 //There are just three fix channel in the BLE only mode(gatt,signal,smp) #endif ///CLASSIC_BT_INCLUDE...
3,008
0 will lead to update connection parameters collision when the slave sent the HCI_BLE_UPD_LL_CONN_PARAMS comment to the controller request the master to update connection parameters directly. */ #ifndef BLE_SLAVE_UPD_CONN_PARAMS #define BLE_SLAVE_UPD_CONN_PARAMS FALSE #endif #ifndef ATT_INCLUDED #define ATT_INCL...
3,008
Prefer greater than 0 second, and no less than default inactivity link idle timer(L2CAP_LINK_INACTIVITY_TOUT) in l2cap) */ #ifndef SMP_LINK_TOUT_MIN #if (L2CAP_LINK_INACTIVITY_TOUT > 0) #define SMP_LINK_TOUT_MIN L2CAP_LINK_INACTIVITY_TOUT #else #define SMP_LINK_TOUT_MIN 2 #endif #endi...
3,008
*/ #ifndef SDP_MAX_RECORDS #define SDP_MAX_RECORDS 6 /*max is 30*/ #endif /* The maximum number of attributes in each record. */ #ifndef SDP_MAX_REC_ATTR #if (defined(HID_DEV_INCLUDED) && (HID_DEV_INCLUDED==TRUE)) || (defined(BTC_SDP_INCLUDED) && (BTC_SDP_INCLUDED==TRUE)) #define SDP_MAX_REC_ATTR ...
3,008
*/ #ifndef SDP_MAX_DISC_SERVER_RECS #define SDP_MAX_DISC_SERVER_RECS 21 #endif /* The size of a scratchpad buffer, in bytes, for storing the response to an attribute request. */ #ifndef SDP_MAX_LIST_BYTE_COUNT #define SDP_MAX_LIST_BYTE_COUNT 4096 #endif /* The maximum number of parameters in an SDP protocol e...
3,008
*/ #ifndef MAX_RFC_PORTS #define MAX_RFC_PORTS 8 /*max is 30*/ #endif /* The maximum simultaneous links to different devices. */ #ifndef MAX_ACL_CONNECTIONS #define MAX_BD_CONNECTIONS 3 /*max is 7*/ #else #define MAX_BD_CONNECTIONS MAX_ACL_CONNECTIONS #endif /* The port receive queue ...
3,008
*/ #ifndef PORT_RX_BUF_HIGH_WM #define PORT_RX_BUF_HIGH_WM 10 #endif /* The port receive queue critical watermark level, in number of buffers. */ #ifndef PORT_RX_BUF_CRITICAL_WM #define PORT_RX_BUF_CRITICAL_WM 15 #endif /* The port transmit queue high watermark level, in bytes. */ #ifndef PORT_TX_HIGH_WM...
3,008
*/ #ifndef PORT_CREDIT_RX_MAX #define PORT_CREDIT_RX_MAX 16 #endif /* The credit low watermark level. */ #ifndef PORT_CREDIT_RX_LOW #define PORT_CREDIT_RX_LOW 8 #endif /* ERTM Tx window size */ #ifndef RFC_FCR_OPT_TX_WINDOW_SIZE #define RFC_FCR_OPT_TX_WINDOW_SIZE 10 #endif /* ERTM Maximum transmi...
3,008
*/ #ifndef OBX_FCR_RX_BUF_SIZE #define OBX_FCR_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE #endif /* */ #ifndef OBX_FCR_TX_BUF_SIZE #define OBX_FCR_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE #endif /* */ #ifndef OBX_FCR_OPT_TX_WINDOW_SIZE_BR_EDR #define OBX_FCR_OPT_TX_WINDOW_SIZE_BR_EDR 20 #endif /* */ #ifndef OBX_...
3,008
*/ #ifndef BNEP_MAX_PROT_FILTERS #define BNEP_MAX_PROT_FILTERS 5 #endif /* Maximum number of multicast filters supported. */ #ifndef BNEP_MAX_MULTI_FILTERS #define BNEP_MAX_MULTI_FILTERS 5 #endif /* Minimum MTU size. */ #ifndef BNEP_MIN_MTU_SIZE #define BNEP_MIN_MTU_SIZE L2CAP_MTU_SIZE #endif /...
3,008
*/ #ifndef AVDT_NUM_LINKS #define AVDT_NUM_LINKS 2 #endif /* Number of simultaneous stream endpoints. */ #ifndef AVDT_NUM_SEPS #define AVDT_NUM_SEPS 3 #endif /* Number of transport channels setup per media stream(audio or video) */ #ifndef AVDT_NUM_CHANNELS #if AVDT_REPORTING == TRUE /* s...
3,008
#ifndef AVDT_MAX_FRAG_COUNT #define AVDT_MAX_FRAG_COUNT 15 #endif / ** ** PAN ** / #ifndef PAN_INCLUDED #define PAN_INCLUDED FALSE #endif /* This will enable the PANU role */ #ifndef PAN_SUPPORTS_ROLE_PANU #define PAN_SUPPORTS_ROLE_PANU FALSE #endif /* This will enable the ...
3,008
*/ #ifndef PAN_PANU_SECURITY_LEVEL #define PAN_PANU_SECURITY_LEVEL 0 #endif /* Default Security level for GN role. */ #ifndef PAN_GN_SECURITY_LEVEL #define PAN_GN_SECURITY_LEVEL 0 #endif /* Default Security level for NAP role. */ #ifndef PAN_NAP_SECURITY_LEVEL #define PAN_NAP_SECURITY_LEVEL ...
3,008
*/ #ifndef SDP_RAW_DATA_INCLUDED #define SDP_RAW_DATA_INCLUDED TRUE #endif /* Inquiry duration in 1.28 second units. */ #ifndef SDP_DEBUG #define SDP_DEBUG TRUE #endif / ** ** HID ** / #ifndef BT_HID_INCLUDED #define BT_HID_INCLUDED FALSE #endif /* HID Device Role Included */ #ifndef...
3,008
*/ #ifndef AVCT_NUM_LINKS #define AVCT_NUM_LINKS 2 #endif /* Number of simultaneous AVCTP connections. */ #ifndef AVCT_NUM_CONN #define AVCT_NUM_CONN 3 #endif / ** ** AVRCP ** / #ifndef AVRC_INCLUDED #define AVRC_INCLUDED FALSE #endif #ifndef AVRC_METADATA_INCLUDED #if AVRC_...
3,008
*/ #ifndef MCA_NUM_REGS #define MCA_NUM_REGS 12 #endif /* The maximum number of control channels (to difference devices) per registered MCAP instances. */ #ifndef MCA_NUM_LINKS #define MCA_NUM_LINKS 3 #endif /* The maximum number of MDEP (including HDP echo) per registered MCAP instances. */ #ifndef MCA_NUM_DEP...
3,008
1 is defined by HDP specification for control channel. */ #ifndef MCA_FCR_OPT_TX_WINDOW_SIZE #define MCA_FCR_OPT_TX_WINDOW_SIZE 1 #endif /* MCAP control channel FCR Option: Number of transmission attempts for a single I-Frame before taking Down the connection. Used In ERTM mode only. Value is Ignored in basic an...
3,008
Only used in Enhanced retransmission mode. Range: Minimum 12000 (12 secs) when supporting PBF. */ #ifndef MCA_FCR_OPT_MONITOR_TOUT #define MCA_FCR_OPT_MONITOR_TOUT 12000 #endif /* MCAP control channel FCR Option: Maximum PDU payload size. The maximum number of payload octets that the local device can receive i...
3,008
5 */ #ifndef BTA_AG_CIND_INFO #define BTA_AG_CIND_INFO "(\"call\",(0,1)),(\"callsetup\",(0-3)),(\"service\",(0-1)),(\"signal\",(0-5)),(\"roam\",(0,1)),(\"battchg\",(0-5)),(\"callheld\",(0-2))" #endif #ifndef BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY #define BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY FALSE #endif #ifndef B...
3,008
/ #ifndef _BT_TRACE_H_ #define _BT_TRACE_H_ #include #include #include "bluedroid_user_config.h" #include "stack/bt_types.h" #include "bt_common.h" static inline void trc_dump_buffer(const char *prefix, uint8_t *data, uint16_t len) { uint16_t i; if (!data || !len) { return; } if (prefix) ...
3,009
.. ) {if (LOG_LOCAL_LEVEL >= ESP_LOG_VERBOSE) esp_log_write(ESP_LOG_VERBOSE, "BT_LOG", LOG_FORMAT(V, format), esp_log_timestamp(), "BT_LOG", ##__VA_ARGS__); } /* Define tracing for BTM */ #define BTM_TRACE_ERROR(fmt, args...) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR && BT_LOG_LEVEL_CHECK(BTM, E...
3,009
..) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR && BT_LOG_LEVEL_CHECK(L2CAP, ERROR)) BT_PRINT_E("BT_L2CAP", fmt, ## args);} #define L2CAP_TRACE_WARNING(fmt, args...) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING && BT_LOG_LEVEL_CHECK(L2CAP, WARNING)) BT_PRINT_W("BT_L2CAP", fmt, ## args);} #define ...
3,009
..) {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING && BT_LOG_LEVEL_CHECK(SDP, WARNING)) BT_PRINT_W("BT_SDP", fmt, ## args);} #define SDP_TRACE_API(fmt, args...) {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API && BT_LOG_LEVEL_CHECK(SDP,API)) BT_PRINT_I("BT_SDP", fmt, ## args);} #define SDP_TRACE_EVENT(fmt, ...
3,009
..) {if (rfc_cb.trace_level >=BT_TRACE_LEVEL_API && BT_LOG_LEVEL_CHECK(RFCOMM,API)) BT_PRINT_I("BT_RFCOMM", fmt, ## args);} #define RFCOMM_TRACE_EVENT(fmt, args...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT && BT_LOG_LEVEL_CHECK(RFCOMM,EVENT)) BT_PRINT_D("BT_RFCOMM", fmt, ## args);} #define RFCOMM_TRACE_D...
3,009
..) {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING && BT_LOG_LEVEL_CHECK(GAP, WARNING)) BT_PRINT_W("BT_GAP", fmt, ## args);} /* define traces for HID Host */ #define HIDH_TRACE_ERROR(fmt, args...) {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR && BT_LOG_LEVEL_CHECK(HIDH, ERROR)) BT_PRINT_E("BT_HIDH", fmt, ...
3,009
..) {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR && BT_LOG_LEVEL_CHECK(HIDD, ERROR)) BT_PRINT_E("BT_HIDD", fmt, ## args);} #define HIDD_TRACE_WARNING(fmt, args...) {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING && BT_LOG_LEVEL_CHECK(HIDD, WARNING)) BT_PRINT_W("BT_HIDD", fmt, ## args);} #define HIDD_TRACE_AP...
3,009
..) {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR && BT_LOG_LEVEL_CHECK(BNEP, ERROR)) BT_PRINT_E("BT_BNEP", fmt, ## args);} #define BNEP_TRACE_WARNING(fmt, args...) {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING && BT_LOG_LEVEL_CHECK(BNEP, WARNING)) BT_PRINT_W("BT_BNEP", fmt, ## args);} #define BNEP_TRAC...
3,009
..) {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING && BT_LOG_LEVEL_CHECK(PAN, WARNING)) BT_PRINT_W("BT_PAN", fmt, ## args);} #define PAN_TRACE_API(fmt, args...) {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API && BT_LOG_LEVEL_CHECK(PAN,API)) BT_PRINT_I("BT_PAN", fmt, ## args);} #define PAN_TRACE_EVENT(fmt, ...
3,009
..) {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API && BT_LOG_LEVEL_CHECK(A2D,API)) BT_PRINT_I("BT_A2D", fmt, ## args);} #define A2D_TRACE_EVENT(fmt, args...) {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT && BT_LOG_LEVEL_CHECK(A2D,EVENT)) BT_PRINT_D("BT_A2D", fmt, ## args);} #define A2D_TRACE_DEBUG(fmt, a...
3,009
..) {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT && BT_LOG_LEVEL_CHECK(AVDT,EVENT)) BT_PRINT_D("BT_AVDT", fmt, ## args);} #define AVDT_TRACE_DEBUG(fmt, args...) {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG && BT_LOG_LEVEL_CHECK(AVDT,DEBUG)) BT_PRINT_D("BT_AVDT", fmt, ## args);} /* Define tracing for ...
3,009
..) {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG && BT_LOG_LEVEL_CHECK(AVCT,DEBUG)) BT_PRINT_D("BT_AVCT", fmt, ## args);} /* Define tracing for the AVRCP profile */ #define AVRC_TRACE_ERROR(fmt, args...) {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR && BT_LOG_LEVEL_CHECK(AVRC, ERROR)) BT_PRINT_E("BT_A...
3,009
..) {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR && BT_LOG_LEVEL_CHECK(MCA, ERROR)) BT_PRINT_E("BT_MCA", fmt, ## args);} #define MCA_TRACE_WARNING(fmt, args...) {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING && BT_LOG_LEVEL_CHECK(MCA, WARNING)) BT_PRINT_W("BT_MCA", fmt, ## args);} #define MCA_TRACE_API(...
3,009
..) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING && BT_LOG_LEVEL_CHECK(GATT, WARNING)) BT_PRINT_W("BT_GATT", fmt, ## args);} #define GATT_TRACE_API(fmt, args...) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API && BT_LOG_LEVEL_CHECK(GATT,API)) BT_PRINT_I("BT_GATT", fmt, ## args);} #define GATT_TRACE_EVENT...
3,009
..) {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API && BT_LOG_LEVEL_CHECK(SMP,API)) BT_PRINT_I("BT_SMP", fmt, ## args);} #define SMP_TRACE_EVENT(fmt, args...) {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT && BT_LOG_LEVEL_CHECK(SMP,EVENT)) BT_PRINT_D("BT_SMP", fmt, ## args);} #define SMP_TRACE_DEBUG(fmt, a...
3,009