text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
< MPEG-1,2 audio codec capabilities */ uint8_t m24[ESP_A2D_CIE_LEN_M24]; /*!< MPEG-2, 4 AAC audio codec capabilities */ uint8_t atrac[ESP_A2D_CIE_LEN_ATRAC]; /*!< ATRAC family codec capabilities */ } cie; /*!< A2DP codec information element */ } __attribute_...
3,053
< audio stream datapath suspended by remote device */ ESP_A2D_AUDIO_STATE_STARTED, /*!< audio stream datapath started */ ESP_A2D_AUDIO_STATE_STOPPED = ESP_A2D_AUDIO_STATE_SUSPEND, /*!< @note Deprecated */ ESP_A2D_AUDIO_STATE_REMOTE_SUSPEND = ESP_A2D_AUDIO_STATE_SUSPEND, /*!< @note D...
3,053
< command to set up media transmission channel */ ESP_A2D_MEDIA_CTRL_SUSPEND, /*!< command to suspend media transmission */ ESP_A2D_MEDIA_CTRL_STOP, /*!< @note Deprecated, Please use ESP_A2D_MEDIA_CTRL_SUSPEND */ } esp_a2d_media_ctrl_t; /** */ typedef enum { ESP_A2D_DEINI...
3,053
< audio codec is configured, only used for A2DP SINK */ ESP_A2D_MEDIA_CTRL_ACK_EVT, /*!< acknowledge event in response to media control commands */ ESP_A2D_PROF_STATE_EVT, /*!< indicate a2dp init&deinit complete */ ESP_A2D_SNK_PSC_CFG_EVT, /*!< protocol se...
3,053
< reason of disconnection for "DISCONNECTED" */ } conn_stat; /*!< A2DP connection status */ /** */ struct a2d_audio_stat_param { esp_a2d_audio_state_t state; /*!< one of the values from esp_a2d_audio_state_t */ esp_bd_addr_t remote_bda; ...
3,053
< status in acknowledgement to media control commands */ /** */ struct a2d_prof_stat_param { esp_a2d_init_state_t init_state; /*!< a2dp profile state param */ } a2d_prof_stat; /*!< status to indicate a2d prof init or deinit */ /** */ struct a2d_psc...
3,053
< A2DP sink get delay report value status */ /** */ struct a2d_report_delay_stat_param { uint16_t delay_value; /*!< delay report value */ } a2d_report_delay_value_stat; /*!< A2DP source received sink report value status */ } esp_a2d_cb_param_t; /** */ typedef vo...
3,053
/* */ #ifndef __ESP_GATTS_API_H__ #define __ESP_GATTS_API_H__ #include "esp_bt_defs.h" #include "esp_gatt_defs.h" #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif /// GATT Server callback function events typedef enum { ESP_GATTS_REG_EVT = 0, /*!< When register application id, t...
3,054
< When create service complete, the event comes */ ESP_GATTS_ADD_INCL_SRVC_EVT = 8, /*!< When add included service complete, the event comes */ ESP_GATTS_ADD_CHAR_EVT = 9, /*!< When add characteristic complete, the event comes */ ESP_GATTS_ADD_CHAR_DESCR_EVT = 10, /*!<...
3,054
< When disconnect from peer, the event comes */ ESP_GATTS_CLOSE_EVT = 18, /*!< When gatt server close, the event comes */ ESP_GATTS_LISTEN_EVT = 19, /*!< When gatt listen to be connected the event comes */ ESP_GATTS_CONGEST_EVT = 20, /*!< When congest ha...
3,054
< Application id which input in register API */ } reg; /*!< Gatt server callback param of ESP_GATTS_REG_EVT */ /** */ struct gatts_read_evt_param { uint16_t conn_id; /*!< Connection id */ uint32_t trans_id; /*!< Transfer id */ ...
3,054
< The bluetooth device address which been written */ uint16_t handle; /*!< The attribute handle */ uint16_t offset; /*!< Offset of the value, if the value is too long */ bool need_rsp; /*!< The write operation need to do response */ bool is_...
3,054
< Prepare write flag to indicate execute prepare write */ uint8_t exec_write_flag; /*!< Execute write flag */ } exec_write; /*!< Gatt server callback param of ESP_GATTS_EXEC_WRITE_EVT */ /** */ struct gatts_mtu_evt_param { uint16_t conn_id; /*...
3,054
< Gatt server callback param of ESP_GATTS_CONF_EVT (confirm) */ /** */ /** */ struct gatts_create_evt_param { esp_gatt_status_t status; /*!< Operation status */ uint16_t service_handle; /*!< Service attribute handle */ esp_gatt_srvc_id_t service_id; /*!< Ser...
3,054
< Characteristic attribute handle */ uint16_t service_handle; /*!< Service attribute handle */ esp_bt_uuid_t char_uuid; /*!< Characteristic uuid */ } add_char; /*!< Gatt server callback param of ESP_GATTS_ADD_CHAR_EVT */ /** */ struct gatts_add_cha...
3,054
< Operation status */ uint16_t service_handle; /*!< Service attribute handle */ } start; /*!< Gatt server callback param of ESP_GATTS_START_EVT */ /** */ struct gatts_stop_evt_param { esp_gatt_status_t status; /*!< Operation status */ uin...
3,054
< Gatt server callback param of ESP_GATTS_CONNECT_EVT */ /** */ struct gatts_disconnect_evt_param { uint16_t conn_id; /*!< Connection id */ esp_bd_addr_t remote_bda; /*!< Remote bluetooth device address */ esp_gatt_conn_reason_t reason; /*!< Indicate the reason...
3,054
< Connection id */ } close; /*!< Gatt server callback param of ESP_GATTS_CLOSE_EVT */ /** */ /** */ struct gatts_congest_evt_param { uint16_t conn_id; /*!< Connection id */ bool congested; /*!< Congested or not */ } ...
3,054
< The number of the attribute handle to be added to the gatts database */ uint16_t *handles; /*!< The number to the handles */ } add_attr_tab; /*!< Gatt server callback param of ESP_GATTS_CREAT_ATTR_TAB_EVT */ /** */ struct gatts_set_attr_val_evt_param{ ...
3,054
/* */ #ifndef __ESP_L2CAP_BT_API_H__ #define __ESP_L2CAP_BT_API_H__ #include "esp_err.h" #include "esp_bt_defs.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef enum { ESP_BT_L2CAP_SUCCESS = 0, /*!< Successful operation. */ ESP_BT_L2CAP_FAILURE, /*!< Generic failure. */ ...
3,055
< Authentication required */ #define ESP_BT_L2CAP_SEC_ENCRYPT 0x0024 /*!< Encryption required */ typedef uint32_t esp_bt_l2cap_cntl_flags_t; /** */ typedef enum { ESP_BT_L2CAP_INIT_EVT = 0, /*!< When L2CAP is initialized, the event comes */ ESP_BT_L2CAP_UNINIT_EVT ...
3,055
< status */ } init; /*!< L2CAP callback param of ESP_BT_L2CAP_INIT_EVT */ /** */ struct l2cap_uninit_evt_param { esp_bt_l2cap_status_t status; /*!< status */ } uninit; /*!< L2CAP callback param of ESP_BT_L2CAP_UNI...
3,055
< The connection handle */ bool async; /*!< FALSE, if local initiates disconnect */ } close; /*!< L2CAP callback param of ESP_BT_L2CAP_CLOSE_EVT */ /** */ struct l2cap_start_evt_param { esp_bt_l2cap_status_t status; ...
3,055
< status */ uint8_t psm; /*!< local psm */ } srv_stop; /*!< L2CAP callback param of ESP_BT_L2CAP_SRV_STOP_EVT */ } esp_bt_l2cap_cb_param_t; /** */ typedef void (* esp_bt_l2cap_cb_t)(esp_bt_l2cap_cb_event_t event, esp_bt_l2cap_cb_param_t *param); /...
3,055
/* */ #ifndef __ESP_GATT_DEFS_H__ #define __ESP_GATT_DEFS_H__ #include "esp_bt_defs.h" #ifdef __cplusplus extern "C" { #endif /// GATT INVALID UUID #define ESP_GATT_ILLEGAL_UUID 0 /// GATT INVALID HANDLE #define ESP_GATT_ILLEGAL_HANDLE 0 /// GATT attribute max handle #define ESP_GATT_ATTR...
3,056
h */ /// Attribute write data type from the client typedef enum { ESP_GATT_PREP_WRITE_CANCEL = 0x00, /*!< Prepare write cancel */ /* relate to BTA_GATT_PREP_WRITE_CANCEL in bta/bta_gatt_api.h */ ESP_GATT_PREP_WRITE_EXEC = 0x01, /*!< Prepare write execute */ /* relate to BTA_GATT_PREP_WRITE_...
3,056
h */ ESP_GATT_INSUF_AUTHENTICATION = 0x05, /* 0x0005 */ /* relate to BTA_GATT_INSUF_AUTHENTICATION in bta/bta_gatt_api.h */ ESP_GATT_REQ_NOT_SUPPORTED = 0x06, /* 0x0006 */ /* relate to BTA_GATT_REQ_NOT_SUPPORTED in bta/bta_gatt_api.h */ ESP_GATT_INVALID_OFFSET = 0x07, /* 0x0...
3,056
h */ ESP_GATT_INVALID_ATTR_LEN = 0x0d, /* 0x000d */ /* relate to BTA_GATT_INVALID_ATTR_LEN in bta/bta_gatt_api.h */ ESP_GATT_ERR_UNLIKELY = 0x0e, /* 0x000e */ /* relate to BTA_GATT_ERR_UNLIKELY in bta/bta_gatt_api.h */ ESP_GATT_INSUF_ENCRYPTION = 0x0f, /* 0x000f */ ...
3,056
h */ ESP_GATT_DB_FULL = 0x83, /* 0x83 */ /* relate to BTA_GATT_DB_FULL in bta/bta_gatt_api.h */ ESP_GATT_BUSY = 0x84, /* 0x84 */ /* relate to BTA_GATT_BUSY in bta/bta_gatt_api.h */ ESP_GATT_ERROR = 0x85, /* 0x85 */ /* relate to BTA_GATT_...
3,056
h */ ESP_GATT_SERVICE_STARTED = 0x8c, /* 0x8c */ /* relate to BTA_GATT_SERVICE_STARTED in bta/bta_gatt_api.h */ ESP_GATT_ENCRYPTED_MITM = ESP_GATT_OK, /* relate to BTA_GATT_ENCRYPED_MITM in bta/bta_gatt_api.h */ ESP_GATT_ENCRYPTED_NO_MITM = 0x8d, /* 0x8d */ /* re...
3,056
h */ ESP_GATT_APP_RSP = 0xe1, /* 0xe1 */ /* relate to BTA_GATT_APP_RSP in bta/bta_gatt_api.h */ //Error caused by customer application or stack bug ESP_GATT_UNKNOWN_ERROR = 0xef, /* 0xef */ /* relate to BTA_GATT_UNKNOWN_ERROR in bta/bta_gatt_api.h */ ESP_GATT_CCC_CF...
3,056
h */ ESP_GATT_CONN_L2C_FAILURE = 1, /*!< General L2cap failure */ /* relate to BTA_GATT_CONN_L2C_FAILURE in bta/bta_gatt_api.h */ ESP_GATT_CONN_TIMEOUT = 0x08, /*!< Connection timeout */ /* relate to BTA_GATT_CONN_TIMEOUT in bta/bta_gatt_api....
3,056
< L2CAP connection cancelled */ /* relate to BTA_GATT_CONN_CONN_CANCEL in bta/bta_gatt_api.h */ ESP_GATT_CONN_NONE = 0x0101 /*!< No connection to cancel */ /* relate to BTA_GATT_CONN_NONE in bta/bta_gatt_api.h */ } esp_gatt_conn_reason_t; /** */ typedef struct { es...
3,056
h */ ESP_GATT_AUTH_REQ_MITM = 2, /* authenticated encryption */ /* relate to BTA_GATT_AUTH_REQ_MITM in bta/bta_gatt_api.h */ ESP_GATT_AUTH_REQ_SIGNED_NO_MITM = 3, /* relate to BTA_GATT_AUTH_REQ_SIGNED_NO_MITM in bta/bta_gatt_api.h */ ESP_G...
3,056
h */ #define ESP_GATT_PERM_WRITE_ENCRYPTED (1 << 5) /* bit 5 - 0x0020 */ /* relate to BTA_GATT_PERM_WRITE_ENCRYPTED in bta/bta_gatt_api.h */ #define ESP_GATT_PERM_WRITE_ENC_MITM (1 << 6) /* bit 6 - 0x0040 */ /* relate to BTA_GATT_PERM_WRITE_ENC_MITM in bta/bta_gatt_api.h */ #define ESP...
3,056
h */ #define ESP_GATT_CHAR_PROP_BIT_READ (1 << 1) /* 0x02 */ /* relate to BTA_GATT_CHAR_PROP_BIT_READ in bta/bta_gatt_api.h */ #define ESP_GATT_CHAR_PROP_BIT_WRITE_NR (1 << 2) /* 0x04 */ /* relate to BTA_GATT_CHAR_PROP_BIT_WRITE_NR in bta/bta_gatt_api.h */ #define ESP_GATT_CHAR_PR...
3,056
h */ typedef uint8_t esp_gatt_char_prop_t; /// GATT maximum attribute length #define ESP_GATT_MAX_ATTR_LEN 600 //as same as GATT_MAX_ATTR_LEN typedef enum { ESP_GATT_SERVICE_FROM_REMOTE_DEVICE = 0, /* relate to BTA_GATTC_SERVICE_INFO_FROM_REMOTE_DEVICE in bta_gattc_...
3,056
< Current length of the element*/ uint8_t *value; /*!< Element value array*/ } esp_attr_desc_t; /** */ typedef struct { #define ESP_GATT_RSP_BY_APP 0 #define ESP_GATT_AUTO_RSP 1 /** if auto_rsp set to ESP_GATT_AUTO_RSP, means the response of Write/...
3,056
< Gatt start handle value of included service */ uint16_t end_hdl; /*!< Gatt end handle value of included service */ uint16_t uuid; /*!< Gatt attribute value UUID of included service */ } esp_gatts_incl_svc_desc_t; ...
3,056
< Gatt attribute value offset */ uint16_t len; /*!< Gatt attribute value length */ uint8_t auth_req; /*!< Gatt authentication request */ } esp_gatt_value_t; /// GATT remote read request response type typedef union { esp_gatt_va...
3,056
Range: 0x0000 to 0x01F3 */ uint16_t timeout; /*!< Supervision timeout for the LE Link. Range: 0x000A to 0x0C80. Mandatory Range: 0x000A to 0x0C80 Time = N * 10 msec ...
3,056
< Gattc characteristic attribute type in the cache */ ESP_GATT_DB_DESCRIPTOR, /*!< Gattc characteristic descriptor attribute type in the cache */ ESP_GATT_DB_INCLUDED_SERVICE, /*!< Gattc include service attribute type in the cache */ ESP_GATT_DB_ALL,...
3,056
< The attribute handle, it's valid for all of the type */ uint16_t start_handle; /*!< The service start handle, it's valid only when the type = ESP_GATT_DB_PRIMARY_SERVICE or ESP_GATT_DB_SECONDARY_SERVICE */ uint16_t end_handle; /*!< The servic...
3,056
< The start handle of the service */ uint16_t end_handle; /*!< The end handle of the service */ esp_bt_uuid_t uuid; /*!< The uuid of the service */ } esp_gattc_service_elem_t; /*!< The gattc service element */...
3,056
< The gattc descriptor type element */ /** */ typedef struct { uint16_t handle; /*!< The include service current attribute handle */ uint16_t incl_srvc_s_handle; /*!< The start handle of the service which has been included */ uint16_t ...
3,056
/* */ #ifndef __ESP_HF_CLIENT_API_H__ #define __ESP_HF_CLIENT_API_H__ #include "esp_err.h" #include "esp_bt_defs.h" #include "esp_hf_defs.h" #ifdef __cplusplus extern "C" { #endif #define ESP_BT_HF_CLIENT_NUMBER_LEN (32) #define ESP_BT_HF_CLIENT_OPERATOR_NAME_LEN (16) #define ESP_BT_HF_AT_SEND_XAPL_LE...
3,057
< audio connection released */ ESP_HF_CLIENT_AUDIO_STATE_CONNECTING, /*!< audio connection has been initiated */ ESP_HF_CLIENT_AUDIO_STATE_CONNECTED, /*!< audio connection is established */ ESP_HF_CLIENT_AUDIO_STATE_CONNECTED_MSBC, /*!< mSBC audio connection is esta...
3,057
7+ */ #define ESP_HF_CLIENT_PEER_FEAT_HF_IND 0x400 /* HF Indicators */ #define ESP_HF_CLIENT_PEER_FEAT_ESCO_S4 0x800 /* eSCO S4 Setting Supported */ /* CHLD feature masks of AG */ #define ESP_HF_CLIENT_CHLD_FEAT_REL 0x01 /* 0 Release waiting call or held calls */ #define ESP_HF_CLIE...
3,057
*/ #define ESP_HF_CLIENT_XAPL_FEAT_SIRI_STATUS_REPORT 0x08 /* The accessory supports Siri status reporting */ #define ESP_HF_CLIENT_XAPL_NR_STATUS_REPORT 0x10 /* the accessory supports noise reduction (NR) status reporting */ /// HF CLIENT callback events typedef enum { ESP_HF_CLIENT_CONNECTION_STA...
3,057
< roaming status indication */ ESP_HF_CLIENT_CIND_BATTERY_LEVEL_EVT, /*!< battery level indication */ ESP_HF_CLIENT_COPS_CURRENT_OPERATOR_EVT, /*!< current operator information */ ESP_HF_CLIENT_BTRH_EVT, /*!< call response and hold event */ ESP_HF_CLIENT_CLIP_...
3,057
< requested number of last voice tag from AG */ ESP_HF_CLIENT_RING_IND_EVT, /*!< ring indication event */ ESP_HF_CLIENT_PKT_STAT_NUMS_GET_EVT, /*!< requested number of packet different status */ } esp_hf_client_cb_event_t; /// HFP client callback parameters typedef union { ...
3,057
< remote bluetooth device address */ uint16_t sync_conn_handle; /*!< (e)SCO connection handle */ } audio_stat; /*!< HF callback param of ESP_HF_CLIENT_AUDIO_STATE_EVT */ /** */ struct hf_client_bvra_param { esp_hf_vr_state_t value; ...
3,057
< signal strength value, ranges from 0 to 5 */ } signal_strength; /*!< HF callback param of ESP_HF_CLIENT_CIND_SIGNAL_STRENGTH_EVT */ /** */ struct hf_client_battery_level_ind_param { int value; /*!< battery charge value, ranges from 0 to...
3,057
< call setup status indicator */ } call_setup; /*!< HF callback param of ESP_HF_CLIENT_BVRA_EVT */ /** */ struct hf_client_call_held_ind_param { esp_hf_call_held_status_t status; /*!< bluetooth proprietary call hold status indicator */ } call_held; ...
3,057
< phone number string of waiting call */ } ccwa; /*!< HF callback param of ESP_HF_CLIENT_BVRA_EVT */ /** */ struct hf_client_clcc_param { int idx; /*!< numbering(starting with 1) of the call */ esp_hf_current_call_dir...
3,057
< AT response code */ esp_hf_cme_err_t cme; /*!< Extended Audio Gateway Error Result Code */ } at_response; /*!< HF callback param of ESP_HF_CLIENT_AT_RESPONSE_EVT */ /** */ struct hf_client_cnum_param { const char *number; ...
3,057
< HF callback param of ESP_HF_CLIENT_BINP_EVT */ /** */ struct hf_client_pkt_status_nums { uint32_t rx_total; /*!< the total number of packets received */ uint32_t rx_correct; /*!< the total number of packets data correctly received */ uint32_t rx_err; /*!< the...
3,057
/* */ #ifndef __ESP_GAP_BLE_API_H__ #define __ESP_GAP_BLE_API_H__ #include #include #include "esp_err.h" #include "esp_bt_defs.h" #ifdef __cplusplus extern "C" { #endif /** */ #define ESP_BLE_ADV_FLAG_LIMIT_DISC (0x01 = 0 : bonded devices number. int esp_ble_get_bond_device_num(void); /** esp_err_t e...
3,058
/* */ #ifndef __ESP_SDP_API_H__ #define __ESP_SDP_API_H__ #include "esp_err.h" #include "esp_bt_defs.h" #ifdef __cplusplus extern "C" { #endif #define ESP_SDP_SERVER_NAME_MAX 32 /*!< Service name max length */ #define SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH 15 /*!< OPP supported format list maximum...
3,059
< When SDP search complete, the event comes */ ESP_SDP_CREATE_RECORD_COMP_EVT = 3, /*!< When create SDP records complete, the event comes */ ESP_SDP_REMOVE_RECORD_COMP_EVT = 4, /*!< When remove a SDP record complete, the event comes */ } esp_sdp_cb_event_t; /** */ typed...
3,059
< UUID type, include uuid and uuid length */ uint32_t service_name_length; /*!< Service name length */ char *service_name; /*!< service name */ int32_t rfcomm_channel_number; /*!< rfcomm channel number, if not used set to -1*/ int32_t l2cap_psm; ...
3,059
< General info */ uint32_t mas_instance_id; /*!< MAS Instance ID */ uint32_t supported_features; /*!< Map supported features */ uint32_t supported_message_types; /*!< Supported message types */ } esp_bluetooth_sdp_mas_record_t; /** */ typedef struct bluetooth_sdp_mn...
3,059
< General info */ int supported_formats_list_len; /*!< Supported formats list length */ uint8_t supported_formats_list[SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH]; /*!< Supported formats list */ } esp_bluetooth_sdp_ops_record_t; /** */ typedef struct bluetooth_sdp_sap_record { esp_bluetooth_sdp_...
3,059
< status */ } init; /*!< SDP callback param of ESP_SDP_INIT_EVT */ /** */ struct sdp_deinit_evt_param { esp_sdp_status_t status; /*!< status */ } deinit; /*!< SDP callback param of ESP_SDP_DEINIT_EVT */ /** ...
3,059
< SDP callback param of ESP_SDP_CREATE_RECORD_COMP_EVT */ /** */ struct sdp_remove_record_evt_param { esp_sdp_status_t status; /*!< status */ } remove_record; /*!< SDP callback param of ESP_SDP_REMOVE_RECORD_COMP_EVT */ } esp_sdp_cb_param_t; ...
3,059
/* */ #ifndef __ESP_SPP_API_H__ #define __ESP_SPP_API_H__ #include "esp_err.h" #include "esp_bt_defs.h" #ifdef __cplusplus extern "C" { #endif #define ESP_SPP_MAX_MTU (3*330) /*!< SPP max MTU */ #define ESP_SPP_MAX_SCN 31 /*!< SPP max SCN */ #define ESP_SPP_MIN_TX_BUFFE...
3,060
h*/ #define ESP_SPP_SEC_AUTHENTICATE 0x0012 /*!< Authentication required. relate to BTA_SEC_AUTHENTICATE in bta/bta_api.h*/ #define ESP_SPP_SEC_ENCRYPT 0x0024 /*!< Encryption required. relate to BTA_SEC_ENCRYPT in bta/bta_api.h*/ #define ESP_SPP_SEC_MODE4_LEVEL4 0x0040 /*!< Mode 4 level 4 servi...
3,060
< No more resource */ ESP_SPP_NEED_INIT, /*!< SPP module shall init first */ ESP_SPP_NEED_DEINIT, /*!< SPP module shall deinit first */ ESP_SPP_NO_CONNECTION, /*!< Connection may have been closed */ ESP_SPP_NO_SERVER, /*!< No SPP server */ } esp_spp_status_t...
3,060
< Tx buffer size for a new SPP channel. A smaller setting can save memory, but may incur a decrease in throughput. Only for ESP_SPP_MODE_VFS mode. */ } esp_spp_cfg_t; /** */ typedef enum { ESP_SPP_INIT_EVT = 0, /*!< When SPP is initialized, the event comes */ ESP_SPP_UNINIT_E...
3,060
< When SPP connection received data, the event comes, only for ESP_SPP_MODE_CB */ ESP_SPP_CONG_EVT = 31, /*!< When SPP connection congestion status changed, the event comes, only for ESP_SPP_MODE_CB */ ESP_SPP_WRITE_EVT = 33, /*!< When SPP write o...
3,060
< SPP callback param of SPP_INIT_EVT */ /** */ struct spp_uninit_evt_param { esp_spp_status_t status; /*!< status */ } uninit; /*!< SPP callback param of SPP_UNINIT_EVT */ /** */ struct spp_discovery_comp_evt_param { esp_spp_status...
3,060
< The peer address */ } open; /*!< SPP callback param of ESP_SPP_OPEN_EVT */ /** */ struct spp_srv_open_evt_param { esp_spp_status_t status; /*!< status */ uint32_t handle; /*!< The connection handle */ uint32_t ...
3,060
< SPP callback param of ESP_SPP_CLOSE_EVT */ /** */ struct spp_start_evt_param { esp_spp_status_t status; /*!< status */ uint32_t handle; /*!< The connection handle */ uint8_t sec_id; /*!< security ID used by this server */ ...
3,060
< security ID used by this server */ bool use_co; /*!< TRUE to use co_rfc_data */ } cl_init; /*!< SPP callback param of ESP_SPP_CL_INIT_EVT */ /** */ struct spp_write_evt_param { esp_spp_status_t status; /*!< status */ ...
3,060
< SPP callback param of ESP_SPP_DATA_IND_EVT */ /** */ struct spp_cong_evt_param { esp_spp_status_t status; /*!< status */ uint32_t handle; /*!< The connection handle */ bool cong; /*!< TRUE, congested. FALSE, uncongested */ ...
3,060
/* */ #ifndef __ESP_AVRC_API_H__ #define __ESP_AVRC_API_H__ #include #include #include "esp_err.h" #include "esp_bt_defs.h" #ifdef __cplusplus extern "C" { #endif #define ESP_AVRC_TRANS_LABEL_MAX 15 /*!< max transaction label */ /// AVRC feature bit mask typedef enum { ESP_AVRC_FEAT_RCTG = 0x00...
3,061
< category 1 */ ESP_AVRC_FEAT_FLAG_CAT2 = 0x0002, /*!< category 2 */ ESP_AVRC_FEAT_FLAG_CAT3 = 0x0004, /*!< category 3 */ ESP_AVRC_FEAT_FLAG_CAT4 = 0x0008, /*!< category 4 */ ESP_AVRC_FEAT_FLAG_BROWSING = 0x0040, ...
3,061
< right */ ESP_AVRC_PT_CMD_RIGHT_UP = 0x05, /*!< right-up */ ESP_AVRC_PT_CMD_RIGHT_DOWN = 0x06, /*!< right-down */ ESP_AVRC_PT_CMD_LEFT_UP = 0x07, /*!< left-up */ ESP_AVRC_PT_CMD_LEFT_DOWN = 0x08, /*!< left-down */ ESP_AVRC_PT_CMD_ROOT_MENU = 0x09, ...
3,061
< 6 */ ESP_AVRC_PT_CMD_7 = 0x27, /*!< 7 */ ESP_AVRC_PT_CMD_8 = 0x28, /*!< 8 */ ESP_AVRC_PT_CMD_9 = 0x29, /*!< 9 */ ESP_AVRC_PT_CMD_DOT = 0x2A, /*!< dot */ ESP_AVRC_PT_CMD_ENTER = 0x2B, /*!< enter */ ESP_AVRC_PT_C...
3,061
< power */ ESP_AVRC_PT_CMD_VOL_UP = 0x41, /*!< volume up */ ESP_AVRC_PT_CMD_VOL_DOWN = 0x42, /*!< volume down */ ESP_AVRC_PT_CMD_MUTE = 0x43, /*!< mute */ ESP_AVRC_PT_CMD_PLAY = 0x44, /*!< play */ ESP_AVRC_PT_CMD_STOP = 0x45, /*!< ...
3,061
< F2 */ ESP_AVRC_PT_CMD_F3 = 0x73, /*!< F3 */ ESP_AVRC_PT_CMD_F4 = 0x74, /*!< F4 */ ESP_AVRC_PT_CMD_F5 = 0x75, /*!< F5 */ ESP_AVRC_PT_CMD_VENDOR = 0x7E, /*!< vendor unique */ } esp_avrc_pt_cmd_t; /// AVRC passthrough command filter typedef...
3,061
< operation code to clear a specific bit */ } esp_avrc_bit_mask_op_t; /// AVRC passthrough command state typedef enum { ESP_AVRC_PT_CMD_STATE_PRESSED = 0, /*!< key pressed */ ESP_AVRC_PT_CMD_STATE_RELEASED = 1 /*!< key released */ } esp_avrc_pt_cmd_state_t; /// AVRC Controller callback eve...
3,061
< set absolute volume response event */ } esp_avrc_ct_cb_event_t; /// AVRC Target callback events typedef enum { ESP_AVRC_TG_CONNECTION_STATE_EVT = 0, /*!< connection state changed event */ ESP_AVRC_TG_REMOTE_FEATURES_EVT = 1, /*!< feature of remote device indication event */ ESP_AVRC_TG...
3,061
< album name */ ESP_AVRC_MD_ATTR_TRACK_NUM = 0x8, /*!< track position on the album */ ESP_AVRC_MD_ATTR_NUM_TRACKS = 0x10, /*!< number of tracks on the album */ ESP_AVRC_MD_ATTR_GENRE = 0x20, /*!< track genre */ ESP_AVRC_MD_ATTR_PLAYING_TIME = 0x40 /*!< total...
3,061
< system status changed */ ESP_AVRC_RN_APP_SETTING_CHANGE = 0x08, /*!< application settings changed */ ESP_AVRC_RN_NOW_PLAYING_CHANGE = 0x09, /*!< now playing content changed */ ESP_AVRC_RN_AVAILABLE_PLAYERS_CHANGE = 0x0a, /*!< available players changed */ ESP_AVRC_RN_ADDRESSED_PLAYER_CHA...
3,061
< bit mask representation of PASSTHROUGH commands */ } esp_avrc_rn_evt_cap_mask_t; /// AVRC notification response type typedef enum { ESP_AVRC_RN_RSP_INTERIM = 13, /*!< initial response to RegisterNotification, should be sent T_mtp(1000ms) from receiving the command */ ESP_AVRC_RN_RSP_CHANGED = 15, /*!...
3,061
< repeat mode off */ ESP_AVRC_PS_REPEAT_SINGLE = 0x2, /*!< single track repeat */ ESP_AVRC_PS_REPEAT_GROUP = 0x3 /*!< group repeat */ } esp_avrc_ps_rpt_value_ids_t; /// AVRC shuffle modes typedef enum { ESP_AVRC_PS_SHUFFLE_OFF = 0x1, /*<! shuffle off */ ESP_A...
3,061
< reject */ ESP_AVRC_RSP_IN_TRANS = 11, /*!< in transition */ ESP_AVRC_RSP_IMPL_STBL = 12, /*!< implemented/stable */ ESP_AVRC_RSP_CHANGED = 13, /*!< changed */ ESP_AVRC_RSP_INTERIM = 15, /*!< interim */ } esp_avrc_rsp_t; /// AVRC...
3,061
< paused */ ESP_AVRC_PLAYBACK_FWD_SEEK = 3, /*!< forward seek */ ESP_AVRC_PLAYBACK_REV_SEEK = 4, /*!< reverse seek */ ESP_AVRC_PLAYBACK_ERROR = 0xFF, /*!< error */ } esp_avrc_playback_stat_t; /// AVRCP notification parameters typedef union { uint8_t volume; ...
3,061
< player application attribute value */ } esp_avrc_set_app_value_param_t; /// AVRC controller callback parameters typedef union { /** */ struct avrc_ct_conn_stat_param { bool connected; /*!< whether AVRC connection is set up */ esp_bd_addr_t remote_bda; ...
3,061
< id of metadata attribute */ uint8_t *attr_text; /*!< attribute itself */ int attr_length; /*!< attribute character length */ } meta_rsp; /*!< metadata attributes response */ /** */ struct avrc_ct_change_not...
3,061
< number of items provided in event or company_id according to cap_id used */ esp_avrc_rn_evt_cap_mask_t evt_set; /*!< supported event_ids represented in bit-mask */ } get_rn_caps_rsp; /*!< get supported event capabilities response from AVRCP target */ /** */ str...
3,061
< AVRC feature mask of remote device */ uint16_t ct_feat_flag; /*!< feature flag of remote device as CT */ esp_bd_addr_t remote_bda; /*!< remote bluetooth device address */ } rmt_feats; /*!< AVRC features discovered through SDP */ ...
3,061
< event notification parameter */ } reg_ntf; /*!< register notification */ /** */ struct avrc_tg_set_app_value_param { uint8_t num_val; /*!< attribute num */ esp_avrc_set_app_value_param_t *p_vals; /*!< point to the id and value ...
3,061
/* */ #ifndef __ESP_BT_DEFS_H__ #define __ESP_BT_DEFS_H__ #include #include #ifdef __cplusplus extern "C" { #endif #define ESP_BLUEDROID_STATUS_CHECK(status) \ if (esp_bluedroid_get_status() != (status)) { \ return ESP_ERR_INVALID_STATE; \ } #define ESP_BT_STATUS_BASE...
3,062
h */ ESP_BT_STATUS_UNSUPPORTED, /* relate to BT_STATUS_UNSUPPORTED in bt_def.h */ ESP_BT_STATUS_PARM_INVALID, /* relate to BT_STATUS_PARM_INVALID in bt_def.h */ ESP_BT_STATUS_UNHANDLED, /* relate to BT_STATUS_UNHANDLED in bt_def.h */ ESP_BT_STATUS_AUTH...
3,062
h */ ESP_BT_STATUS_PEER_LE_DATA_LEN_UNSUPPORTED, /* relate to BTM_PEER_LE_DATA_LEN_UNSUPPORTED in stack/btm_api.h */ ESP_BT_STATUS_CONTROL_LE_DATA_LEN_UNSUPPORTED,/* relate to BTM_CONTROL_LE_DATA_LEN_UNSUPPORTED in stack/btm_api.h */ ESP_BT_STATUS_ERR_ILLEGAL_PARAMETER_FMT, /* relate to HCI_ERR_ILLEGAL_P...
3,062
= (min) && (x) <= (max)) ) /// UUID type typedef struct { #define ESP_UUID_LEN_16 2 #define ESP_UUID_LEN_32 4 #define ESP_UUID_LEN_128 16 uint16_t len; /*!< UUID length, 16bit, 32bit or 128bit */ union { uint16_t uuid16; /*!< 16bit UUID */ uint32_t uuid32;...
3,062
To set this address, use the function esp_ble_gap_set_rand_addr(esp_bd_addr_t rand_addr) */ BLE_ADDR_TYPE_RPA_PUBLIC = 0x02, /*!< Resolvable Private Address (RPA) with public identity address */ BLE_ADDR_TYPE_RPA_RANDOM = 0x03, /*!< Resolvable Private Address (RPA) with random identity address. T...
3,062
h */ /// Used to exchange the link key(this key just used in the BLE & BR/EDR coexist mode) in the init key & response key #define ESP_BLE_LINK_KEY_MASK (1 << 3) /* relate to BTM_BLE_LINK_KEY_MASK in stack/btm_api.h */ typedef uint8_t esp_ble_key_mask_t; /* the key mask type */ /// Minimum of t...
3,062