text stringlengths 1 9.98k | __index_level_0__ int64 0 4.17k |
|---|---|
(input)
** p_conn_id: connection id (output)
** transport : physical transport of the GATT connection (BR/EDR or LE)
**
** Returns TRUE the logical link is connected
**
/
extern BOOLEAN GATT_GetConnIdIfConnected(tGATT_IF gatt_if, BD_ADDR bd_addr,
UINT16 *p_conn_id... | 3,130 |
**
/
extern void GATT_ConfigServiceChangeCCC (BD_ADDR remote_bda, BOOLEAN enable,
tBT_TRANSPORT transport);
/
**
** Function GATTS_SetServiceChangeMode
**
** Description Configure service change indication mode
**
** Parameters mode: service change mode
**
** Returns Status.
**
/
e... | 3,130 |
**
** Returns GATT_SUCCESS if successfully sent; otherwise error code.
**
/
extern tGATT_STATUS GATTS_ShowLocalDatabase(void);
#ifdef __cplusplus
}
#endif
#endif /* GATT_API_H */
| 3,130 |
/
/
#ifndef AVDT_CAPI_H
#define AVDT_CAPI_H
#include "stack/avdt_api.h"
/* start AVDTC events here to distinguish from AVDT events */
#define AVDTC_EVT_BEGIN 0x80
#define AVDTC_DISCOVER_IND_EVT (0 + AVDTC_EVT_BEGIN) /* Discover indication */
#define AVDTC_GETCAP_IND_EVT (1 + AVDTC_EVT_BEGI... | 3,131 |
** It must be called after AVDT_Register() and before any
** other API or conformance API functions are called.
**
** Returns void
**
/
extern void AVDTC_Init(tAVDTC_CTRL_CBACK *p_cback);
/
**
** Function AVDTC_DiscoverRsp
**
** Description Send a discover respo... | 3,131 |
**
** Returns void
**
/
extern void AVDTC_GetConfigReq(UINT8 handle);
/
**
** Function AVDTC_GetConfigRsp
**
** Description Send a get configuration response.
**
** Returns void
**
/
extern void AVDTC_GetConfigRsp(UINT8 handle, UINT8 label, tAVDT_CFG *p_cfg);
/
**
** Function A... | 3,131 |
**
** Returns void
**
/
extern void AVDTC_SuspendRsp(UINT8 *p_handles, UINT8 num_handles, UINT8 label);
/
**
** Function AVDTC_AbortReq
**
** Description Send an abort request.
**
** Returns void
**
/
extern void AVDTC_AbortReq(UINT8 handle);
/
**
** Function AVDTC_AbortRsp
**
... | 3,131 |
/
/
#ifndef RFCDEFS_H
#define RFCDEFS_H
#define PORT_MAX_RFC_PORTS 31
/*
** If nothing is negotiated MTU should be 127
*/
#define RFCOMM_DEFAULT_MTU 127
/*
** Define used by RFCOMM TS frame types
*/
#define RFCOMM_SABME 0x2F
#define RFCOMM_UA 0x63... | 3,132 |
ea) dlci += *p_data++ > RFCOMM_PF_OFFSET;\
}
#define RFCOMM_FORMAT_TYPE_FIELD(p_data, type, pf) \
*p_data++ = (type | (pf > RFCOMM_PF_OFFSET;\
}
#define RFCOMM_PARSE_LEN_FIELD(ea, length, p_data) \
{ \
ea = (*p_data & RFCOMM_EA); ... | 3,132 |
/
/
#ifndef PORTEXT_H
#define PORTEXT_H
/* Port emulation entity Entry Points */
extern void rfcomm_process_timeout (TIMER_LIST_ENT *p_tle);
#endif
| 3,133 |
/
/
#ifndef PORT_INT_H
#define PORT_INT_H
#include "common/bt_target.h"
#include "stack/rfcdefs.h"
#include "stack/port_api.h"
#include "osi/fixed_queue.h"
#include "common/bt_defs.h"
/* Local events passed when application event is sent from the api to PORT */
/* ???*/
#define PORT_EVENT_OPEN (1 | BT_EVT_... | 3,134 |
c
*/
extern tPORT *port_allocate_port (UINT8 dlci, BD_ADDR bd_addr);
extern void port_set_defaults (tPORT *p_port);
extern void port_select_mtu (tPORT *p_port);
extern void port_release_port (tPORT *p_port);
extern tPORT *port_find_mcb_dlci_port (tRFC_MCB *p_mcb, UINT8 dlci);
extern tRFC_MCB *port_fin... | 3,134 |
/
/
#ifndef RFC_INT_H
#define RFC_INT_H
#include "stack/l2c_api.h"
#include "port_int.h"
/*
** Define RFCOMM result codes
*/
#define RFCOMM_SUCCESS 0
#define RFCOMM_ERROR 1
#define RFCOMM_LOW_RESOURCES 2
#define RFCOMM_TRY_LATER 3
#define RFCOMM_USER_ERR 111
#define RFCOMM_SEC... | 3,135 |
c
*/
extern void rfc_port_sm_execute (tPORT *p_port, UINT16 event, void *p_data);
extern void rfc_process_pn (tRFC_MCB *p_rfc_mcb, BOOLEAN is_command, MX_FRAME *p_frame);
extern void rfc_process_msc (tRFC_MCB *p_rfc_mcb, BOOLEAN is_command, MX_FRAME *p_frame);
extern void rfc_process_rpn (tRFC_MCB *p_rfc_mcb, BOOLEAN... | 3,135 |
c
*/
extern void rfc_send_sabme (tRFC_MCB *p_rfc_mcb, UINT8 dlci);
extern void rfc_send_ua (tRFC_MCB *p_rfc_mcb, UINT8 dlci);
extern void rfc_send_dm (tRFC_MCB *p_rfc_mcb, UINT8 dlci, BOOLEAN pf);
extern void rfc_send_disc (tRFC_MCB *p_rfc_mcb, UINT8 dlci);
extern void rfc_send_pn (tRFC_MCB *p_mcb, ... | 3,135 |
c
*/
/* Call back functions from RFCOMM */
extern void rfcomm_l2cap_if_init (void);
extern void PORT_StartInd (tRFC_MCB *p_mcb);
extern void PORT_StartCnf (tRFC_MCB *p_mcb, UINT16 result);
extern void PORT_CloseInd (tRFC_MCB *p_mcb);
extern void Port_TimeOutCloseMux (tRFC_MCB *p_mcb);
extern void PORT_DlcEstablis... | 3,135 |
/
#ifndef GAP_INT_H
#define GAP_INT_H
#include "common/bt_target.h"
#include "osi/fixed_queue.h"
#include "stack/gap_api.h"
#include "stack/gatt_api.h"
#define GAP_MAX_BLOCKS 2 /* Concurrent GAP commands pending at a time*/
/* Define the Generic Access Profile control structure */
typedef struct {
void ... | 3,136 |
*/
typedef struct {
#define GAP_CCB_STATE_IDLE 0
#define GAP_CCB_STATE_LISTENING 1
#define GAP_CCB_STATE_CONN_SETUP 2
#define GAP_CCB_STATE_CFG_SETUP 3
#define GAP_CCB_STATE_WAIT_SEC 4
#define GAP_CCB_STATE_CONNECTED 5
UINT8 con_state;
#define GAP_C... | 3,136 |
/
/
#ifndef SDP_INT_H
#define SDP_INT_H
#include "common/bt_target.h"
#include "common/bt_defs.h"
#include "stack/sdp_api.h"
#include "stack/l2c_api.h"
#include "osi/list.h"
#if (SDP_INCLUDED == TRUE)
/* Continuation length - we use a 2-byte offset */
#define SDP_CONTINUATION_LEN 2
#define SDP_MAX_CONTINUA... | 3,137 |
*/
#define SDP_IFLOW_QOS_FLAG 0
#define SDP_IFLOW_SERV_TYPE 0
#define SDP_IFLOW_TOKEN_RATE 0
#define SDP_IFLOW_TOKEN_BUCKET_SIZE 0
#define SDP_IFLOW_PEAK_BANDWIDTH 0
#define SDP_IFLOW_LATENCY 0
#define SDP_IFLOW_DELAY_VARIATION ... | 3,137 |
response */
tSDP_RECORD *prev_sdp_rec; /* last sdp record that was completely sent in the response */
BOOLEAN last_attr_seq_desc_sent; /* whether attr seq length has been sent previously */
UINT16 attr_offset; /* offset within the attr to keep trak of partial attributes in the re... | 3,137 |
c */
extern void sdp_init (void);
extern void sdp_deinit (void);
extern void sdp_disconnect (tCONN_CB *p_ccb, UINT16 reason);
#if (defined(SDP_DEBUG) && SDP_DEBUG == TRUE)
extern UINT16 sdp_set_max_attr_list_size (UINT16 max_size);
#endif
/* Functions provided by sdp_conn.c
*/
extern void sdp_conn_rcv_l2e... | 3,137 |
c
*/
extern tSDP_RECORD *sdp_db_service_search (tSDP_RECORD *p_rec, tSDP_UUID_SEQ *p_seq);
extern tSDP_RECORD *sdp_db_find_record (UINT32 handle);
extern tSDP_ATTRIBUTE *sdp_db_find_attr_in_rec (tSDP_RECORD *p_rec, UINT16 start_attr, UINT16 end_attr);
/* Functions provided by sdp_server.c
*/
#if SDP_SERVER_ENAB... | 3,137 |
/*
Copyright (c) 1998-2008, Brian Gladman, Worcester, UK. All rights reserved.
LICENSE TERMS
The redistribution and use of this software (with or without changes)
is allowed without the payment of fees or royalties provided that:
list of conditions and the following disclaimer;
of conditions and the f... | 3,138 |
*/
#if defined( AES_ENC_PREKEYED ) || defined( AES_DEC_PREKEYED )
return_type aes_set_key( const unsigned char key[],
length_type keylen,
aes_context ctx[1] );
#endif
#if defined( AES_ENC_PREKEYED )
return_type bluedroid_aes_encrypt( const unsigned char in[N_BLOCK]... | 3,138 |
In this case the
encryption and decryption keys are different.
The encryption subroutines take a key in an array of bytes in
key[L] where L is 16, 24 or 32 bytes for key lengths of 128,
192, and 256 bits respectively. They then encrypts the input
data, in[] with this key and put the reult in the... | 3,138 |
/
/
#ifndef SMP_INT_H
#define SMP_INT_H
// #if (SMP_INCLUDED == TRUE)
#include "stack/btu.h"
#include "stack/btm_ble_api.h"
#include "stack/btm_api.h"
#include "stack/smp_api.h"
#define SMP_MODEL_ENCRYPTION_ONLY 0 /* Legacy mode, Just Works model */
#define SMP_MODEL_PASSKEY 1 /* Legacy mode, Passkey E... | 3,139 |
Used only in the */
/* numeric compare protocol */
/* Request to display the number for user check to the user.*/
/* Used only in the numeric compare protocol */
#define SMP_SC_DSPL_NC_EVT (SMP_SELF_DEF_EVT + 18)
#define SMP_SC_NC_OK_EVT (SMP_SELF_DEF_EVT + 19) /* user confirms 'OK' numer... | 3,139 |
c */
extern void smp_init (void);
/* smp main */
extern void smp_sm_event(tSMP_CB *p_cb, tSMP_EVENT event, void *p_data);
extern void smp_proc_sec_request(tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_set_fail_nc (BOOLEAN enable);
extern void smp_set_fail_conf (BOOLEAN enable);
extern void smp_set_passk_e... | 3,139 |
c */
extern void smp_send_pair_req(tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_send_confirm(tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_send_pair_fail(tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_send_rand(tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_send_pair_public_key(tSMP_C... | 3,139 |
c */
extern BOOLEAN smp_send_cmd(UINT8 cmd_code, tSMP_CB *p_cb);
extern void smp_cb_cleanup(tSMP_CB *p_cb);
extern void smp_reset_control_value(tSMP_CB *p_cb);
extern void smp_proc_pairing_cmpl(tSMP_CB *p_cb);
extern void smp_convert_string_to_tk(BT_OCTET16 tk, UINT32 passkey);
extern void smp_mask_enc_key(UINT8 loc_en... | 3,139 |
c */
extern void smp_generate_srand_mrand_confirm (tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_generate_compare (tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_generate_stk (tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_generate_ltk(tSMP_CB *p_cb, tSMP_INT_DATA *p_data);
extern void smp_gene... | 3,139 |
c */
extern BOOLEAN aes_cipher_msg_auth_code(BT_OCTET16 key, UINT8 *input, UINT16 length,
UINT16 tlen, UINT8 *p_signature);
extern void print128(BT_OCTET16 x, const UINT8 *key_name);
// #endif ///BLE_INCLUDED == TRUE && SMP_INCLUDED == TRUE
#endif /* SMP_INT_H */
| 3,139 |
/
/
#pragma once
#include "stack/bt_types.h"
/* Type definitions */
typedef unsigned long DWORD;
#define DWORD_BITS 32
#define DWORD_BYTES 4
#define DWORD_BITS_SHIFT 5
#define KEY_LENGTH_DWORDS_P192 6
#define KEY_LENGTH_DWORDS_P256 8
/* Arithmetic Operations */
int multiprecision_compare(DWORD *a, DWORD... | 3,140 |
/
/
#pragma once
#include "p_256_multprecision.h"
#include "common/bt_target.h"
typedef unsigned long DWORD;
typedef struct {
DWORD x[KEY_LENGTH_DWORDS_P256];
DWORD y[KEY_LENGTH_DWORDS_P256];
DWORD z[KEY_LENGTH_DWORDS_P256];
} Point;
typedef struct {
// curve's coefficients
DWORD a[KEY_LENGTH... | 3,141 |
/
/
#ifndef AVCT_INT_H
#define AVCT_INT_H
#include "stack/avct_api.h"
#include "avct_defs.h"
#include "stack/l2c_api.h"
#include "osi/fixed_queue.h"
/
** constants
/
/* lcb state machine events */
enum {
AVCT_LCB_UL_BIND_EVT,
AVCT_LCB_UL_UNBIND_EVT,
AVCT_LCB_UL_MSG_EVT,
AVCT_LCB_INT_CLOSE_EVT,
A... | 3,142 |
index+1, otherwise. */
UINT8 state; /* The state machine state */
UINT8 ch_state; /* L2CAP channel state */
UINT8 ch_flags; /* L2CAP configuration flags */
} tAVCT_SCB;
/* link control block type */
typedef struct {
UINT16 pee... | 3,142 |
index+1, otherwise. */
UINT8 state; /* The state machine state */
UINT8 ch_state; /* L2CAP channel state */
UINT8 ch_flags; /* L2CAP configuration flags */
BT_HDR *p_tx_msg; /* Message to be sent - in case the browsing cha... | 3,142 |
/
/
#ifndef AVCT_DEFS_H
#define AVCT_DEFS_H
/
** constants
/
/* packet type */
#define AVCT_PKT_TYPE_SINGLE 0 /* single packet */
#define AVCT_PKT_TYPE_START 1 /* start packet */
#define AVCT_PKT_TYPE_CONT 2 /* continue packet */
#define AVCT_PKT_TYPE_END 3 /... | 3,143 |
/
/
#ifndef HID_INT_H
#define HID_INT_H
#include "hid_conn.h"
#include "stack/l2c_api.h"
#if (BT_HID_INCLUDED == TRUE)
#if (HID_HOST_INCLUDED == TRUE)
#include "stack/hidh_api.h"
enum { HID_DEV_NO_CONN, HID_DEV_CONNECTED };
typedef struct per_device_ctb {
BOOLEAN in_use;
BOOLEAN delay_remove;
... | 3,144 |
h"
enum { HIDD_DEV_NO_CONN, HIDD_DEV_CONNECTED };
typedef struct device_ctb {
bool in_use;
BD_ADDR addr;
uint8_t state;
tHID_CONN conn;
bool boot_mode;
uint8_t idle_time;
} tHID_DEV_DEV_CTB;
typedef struct dev_ctb {
tHID_DEV_DEV_CTB device;
tHID_DEV_HOST_CALLBACK *callback;
tL2CAP_... | 3,144 |
/
/
#ifndef HID_CONN_H
#define HID_CONN_H
#include "common/bt_defs.h"
#if (BT_HID_INCLUDED == TRUE)
/* Define the HID Connection Block
*/
typedef struct hid_conn {
#define HID_CONN_STATE_UNUSED (0)
#define HID_CONN_STATE_CONNECTING_CTRL (1)
#define HID_CONN_STATE_CONNECTING_INTR (2)
#define... | 3,145 |
/
/
#ifndef L2C_INT_H
#define L2C_INT_H
#include
#include "stack/btm_api.h"
#include "stack/l2c_api.h"
#include "stack/l2cdefs.h"
#include "osi/list.h"
#include "osi/fixed_queue.h"
#define L2CAP_MIN_MTU 48 /* Minimum acceptable MTU is 48 bytes */
/* LE credit based L2CAP connection parameters */
#define L2C... | 3,146 |
The names of
** the states may seem a bit strange, but they are taken from
** the Bluetooth specification.
*/
typedef enum {
CST_CLOSED, /* Channel is in clodes state */
CST_ORIG_W4_SEC_COMP, /* Originator waits security clearence */
CST_TERM_W4_SEC_COMP... | 3,146 |
The names
** of the events may seem a bit strange, but they are taken from
** the Bluetooth specification.
*/
#define L2CEVT_LP_CONNECT_CFM 0 /* Lower layer connect confirm */
#define L2CEVT_LP_CONNECT_CFM_NEG 1 /* Lower layer connect confirm (failed) */
#define L2CEVT_LP_CONNE... | 3,146 |
*/
typedef struct {
tL2C_CCB *p_first_ccb; /* The first channel in this queue */
tL2C_CCB *p_last_ccb; /* The last channel in this queue */
} tL2C_CCB_Q;
#if (L2CAP_ROUND_ROBIN_CHANNEL_SERVICE == TRUE)
/* Round-Robin service for the same priority channels */
#defin... | 3,146 |
There is one link control block between
** this device and any other device (i.e. BD ADDR).
*/
typedef struct t_l2c_linkcb {
BOOLEAN in_use; /* TRUE when in use, FALSE when not */
tL2C_LINK_STATE link_state;
BOOLEAN is_aux; /* This variabl... | 3,146 |
*/
BOOLEAN w4_info_rsp; /* TRUE when info request is active */
UINT8 info_rx_bits; /* set 1 if received info type */
UINT32 peer_ext_fea; /* Peer's extended features mask */
list_t *link_... | 3,146 |
** This structure is used to pass between functions, and not all the
** fields will always be filled in.
*/
typedef struct {
BD_ADDR bd_addr; /* Remote BD address */
UINT8 status; /* Connection status */
UINT16 psm; ... | 3,146 |
high_pri_min_xmit_quota)
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* L2CAP global data
*/
#if (!defined L2C_DYNAMIC_MEMORY) || (L2C_DYNAMIC_MEMORY == FALSE)
extern tL2C_CB l2cb;
#else
extern tL2C_CB *l2c_cb_ptr;
#define l2cb (*l2c_cb_ptr)
#endif
/* Functions provided by l2c_main.c
*/
void l2c_init(void);
v... | 3,146 |
c
*/
#if (L2CAP_UCD_INCLUDED == TRUE)
void l2c_ucd_delete_sec_pending_q(tL2C_LCB *p_lcb);
void l2c_ucd_enqueue_pending_out_sec_q(tL2C_CCB *p_ccb, void *p_data);
BOOLEAN l2c_ucd_check_pending_info_req(tL2C_CCB *p_ccb);
BOOLEAN l2c_ucd_check_pending_out_sec_q(tL2C_CCB *p_ccb);
void l2c_ucd_send_pending_out_sec_q(tL2... | 3,146 |
c
*/
extern BOOLEAN l2c_link_hci_conn_req (BD_ADDR bd_addr);
extern BOOLEAN l2c_link_hci_conn_comp (UINT8 status, UINT16 handle, BD_ADDR p_bda);
extern BOOLEAN l2c_link_hci_disc_comp (UINT16 handle, UINT8 reason);
extern BOOLEAN l2c_link_hci_qos_violation (UINT16 handle);
extern void l2c_link_timeout (tL2C_LCB... | 3,146 |
c
*/
#if (L2CAP_COC_INCLUDED == TRUE)
extern void l2c_csm_execute (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
#endif
extern void l2c_enqueue_peer_data (tL2C_CCB *p_ccb, BT_HDR *p_buf);
/* Functions provided by l2c_fcr.c
*/
extern void l2c_fcr_cleanup (tL2C_CCB *p_ccb);
extern void l2c_fcr_proc_pdu (tL2C_C... | 3,146 |
c
*/
#if (BLE_INCLUDED == TRUE)
extern BOOLEAN l2cble_create_conn (tL2C_LCB *p_lcb);
extern void l2cble_process_sig_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len);
extern void l2cble_conn_comp (UINT16 handle, UINT8 role, BD_ADDR bda, tBLE_ADDR_TYPE type,
UINT16 conn_interval, UINT16 conn... | 3,146 |
/
/
#ifndef A2D_INT_H
#define A2D_INT_H
#include "stack/a2d_api.h"
#if (A2D_INCLUDED == TRUE)
/
** Constants
/
/* Number of attributes in A2D SDP record. */
#define A2D_NUM_ATTR 6
/* Number of protocol elements in protocol element list. */
#define A2D_NUM_PROTO_ELEMS 2
/
** Type definitions
/
/* ... | 3,147 |
/
/
#ifndef AVDT_INT_H
#define AVDT_INT_H
#include "stack/avdt_api.h"
#include "stack/avdtc_api.h"
#include "avdt_defs.h"
#include "stack/l2c_api.h"
#include "stack/btm_api.h"
#include "osi/fixed_queue.h"
#if (AVRC_INCLUDED == TRUE)
#ifndef AVDT_DEBUG
#define AVDT_DEBUG FALSE
#endif
/
** constants
/
/* channel t... | 3,148 |
.. |
**
** Note that we "hide" the scb handles at the top of the message buffer.
*/
#define AVDT_MSG_OFFSET (L2CAP_MIN_OFFSET + AVDT_NUM_SEPS + AVDT_LEN_TYPE_START)
/* scb transport channel connect timeout value */
#define AVDT_SCB_TC_CONN_TOUT 10
/* scb transport channel disconnect timeout value */
#define... | 3,148 |
/
/
#ifndef AVDT_DEFS_H
#define AVDT_DEFS_H
#include "common/bt_target.h"
#if (AVDT_INCLUDED == TRUE)
/
** constants
/
/* signalling packet type */
#define AVDT_PKT_TYPE_SINGLE 0 /* single packet */
#define AVDT_PKT_TYPE_START 1 /* start packet */
#define AVDT_PKT_TYPE_CONT 2 ... | 3,149 |
Take length from l2cap */
#define AVDT_ALH_LCODE_16BIT 0x01 /* 16bit length field */
#define AVDT_ALH_LCODE_9BITM0 0x02 /* 9 bit length field, MSB = 0, 8 LSBs in 1 octet following */
#define AVDT_ALH_LCODE_9BITM1 0x03 /* 9 bit length field, MSB = 1, 8 LSBs in 1 octet following */
#define AVDT_ALH_FRAG... | 3,149 |
/*
*/
#ifndef __ESP_NIMBLE_HCI_H__
#define __ESP_NIMBLE_HCI_H__
#include "nimble/transport.h"
#ifdef __cplusplus
extern "C" {
#endif
#define BLE_HCI_UART_H4_NONE 0x00
#define BLE_HCI_UART_H4_CMD 0x01
#define BLE_HCI_UART_H4_ACL 0x02
#define BLE_HCI_UART_H4_SCO 0x03
#define BLE_HCI_UA... | 3,150 |
/*
*/
#ifndef __ESP_NIMBLE_MEM_H__
#define __ESP_NIMBLE_MEM_H__
#include
#ifdef __cplusplus
extern "C" {
#endif
// #pragma message "This file should be replaced with bt_osi_mem.h, used here for compatibility"
#include "bt_osi_mem.h"
#define nimble_platform_mem_malloc bt_osi_mem_malloc
#define nimble_platform_mem... | 3,151 |
/*
*/
#ifndef __ESP_NIMBLE_CFG__
#define __ESP_NIMBLE_CFG__
#include "sdkconfig.h"
/**
*/
#define MYNEWT_VAL(_name) MYNEWT_VAL_ ## _name
#define MYNEWT_VAL_CHOICE(_name, _val) MYNEWT_VAL_ ## _name ## __ ## _val
#ifndef IRAM_ATTR_64MCPU
#define IRAM_ATTR_64MCPU IRAM_ATTR
#endif
#if ... | 3,152 |
/*
*/
#ifndef _CONSOLE_H
#define _CONSOLE_H
#include
#define console_printf printf
#endif
| 3,153 |
/*
*/
#ifndef __ESP_BT_H__
#define __ESP_BT_H__
#include
#include
#include "esp_err.h"
#include "sdkconfig.h"
#include "esp_task.h"
#include "nimble/nimble_npl.h"
#include "../../../../controller/esp32c2/esp_bt_cfg.h"
#include "hal/efuse_hal.h"
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
#include "driver/uart.h"
... | 3,154 |
/*
*/
#ifndef __ESP_BT_H__
#define __ESP_BT_H__
#include
#include
#include "esp_err.h"
#include "sdkconfig.h"
#include "esp_task.h"
#include "esp_assert.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ESP_BT_CTRL_CONFIG_MAGIC_VAL 0x5A5AA5A5
#define ESP_BT_CTRL_CONFIG_VERSION 0x02401120
#define ESP_BT_... | 3,155 |
/*
*/
#ifndef __ESP_BT_H__
#define __ESP_BT_H__
#include
#include
#include "esp_err.h"
#include "sdkconfig.h"
#include "esp_task.h"
#include "esp_assert.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef CONFIG_BT_ENABLED
#define SOC_MEM_BT_DATA_START 0x3ffae6e0
#define SOC_MEM_BT_DATA_END ... | 3,156 |
= 0 - Power level, BT Classic or disabled -> enabled)
*/
esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode);
/** @brief esp_bt_mem_release
*/
esp_err_t esp_bt_mem_release(esp_bt_mode_t mode);
/**
*/
esp_err_t esp_bt_sleep_enable(void);
/**
*/
esp_err_t esp_bt_sleep_disable(void);
/**
*/
esp_err_t es... | 3,156 |
/*
*/
#ifndef __ESP_BT_H__
#define __ESP_BT_H__
#include
#include
#include "esp_err.h"
#include "sdkconfig.h"
#include "esp_task.h"
#include "nimble/nimble_npl.h"
#include "../../../../controller/esp32c6/esp_bt_cfg.h"
#include "hal/efuse_hal.h"
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
#include "driver/uart.h"
... | 3,157 |
/*
*/
#ifndef __ESP_BT_H__
#define __ESP_BT_H__
#include
#include
#include "esp_err.h"
#include "sdkconfig.h"
#include "esp_task.h"
#include "nimble/nimble_npl.h"
#include "esp_bt_cfg.h"
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
#include "driver/uart.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
/**
*/
... | 3,158 |
/*
*/
#ifndef __ESP_BT_CFG_H__
#define __ESP_BT_CFG_H__
#include
#include
#include "esp_err.h"
#include "sdkconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
#if CONFIG_BT_NIMBLE_ENABLED
#include "syscfg/syscfg.h"
#endif
#define NIMBLE_LL_STACK_SIZE CONFIG_BT_LE_CONTROLLER_TASK_STACK_SIZE
#if CONFIG_BT_NIMBLE_E... | 3,159 |
/*
*/
#ifndef __ESP_BT_H__
#define __ESP_BT_H__
#include
#include
#include "esp_err.h"
#include "sdkconfig.h"
#include "esp_task.h"
#include "nimble/nimble_npl.h"
#include "../../../../controller/esp32h2/esp_bt_cfg.h"
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
#include "driver/uart.h"
#endif
#ifdef __cplusplus
... | 3,160 |
/*
*/
#ifndef _BTC_BLE_MESH_HEALTH_MODEL_H_
#define _BTC_BLE_MESH_HEALTH_MODEL_H_
#include "btc/btc_manage.h"
#include "esp_ble_mesh_health_model_api.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
BTC_BLE_MESH_ACT_HEALTH_CLIENT_GET_STATE,
BTC_BLE_MESH_ACT_HEALTH_CLIENT_SET_STATE,
BTC_BLE_MESH... | 3,161 |
/*
*/
#ifndef _BTC_BLE_MESH_MODEL_COMMON_H_
#define _BTC_BLE_MESH_MODEL_COMMON_H_
#include "btc/btc_manage.h"
#include "mesh/access.h"
#include "mesh/client_common.h"
#include "esp_ble_mesh_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
static inline void btc_ble_mesh_set_client_common_param(esp_ble_mesh_client_c... | 3,163 |
send_cred;
output->ctx.send_tag = input->ctx.send_tag;
output->msg_timeout = input->msg_timeout;
}
}
#ifdef __cplusplus
}
#endif
#endif /* _BTC_BLE_MESH_MODEL_COMMON_H_ */
| 3,163 |
/*
*/
#ifndef _BTC_BLE_MESH_CONFIG_MODEL_H_
#define _BTC_BLE_MESH_CONFIG_MODEL_H_
#include "btc/btc_manage.h"
#include "esp_ble_mesh_config_model_api.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
BTC_BLE_MESH_ACT_CONFIG_CLIENT_GET_STATE,
BTC_BLE_MESH_ACT_CONFIG_CLIENT_SET_STATE,
BTC_BLE_MESH... | 3,164 |
/*
*/
#ifndef _BTC_BLE_MESH_GENERIC_MODEL_H_
#define _BTC_BLE_MESH_GENERIC_MODEL_H_
#include "btc/btc_manage.h"
#include "esp_ble_mesh_generic_model_api.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
BTC_BLE_MESH_ACT_GENERIC_CLIENT_GET_STATE,
BTC_BLE_MESH_ACT_GENERIC_CLIENT_SET_STATE,
BTC_BLE... | 3,165 |
/*
*/
#ifndef _BTC_BLE_MESH_BLE_H_
#define _BTC_BLE_MESH_BLE_H_
#include
#include "btc/btc_manage.h"
#include "mesh/adapter.h"
#include "esp_ble_mesh_ble_api.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef union {
struct {
esp_ble_mesh_ble_adv_param_t param;
esp_ble_mesh_ble_adv_data_t data;... | 3,166 |
/*
*/
#ifndef _BTC_BLE_MESH_TIME_SCENE_MODEL_H_
#define _BTC_BLE_MESH_TIME_SCENE_MODEL_H_
#include "btc/btc_manage.h"
#include "esp_ble_mesh_time_scene_model_api.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
BTC_BLE_MESH_ACT_TIME_SCENE_CLIENT_GET_STATE,
BTC_BLE_MESH_ACT_TIME_SCENE_CLIENT_SET_STA... | 3,167 |
/*
*/
#ifndef _BTC_BLE_MESH_LIGHTING_MODEL_H_
#define _BTC_BLE_MESH_LIGHTING_MODEL_H_
#include "btc/btc_manage.h"
#include "esp_ble_mesh_lighting_model_api.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
BTC_BLE_MESH_ACT_LIGHTING_CLIENT_GET_STATE,
BTC_BLE_MESH_ACT_LIGHTING_CLIENT_SET_STATE,
BT... | 3,168 |
/*
*/
#ifndef _BTC_BLE_MESH_SENSOR_MODEL_H_
#define _BTC_BLE_MESH_SENSOR_MODEL_H_
#include "btc/btc_manage.h"
#include "esp_ble_mesh_sensor_model_api.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
BTC_BLE_MESH_ACT_SENSOR_CLIENT_GET_STATE,
BTC_BLE_MESH_ACT_SENSOR_CLIENT_SET_STATE,
BTC_BLE_MESH... | 3,169 |
/* Bluetooth Mesh */
/*
*/
#ifndef _PROV_COMMON_H_
#define _PROV_COMMON_H_
#include "mesh/config.h"
#include "mesh/types.h"
#include "mesh/main.h"
#include "mesh/mutex.h"
#include "mesh/timer.h"
#include "mesh/adapter.h"
#include "mesh_v1.1/utils.h"
#ifdef __cplusplus
extern "C" {
#endif
#define AUTH_METHOD_NO_... | 3,170 |
/*
*/
#ifndef _PROV_PVNR_H_
#define _PROV_PVNR_H_
#include "mesh/main.h"
#include "prov_common.h"
#include "mesh/adapter.h"
#ifdef __cplusplus
extern "C" {
#endif
#define RM_AFTER_PROV BIT(0)
#define START_PROV_NOW BIT(1)
#define FLUSHABLE_DEV BIT(2)
struct bt_mesh_unprov_dev_add {
uint8_t addr[6];
uin... | 3,171 |
*/
int bt_mesh_provisioner_prov_device_with_addr(const uint8_t uuid[16], const uint8_t addr[6],
uint8_t addr_type, bt_mesh_prov_bearer_t bearer,
uint16_t oob_info, uint16_t unicast_addr);
/** @brief Delete device from queue, ... | 3,171 |
/* Bluetooth Mesh */
/*
*/
#ifndef _FRIEND_H_
#define _FRIEND_H_
#include "net.h"
#ifdef __cplusplus
extern "C" {
#endif
enum bt_mesh_friend_pdu_type {
BLE_MESH_FRIEND_PDU_SINGLE,
BLE_MESH_FRIEND_PDU_PARTIAL,
BLE_MESH_FRIEND_PDU_COMPLETE,
};
bool bt_mesh_friend_match(uint16_t net_idx, uint16_t addr)... | 3,172 |
/* Bluetooth Mesh */
/*
*/
#ifndef _NET_H_
#define _NET_H_
#include "mesh/access.h"
#include "mesh/mutex.h"
#ifdef __cplusplus
extern "C" {
#endif
#define BLE_MESH_NET_FLAG_KR BIT(0)
#define BLE_MESH_NET_FLAG_IVU BIT(1)
#define BLE_MESH_KR_NORMAL 0x00
#define BLE_MESH_KR_PHASE_1 0x... | 3,173 |
*/
uint8_t snb_cache[21]; /* Cached last receive authenticated secure beacon */
#if CONFIG_BLE_MESH_PRIVATE_BEACON
uint32_t mpb_sent; /* Timestamp of last sent private beacon */
uint8_t mpb_last; /* Number of private beacons during last observation window */... | 3,173 |
e. sending Mesh Private Beacons
*/
uint8_t proxy_privacy;
#if CONFIG_BLE_MESH_DF_SRV
uint8_t directed_forwarding;
uint8_t directed_relay; /* Binding with Directed Forwarding state */
uint8_t directed_proxy; /* Binding with Directed Forwarding state & GATT Proxy state */
uint8_t directed_proxy_... | 3,173 |
e. not necessarily
*/
uint8_t seg_count;
} seg[FRIEND_SEG_RX];
struct net_buf *last;
sys_slist_t queue;
uint32_t queue_size;
/* Friend Clear Procedure */
struct {
uint32_t start; /* Clear Procedure start */
uint16_t frnd; /* Pre... | 3,173 |
Unassigned if we don't
*/
uint16_t frnd;
/* Value from the friend offer */
uint8_t recv_win;
uint8_t req_attempts; /* Number of Request attempts */
int32_t poll_timeout;
uint8_t groups_changed: 1, /* Friend Subscription List needs updating */
pending_poll: 1, /* ... | 3,173 |
flags */
enum {
BLE_MESH_NODE, /* Device is a node */
BLE_MESH_PROVISIONER, /* Device is a Provisioner */
BLE_MESH_VALID, /* We have been provisioned */
BLE_MESH_VALID_PROV, /* Provisioner has been enabled */
BLE_MESH_SUSPENDED, /* Network is temporarily suspended... | 3,173 |
iv_index - \
bt_mesh_atomic_test_bit(bt_mesh.flags, \
BLE_MESH_IVU_IN_PROGRESS))
#define BLE_MESH_NET_IVI_RX(rx) (bt_mesh.iv_index - (rx)->old_iv)
#define BLE_MESH_NET_HDR_LEN 9
#define BLE_MESH_NET_HDR_IVI(pd... | 3,173 |
cb) {
return;
}
if (cb->start) {
cb->start(0, 0, cb_data);
}
if (cb->end) {
cb->end(0, cb_data);
}
}
#ifdef __cplusplus
}
#endif
#endif /* _NET_H_ */
| 3,173 |
/* Bluetooth Mesh */
/*
*/
#ifndef _BEACON_H_
#define _BEACON_H_
#include "net.h"
#ifdef __cplusplus
extern "C" {
#endif
#define BEACON_TYPE_UNPROVISIONED 0x00
#define BEACON_TYPE_SECURE 0x01
#define BEACON_TYPE_PRIVATE 0x02
#define NET_IDX_SET(_val) ((void *)((uint32_t)(_val)))
#de... | 3,174 |
/*
*/
#ifndef _PROXY_COMMON_H_
#define _PROXY_COMMON_H_
#include "mesh/config.h"
#include "mesh/utils.h"
#include "mesh/timer.h"
#include "net.h"
#ifdef __cplusplus
extern "C" {
#endif
#define BLE_MESH_PROXY_ADV_NET_ID 0x00
#define BLE_MESH_PROXY_ADV_NODE_ID 0x01
#define ... | 3,175 |
0.1 Section 6.6:
*/
#define BLE_MESH_PROXY_SAR_TIMEOUT K_SECONDS(20)
#define BLE_MESH_PROXY_BUF_SIZE 68
#ifdef __cplusplus
}
#endif
#endif /* _PROXY_COMMON_H_ */
| 3,175 |
/* Bluetooth Mesh */
/*
*/
#ifndef _LPN_H_
#define _LPN_H_
#include "net.h"
#ifdef __cplusplus
extern "C" {
#endif
int bt_mesh_lpn_friend_update(struct bt_mesh_net_rx *rx,
struct net_buf_simple *buf);
int bt_mesh_lpn_friend_offer(struct bt_mesh_net_rx *rx,
... | 3,176 |
lpn.state == BLE_MESH_LPN_WAIT_UPDATE);
#else
return false;
#endif
}
static inline bool bt_mesh_lpn_timer(void)
{
#if CONFIG_BLE_MESH_LPN_AUTO
return (bt_mesh.lpn.state == BLE_MESH_LPN_TIMER);
#else
return false;
#endif
}
void bt_mesh_lpn_msg_received(struct bt_mesh_net_rx *rx);
void bt_mesh_lpn_group_ad... | 3,176 |
/* Bluetooth Mesh */
/*
*/
#ifndef _PROV_NODE_H_
#define _PROV_NODE_H_
#include "mesh/main.h"
#include "mesh/adapter.h"
#ifdef __cplusplus
extern "C" {
#endif
void bt_mesh_pb_adv_recv(struct net_buf_simple *buf);
bool bt_mesh_prov_active(void);
int bt_mesh_pb_gatt_open(struct bt_mesh_conn *conn);
int bt_mesh_pb... | 3,177 |
/*
*/
#ifndef _PVNR_MGMT_H_
#define _PVNR_MGMT_H_
#include "net.h"
#include "mesh/adapter.h"
#ifdef __cplusplus
extern "C" {
#endif
#define BLE_MESH_INVALID_NODE_INDEX 0xFFFF
#define BLE_MESH_NODE_NAME_SIZE 31
/* Each node information stored by provisioner */
struct bt_mesh_node {
/* Device inform... | 3,178 |
/*
*/
#ifndef _HEARTBEAT_H_
#define _HEARTBEAT_H_
#include
#ifdef __cplusplus
extern "C" {
#endif
void bt_mesh_set_hb_sub_dst(uint16_t addr);
uint16_t bt_mesh_get_hb_sub_dst(void);
void bt_mesh_heartbeat_recv(uint16_t src, uint16_t dst, uint8_t hops, uint16_t feat);
void bt_mesh_heartbeat_send(void);
typedef ... | 3,179 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.