text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
*/ typedef unsigned char OI_UINT8; /**< 8-bit unsigned integer values use native unsigned character data type for M64111 processor. */ typedef unsigned short OI_UINT16; /**< 16-bit unsigned integer values use native unsigned short integer data type for M64111 processor. */ typedef unsigned long OI_UINT32; /**< 3...
3,090
*/ typedef signed long OI_INT32; /**< 32-bit signed integer values use native signed long integer data type for ARM7 processor. */ typedef unsigned char OI_UINT8; /**< 8-bit unsigned integer values use native unsigned character data type for ARM7 processor. */ typedef unsigned short OI_UINT16; /**< 16-bit uns...
3,090
/ #ifndef _OI_UTILS_H #define _OI_UTILS_H /** */ / $Revision: #1 $ / #include #include "oi_common.h" #include "oi_string.h" #include "oi_bt_spec.h" /** \addtogroup Misc Miscellaneous APIs */ /**@{*/ #ifdef __cplusplus extern "C" { #endif /** */ typedef OI_UINT32 OI_CALLBACK_HANDLE; /** typedef void (*OI_SCH...
3,091
..); /** */ void OI_VPrintf(const OI_CHAR *format, va_list argp); /** */ OI_INT32 OI_SNPrintf(OI_CHAR *buffer, OI_UINT16 bufLen, const OI_CHAR *format, ...); /** */ OI_INT32 OI_VSNPrintf(OI_CHAR *buffer, OI_UINT16 bufLen, con...
3,091
*/ #define OI_DigitToChar(d) ((d) + '0') /** */ #define OI_MAX(a, b) (((a) (b)) ? (b) : (a) ) /** */ #define SAME_BD_ADDR(x, y) (0 == OI_MemCmp((x),(y),OI_BD_ADDR_BYTE_SIZE) ) #ifdef __cplusplus } #endif /**@}*/ #endif /* _OI_UTILS_H */
3,091
/ #ifndef _OI_ASSERT_H #define _OI_ASSERT_H /** @file This file provides macros and functions for compile-time and run-time assertions. When the OI_DEBUG preprocessor value is defined, the macro OI_ASSERT is compiled into the program, providing for a runtime assertion failure check. C_ASSERT is a macro that ca...
3,092
An assertion failure results in compile time error C2118: negative subscript. Unfortunately, this elegant macro doesn't work with GCC, so it's all commented out for now. Perhaps later..... */ #ifndef C_ASSERT // #define C_ASSERT(e) typedef char __C_ASSERT__[(e)?1:-1] // #define C_ASSERT(e) #endif // #ifdef...
3,092
/ #ifndef OI_STDDEFS_H #define OI_STDDEFS_H /** / $Revision: #1 $ / #include "oi_cpu_dep.h" /** \addtogroup Misc Miscellaneous APIs */ /**@{*/ #ifdef __cplusplus extern "C" { #endif #ifndef FALSE #define FALSE 0 /**< This define statement sets FALSE as a preprocessor alias for 0. */ #endif #ifndef TRUE ...
3,093
*/ #define OI_BIT_TEST(x,y) ((x) & (y)) /** This macro's value is TRUE if the bit specified by y is not set in data item x. */ #define OI_BIT_CLEAR_TEST(x,y) (((x) & (y)) == 0) /** This macro sets the bit specified by y in data item x. */ #define OI_BIT_SET(x,y) ((x) |= (y)) /** This macro clears the bit spec...
3,093
/ #ifndef OI_STRING_H #define OI_STRING_H /** / $Revision: #1 $ / #include "oi_cpu_dep.h" #include "oi_stddefs.h" #if defined(USE_NATIVE_MEMCPY) || defined(USE_NATIVE_MALLOC) #include #endif /** \addtogroup Misc Miscellaneous APIs */ /**@{*/ #ifdef __cplusplus extern "C" { #endif /* */ #ifdef USE_NATIVE_MALL...
3,094
/ #ifndef _OI_BT_SPEC_H #define _OI_BT_SPEC_H /** / $Revision: #1 $ / #include "oi_stddefs.h" /** \addtogroup Misc Miscellaneous APIs */ /**@{*/ #ifdef __cplusplus extern "C" { #endif /** The maximum number of active slaves in a piconet. */ #define OI_BT_MAX_ACTIVE_SLAVES 7 /** the number of bytes in a Bluetoot...
3,095
) */ typedef struct { OI_UINT8 pin[OI_BT_PIN_CODE_SIZE] ; /**< PIN represented as an array of 8-bit values */ } OI_PIN_CODE ; /** maximum number of SCO connections per device, which is 3 as of version 2.0+EDR of the Bluetooth specification (see sec 4.3 of vol 2 part B) */ #define OI_BT_MAX_SCO_CONNECTIONS ...
3,095
*/ #define OI_BT_DEV_CLASS_MAJOR_SERVICE_MASK 0xFFE000 /**< Bits 13-23 contain major service class value. */ /** There is currently only one device class format defined, type 00. */ #define OI_BT_DEV_CLASS_FORMAT_TYPE 00 /** Bit 13 in device class indicates limited discoverability mode (GAP v2.0+EDR, secti...
3,095
/ #ifndef _OI_MODULES_H #define _OI_MODULES_H /** / $Revision: #1 $ / /** \addtogroup Misc Miscellaneous APIs */ /**@{*/ #ifdef __cplusplus extern "C" { #endif /** */ typedef enum { /* profiles and protocols --> Updates to oi_debug.c and oi_config_table.c */ /* XX --> Keep Enum values up-to-date! ...
3,096
/ #ifndef _OI_COMMON_H #define _OI_COMMON_H /** */ / $Revision: #1 $ / #include "oi_bt_spec.h" #include "oi_stddefs.h" #include "oi_status.h" #include "oi_time.h" #include "oi_osinterface.h" // #endif /* _OI_COMMON_H */
3,097
/ / #ifndef AVRC_INT_H #define AVRC_INT_H #include "avct_defs.h" #include "stack/avrc_api.h" #if (AVRC_INCLUDED == TRUE) /* DEBUG FLAGS */ / ** Constants / /* Number of attributes in AVRC SDP record. */ #define AVRC_NUM_ATTR 6 /* Number of protocol elements in protocol element list. */ #define ...
3,098
h */ #define AVRC_CO_ID_TO_BE_STREAM(p, u32) {*(p)++ = (UINT8)((u32) >> 16); *(p)++ = (UINT8)((u32) >> 8); *(p)++ = (UINT8)(u32); } #define AVRC_BE_STREAM_TO_CO_ID(u32, p) {u32 = (((UINT32)(*((p) + 2))) + (((UINT32)(*((p) + 1))) offset + 2;} #define AVRC_MAX_CTRL_DATA_LEN (AVRC_PACKET_LEN) / ** Type definitions...
3,098
/ / #ifndef BTM_BLE_INT_H #define BTM_BLE_INT_H #include "common/bt_target.h" #include "osi/fixed_queue.h" #include "osi/pkt_queue.h" #include "osi/thread.h" #include "stack/hcidefs.h" #include "stack/btm_ble_api.h" #include "btm_int.h" #if BLE_INCLUDED == TRUE && SMP_INCLUDED == TRUE #include "stack/smp_api.h" #en...
3,099
25 ms= 0x0010 * 0.625 ms */ #define BTM_BLE_GAP_DISC_SCAN_WIN 18 /* scan_window = 11.25 ms= 0x0010 * 0.625 ms */ #define BTM_BLE_GAP_ADV_INT 512 /* Tgap(gen_disc) = 1.28 s= 512 * 0.625 ms */ #define BTM_BLE_GAP_LIM_TOUT 180 /* Tgap(lim_timeout) = 180s max */ #define BTM_B...
3,099
625 ms */ #define BTM_BLE_GAP_FAST_ADV_TOUT 30 #define BTM_BLE_SEC_REQ_ACT_NONE 0 #define BTM_BLE_SEC_REQ_ACT_ENCRYPT 1 /* encrypt the link using current key or key refresh */ #define BTM_BLE_SEC_REQ_ACT_PAIR 2 #define BTM_BLE_SEC_REQ_ACT_DISCARD 3 /* discard the sec request...
3,099
(We do not */ /* want to flood the caller with multiple responses from */ /* the same device. */ BOOLEAN scan_rsp; tBLE_BD_ADDR le_bda; } tINQ_LE_BDADDR; #define BTM_BLE_ADV_DATA_LEN_MAX 31 #define BTM_BLE_CACHE_ADV_DATA_MAX 62 #if (B...
3,099
1, do not support privacy 1.0 */ #define BTM_PRIVACY_1_2 2 /* BLE privacy 1.2 */ #define BTM_PRIVACY_MIXED 3 /* BLE privacy mixed mode, broadcom propietary mode */ typedef UINT8 tBTM_PRIVACY_MODE; /* data length change event callback */ typedef void (tBTM_DATA_LENGTH_CHANGE_CBACK) (UINT...
3,099
2 mixed mode is on or not */ tBTM_PRIVACY_MODE privacy_mode; /* privacy mode */ UINT8 resolving_list_avail_size; /* resolving list available size */ tBTM_BLE_RESOLVE_Q resolving_list_pend_q; /* Resolving list queue */ tBTM_BLE_RL_STATE suspended_rl_state; /* Suspended resolving list state */ UINT8 *...
3,099
c */ #if SMP_INCLUDED == TRUE void btm_ble_link_sec_check(BD_ADDR bd_addr, tBTM_LE_AUTH_REQ auth_req, tBTM_BLE_SEC_REQ_ACT *p_sec_req_act); void btm_ble_ltk_request_reply(BD_ADDR bda, BOOLEAN use_stk, BT_OCTET16 stk); UINT8 btm_proc_smp_cback(tSMP_EVT event, BD_ADDR bd_addr, tSMP_EVT_DATA *p_data); tBTM_STATUS btm_ble...
3,099
/ / #ifndef BTM_INT_H #define BTM_INT_H typedef struct tBTM_SEC_DEV_REC tBTM_SEC_DEV_REC; #include "common/bt_defs.h" #include "common/bt_target.h" #include "stack/hcidefs.h" #include "stack/rfcdefs.h" #include "stack/btm_api.h" #include "osi/fixed_queue.h" #if (BLE_INCLUDED == TRUE) #include "btm_ble_int.h" #end...
3,100
TRUE : FALSE) #define BTM_IS_BRCM_CONTROLLER() (controller_get_interface()->get_bt_version()->manufacturer == LMP_COMPID_BROADCOM) typedef struct t_acl_db_param{ #define ACL_DB_HANDLE 0x00 #define ACL_DB_BDA 0x01 UINT8 type; void *p_data1; void *p_data2; }tACL_DB_PARAM; enum { BTM_PM_ST_ACTIVE =...
3,100
*/ #define BTM_ACL_LEGACY_AUTH_NONE (0) #define BTM_ACL_LEGACY_AUTH_SELF (1> 5)) #define BTM_ESCO_2_SCO(escotype) ((UINT16)(((escotype) & BTM_ESCO_PKT_TYPE_MASK) 0 UINT8 orig_service_name[BTM_SEC_SERVICE_NAME_LEN + 1]; UINT8 term_service_name[BTM_SEC_SERVICE_...
3,100
CONTROLLER_RPA_LIST_ENABLE)) tBLE_ADDR_TYPE current_addr_type; /* current adv addr type*/ BD_ADDR current_addr; /* current adv addr*/ bool current_addr_valid; /* current addr info is valid or not*/ #endif } tBTM_SEC_BLE; #endif /* BLE_INCLUDED */ /* Peering bond type...
3,100
(may be truncated to save space in dev_rec table) */ BD_FEATURES features[HCI_EXT_FEATURES_PAGE_MAX + 1]; /* Features supported by the device */ UINT8 num_read_pages; #define BTM_SEC_STATE_IDLE 0 #define BTM_SEC_STATE_AUTHENTICATING 1 #define BTM_SEC_STATE_ENCRYPTING ...
3,100
This will be helpful to know when peer device downgrades it's security. */ UINT16 ble_hci_handle; /* use in DUMO connection */ #define BTM_ENC_MODE_UNKNOWN 0xff UINT8 enc_mode; /* encryption mode of current link */ UINT8 enc_key_size; ...
3,100
?? limited/general/none */ } tBTM_CFG; enum { BTM_PM_SET_MODE_EVT, /* Set power mode API is called. */ BTM_PM_UPDATE_EVT, BTM_PM_RD_MODE_EVT /* Read power mode API is called. */ }; typedef UINT8 tBTM_PM_EVENT; typedef struct { UINT16 event; UINT16 len; UINT8 ...
3,100
defined(BT_TRACE_VERBOSE) || (BT_TRACE_VERBOSE == FALSE)) char state_temp_buffer[BTM_STATE_BUFFER_SIZE]; #endif } tBTM_CB; typedef struct{ //connection parameters update callback tBTM_UPDATE_CONN_PARAM_CBACK *update_conn_param_cb; }tBTM_CallbackFunc; extern tBTM_CallbackFunc conn_param_update_cb; /* security ...
3,100
c */ void btm_init (void); void btm_free (void); /* Internal functions provided by btm_inq.c */ tBTM_STATUS btm_initiate_rem_name (BD_ADDR remote_bda, tBTM_INQ_INFO *p_cur, UINT8 origin, UINT32 timeout, ...
3,100
c */ void btm_acl_free(void); void btm_acl_init (void); void btm_acl_created (BD_ADDR bda, DEV_CLASS dc, UINT8 bdn[BTM_MAX_REM_BD_NAME_LEN], UINT16 hci_handle, UINT8 link_role, tBT_TRANSPORT transport); void btm_acl_removed (BD_ADDR bda, tBT_TRANSPORT trans...
3,100
c */ void btm_sco_init (void); void btm_sco_connected (UINT8 hci_status, BD_ADDR bda, UINT16 hci_handle, tBTM_ESCO_DATA *p_esco_data); void btm_esco_proc_conn_chg (UINT8 status, UINT16 handle, UINT8 tx_interval, UINT8 retrans_window, UINT16 rx_pkt_len, ...
3,100
c */ BOOLEAN btm_dev_support_switch (BD_ADDR bd_addr); tBTM_SEC_DEV_REC *btm_sec_alloc_dev (BD_ADDR bd_addr); void btm_sec_free_dev (tBTM_SEC_DEV_REC *p_dev_rec, tBT_TRANSPORT transport); tBTM_SEC_DEV_REC *btm_find_dev (BD_ADDR bd_addr); tBTM_SEC_DEV_REC *btm_find_or_alloc_dev (BD_ADDR bd_addr); tBTM_...
3,100
/ #ifndef GATT_INT_H #define GATT_INT_H #include "common/bt_target.h" #include "common/bt_trace.h" #include "stack/gatt_api.h" #include "stack/btm_ble_api.h" #include "stack/btu.h" #include "osi/fixed_queue.h" #include #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) ((UINT16) ((((UINT8)(tcb_idx) ) > 8)) #define ...
3,101
*/ typedef struct { tGATT_SVC_DB *p_db; /* pointer to the service database */ tBT_UUID app_uuid; /* applicatino UUID */ UINT32 sdp_handle; /* primamry service SDP handle */ UINT16 service_instance; /* service instance number */ U...
3,101
c */ extern BOOLEAN gatt_disconnect (tGATT_TCB *p_tcb); extern BOOLEAN gatt_act_connect (tGATT_REG *p_reg, BD_ADDR bd_addr, tBLE_ADDR_TYPE bd_addr_type, tBT_TRANSPORT transport, BOOLEAN is_aux); extern BOOLEAN gatt_connect (BD_ADDR rem_bda, tBLE_ADDR_TYPE bd_addr_type, tGATT_TCB *p_tcb, tBT_TRANSPORT transport, BOOLEAN...
3,101
c */ extern tGATT_STATUS attp_send_cl_msg (tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, tGATT_CL_MSG *p_msg); extern BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg); extern tGATT_STATUS attp_send_sr_msg (tGATT_TCB *p_tcb, BT_HDR *p_msg); extern tGATT_STATUS attp_send_msg_to_l2cap(tG...
3,101
c */ extern BOOLEAN gatt_security_check_start(tGATT_CLCB *p_clcb); extern void gatt_verify_signature(tGATT_TCB *p_tcb, BT_HDR *p_buf); extern tGATT_SEC_ACTION gatt_determine_sec_act(tGATT_CLCB *p_clcb ); extern tGATT_STATUS gatt_get_link_encrypt_status(tGATT_TCB *p_tcb); extern tGATT_SEC_ACTION gatt_get_sec_act(tGATT_T...
3,101
/ #ifndef GAP_API_H #define GAP_API_H #include "stack/sdpdefs.h" #include "stack/profiles_api.h" #include "stack/btm_api.h" #include "stack/l2c_api.h" / ** Constants / /*** GAP Error and Status Codes ***/ #define GAP_UNSUPPORTED (GAP_ERR_GRP + 0x01) /* Unsupported call */ #define GAP_EOINQDB (GAP_ERR...
3,102
Parameters are specific ** to each event and are described below */ typedef void (tGAP_CALLBACK) (UINT16 event, void *p_data); /* Definition of the GAP_FindAddrByName results structure */ typedef struct { UINT16 status; BD_ADDR bd_addr; tBTM_BD_NAME devname; } tGAP_FINDADDR_RESULTS; typedef ...
3,102
** ** Returns handle of the connection if successful, else GAP_INVALID_HANDLE ** / extern UINT16 GAP_ConnOpen (const char *p_serv_name, UINT8 service_id, BOOLEAN is_server, BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg, tL2CAP_ERTM_INFO *ertm_inf...
3,102
** ** Parameters: handle - Handle returned in the GAP_ConnOpen ** p_rx_queue_count - Pointer to return queue count in. ** ** / extern int GAP_GetRxQueueCnt (UINT16 handle, UINT32 *p_rx_queue_count); / ** ** Function GAP_ConnBTRead ** ** Description GKI buffer aware applications ...
3,102
A data copy is made into a GKI ** buffer. ** ** Returns BT_PASS - data read ** GAP_ERR_BAD_HANDLE - invalid handle ** GAP_ERR_BAD_STATE - connection not established ** GAP_CONGESTION - system is congested *...
3,102
The "idle timeout" ** is the amount of time that a connection can remain up with ** no L2CAP channels on it. A timeout of zero means that the ** connection will be torn down immediately when the last channel ** is removed. A timeout of 0xFFFF means no...
3,102
** ** Returns UINT16 - maximum size buffer that can be transmitted to the peer ** / extern UINT16 GAP_ConnGetRemMtuSize (UINT16 gap_handle); / ** ** Function GAP_ConnGetL2CAPCid ** ** Description Returns the L2CAP channel id ** ** Parameters: handle - Handle of the connection ** ** Ret...
3,102
** ** Returns void ** / extern void GAP_Deinit(void); #if (BLE_INCLUDED == TRUE) / ** ** Function GAP_BleAttrDBUpdate ** ** Description update GAP local BLE attribute database. ** ** Returns Nothing ** / extern void GAP_BleAttrDBUpdate(UINT16 attr_uuid, tGAP_BLE_ATTR_VALUE *p_value); ...
3,102
** ** Returns TRUE if request accepted ** / extern BOOLEAN GAP_BleCancelReadPeerDevName (BD_ADDR peer_bda); #endif #endif /* GAP_API_H */
3,102
/ #ifndef BT_TYPES_H #define BT_TYPES_H #include #include #include "bt_common.h" #include "osi/semaphore.h" typedef int8_t INT8; typedef int16_t INT16; typedef int32_t INT32; #define PACKED __packed // #define INLINE __inline #define BCM_STRCPY_S(x1,x2) strcpy((x1),(x2)) #define BCM_STRNCPY_S(x1,x2,x3) s...
3,103
*/ typedef struct { uint16_t event; uint16_t len; uint16_t offset; uint16_t layer_specific; uint8_t data[]; } BT_HDR; typedef struct { uint8_t status; uint16_t opcode; osi_sem_t sync_sem; } BlE_SYNC; #define BT_...
3,103
..); /* bd addr length and type */ #ifndef BD_ADDR_LEN #define BD_ADDR_LEN 6 typedef uint8_t BD_ADDR[BD_ADDR_LEN]; #endif // From bd.c / ** Constants / /* global constant for "any" bd addr */ static const BD_ADDR bd_addr_any = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; static const BD_ADDR bd_addr_null = {0x00, 0x0...
3,103
** ** ** Returns Zero if a equals bd_addr_any. ** / static inline int bdcmpany(const BD_ADDR a) { return bdcmp(a, bd_addr_any); } / ** ** Function bdsetany ** ** Description Set bd addr to "any" bd addr. ** ** ** Returns void ** / static inline void bdsetany(BD_ADDR a) { bdcpy(a...
3,103
/ / #ifndef _GATTDEFS_H #define _GATTDEFS_H #define GATT_ILLEGAL_UUID 0 /* GATT attribute types */ #define GATT_UUID_PRI_SERVICE 0x2800 #define GATT_UUID_SEC_SERVICE 0x2801 #define GATT_UUID_INCLUDE_SERVICE 0x2802 #define GATT_UUID_CHAR_DECLARE 0x2803 /* Charact...
3,104
/ #ifndef HIDH_API_H #define HIDH_API_H #include "stack/hiddefs.h" #include "stack/sdp_api.h" #if (HID_HOST_INCLUDED == TRUE) / ** Constants / enum { HID_SDP_NO_SERV_UUID = (SDP_ILLEGAL_PARAMETER + 1), HID_SDP_MANDATORY_MISSING }; /* Attributes mask values to be used in HID_HostAddDev API */ #define HID_VI...
3,105
Data = NA HID_HDEV_EVT_CLOSE Connection with device is closed. Data=reason code. HID_HDEV_EVT_RETRYING Lost connection is being re-connected. Data=Retrial number HID_HDEV_EVT_IN_REPORT Device sent an i...
3,105
*/ UINT32 data, /* Integer data corresponding to the event.*/ BT_HDR *p_buf ); /* Pointer data corresponding to the event. */ / ** External Function Declarations / #ifdef __cplusplus extern "C" { #endif / ** ** Function HID_HostG...
3,105
** ** Returns tHID_STATUS ** / extern tHID_STATUS HID_HostAddDev (BD_ADDR addr, UINT16 attr_mask, UINT8 *handle ); / ** ** Function HID_HostGetDev ** ** Description This is called so HID-host can find this device. ** ** Returns tHID_STATUS ** / extern ...
3,105
** ** Returns void ** / extern tHID_STATUS HID_HostCloseDev(UINT8 dev_handle ); / ** Function HID_HostInit ** ** Description This function initializes the control block and trace variable ** ** Returns tHID_STATUS / extern tHID_STATUS HID_HostInit(void); / ** Function HID_HostD...
3,105
If called with ** a value of 0xFF, it simply reads the current trace level. ** ** Returns the new (current) trace level ** / extern UINT8 HID_HostSetTraceLevel (UINT8 new_level); #ifdef __cplusplus } #endif #endif ///HID_HOST_INCLUDED == TRUE #endif /* HIDH_API_H */
3,105
/* */ #ifndef L2CAP_HCI_LINK_INTERFACE_H #define L2CAP_HCI_LINK_INTERFACE_H #include "bt_common.h" 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); #endif /* L2CAP_HCI_LINK_INTERFACE_H */
3,106
/ / #ifndef SMP_API_H #define SMP_API_H #include "common/bt_target.h" #define SMP_PIN_CODE_LEN_MAX PIN_CODE_LEN #define SMP_PIN_CODE_LEN_MIN 6 // #if SMP_INCLUDED == TRUE /* SMP command code */ #define SMP_OPCODE_PAIRING_REQ 0x01 #define SMP_OPCODE_PAIRING_RSP 0x02 #define SMP_OPCODE_CON...
3,107
..)) */ #define SMP_BR_KEYS_REQ_EVT 12 /* SMP over BR keys request event */ typedef UINT8 tSMP_EVT; /* pairing failure reason code */ #define SMP_PASSKEY_ENTRY_FAIL 0x01 #define SMP_OOB_FAIL 0x02 #define SMP_PAIR_AUTH_FAIL 0x03 #define SMP_CONFIRM_VALUE_ERR 0x04 #define S...
3,107
G) - send it to the */ /* other side */ /* dhkey = P-256(private_key_used, publ key rcvd from the other side) */ tSMP_PUBLIC_KEY publ_key_used; /* P-256(private_key_used, curve_p256.G) */ } tSMP_LOC_OOB_DATA; /* the data associated with the info received from the peer via OOB interface */ typedef struct { ...
3,107
*/ typedef UINT8 (tSMP_CALLBACK) (tSMP_EVT event, BD_ADDR bd_addr, tSMP_EVT_DATA *p_data); /* callback function for CMAC algorithm */ typedef void (tCMAC_CMPL_CBACK)(UINT8 *p_mac, UINT16 tlen, UINT32 sign_counter); / ** External Function Declarations / #ifdef __cplusplus extern "C" { #endif /* API of SMP */ / ** **...
3,107
** ** Returns void ** / extern BOOLEAN SMP_Register (tSMP_CALLBACK *p_cback); / ** ** Function SMP_Pair ** ** Description This function is called to start a SMP pairing. ** ** Returns SMP_STARTED if bond started, else otherwise exception. ** / extern tSMP_STATUS SMP_Pair (BD_ADDR bd_add...
3,107
** Otherwise, SMP_REPEATED_ATTEMPTS is too many attempts. ** ** Returns None ** / extern void SMP_SecurityGrant(BD_ADDR bd_addr, UINT8 res); / ** ** Function SMP_PasskeyReply ** ** Description This function is called after Security Manager submitted ** ...
3,107
** ** Parameters: bd_addr - Address of the device with which numeric ** comparison was requested ** res - comparison result SMP_SUCCESS if success ** / extern void SMP_ConfirmReply (BD_ADDR bd_addr, UINT8 res); / ** ** Function SMP_OobDataRep...
3,107
** ** Parameters: bd_addr - Address of the device to send keypress ** notification to ** value - keypress notification parameter value ** / extern void SMP_KeypressNotification (BD_ADDR bd_addr, UINT8 value); / ** ** Function SMP_CreateLocalSec...
3,107
/ / #ifndef L2C_API_H #define L2C_API_H #include #include "common/bt_target.h" #include "stack/l2cdefs.h" #include "stack/hcidefs.h" #include "osi/fixed_queue.h" / ** Constants / /* Define the minimum offset that L2CAP needs in a buffer. This is made up of ** HCI type(1), len(2), handle(2), L2CAP len(2) and CID(...
3,108
** ** Parameters: Fixed Channel # ** Channel Callbacks and config ** ** Return value: TRUE if registered OK ** / extern BOOLEAN L2CA_RegisterFixedChannel (UINT16 fixed_cid, tL2CAP_FIXED_CHNL_REG *p_freg); / ** ** Function L2CA_ConnectFixedChnl ** ** Description Connect an fixed ...
3,108
** ** Parameters: Fixed CID ** BD Address of remote ** Idle timeout to use (or 0xFFFF if don't care) ** ** Return value: TRUE if channel removed ** / extern BOOLEAN L2CA_RemoveFixedChnl (UINT16 fixed_cid, BD_ADDR rem_bda); / ** ** Function L2CA_SetFixedChannelTout ** ...
3,108
** ** Parameters: BD Address of remote ** ** Return value: TRUE if connection was cancelled ** / extern BOOLEAN L2CA_CancelBleConnectReq (BD_ADDR rem_bda); / ** ** Function L2CA_UpdateBleConnParams ** ** Description Update BLE connection parameters. ** ** Parameters: BD Address of remote ** ...
3,108
** ** Parameters BD Address of remote ** ** Returns TRUE if disconnect successfully. ** / extern BOOLEAN L2CA_BleDisconnect (BD_ADDR rem_bda); #endif /* (BLE_INCLUDED == TRUE) */ / ** ** Function L2CA_GetDisconnectReason ** ** Description This function returns the disconnect reason code. *...
3,108
/ / #ifndef SDP_DEFS_H #define SDP_DEFS_H /* Define the service attribute IDs. */ #define ATTR_ID_SERVICE_RECORD_HDL 0x0000 #define ATTR_ID_SERVICE_CLASS_ID_LIST 0x0001 #define ATTR_ID_SERVICE_RECORD_STATE 0x0002 #define ATTR_ID_SERVICE_ID 0x0003 #define ATTR_I...
3,109
3 */ #define DI_VENDOR_ID_DEFAULT 0xFFFF #define DI_VENDOR_ID_SOURCE_BTSIG 0x0001 #define DI_VENDOR_ID_SOURCE_USBIF 0x0002 #define ATTR_ID_IP_SUBNET 0x0200 /* PAN Profile (***) */ #define ATTR_ID_VERSION_NUMBER_LIST 0x0200 #define ATTR_...
3,109
2 */ #define UUID_SERVCLASS_PNP_INFORMATION 0X1200 /* Device Identification */ #define UUID_SERVCLASS_GENERIC_NETWORKING 0X1201 #define UUID_SERVCLASS_GENERIC_FILETRANSFER 0X1202 #define UUID_SERVCLASS_GENERIC_AUDIO 0X1203 #define UUID_SERVCLASS_GENERIC_TELEPHONY 0X1204 #define UUI...
3,109
*/ #define NULL_DESC_TYPE 0 #define UINT_DESC_TYPE 1 #define TWO_COMP_INT_DESC_TYPE 2 #define UUID_DESC_TYPE 3 #define TEXT_STR_DESC_TYPE 4 #define BOOLEAN_DESC_TYPE 5 #define DATA_ELE_SEQ_DESC_TYPE ...
3,109
These define ovelapping attribute values */ #define ATTR_ID_VERS_OR_GRP_OR_DRELNUM_OR_IPSUB_OR_SPECID 0x0200 #define ATTR_ID_VEND_ID_OR_SERVICE_DB_STATE_OR_PARSE_VER 0x0201 #define ATTR_ID_PROD_ID_OR_HID_DEV_SUBCLASS 0x0202 #define ATTR_ID_PROD_VER_OR_HID_COUNTRY_CODE 0x0203 #defin...
3,109
/ / #ifndef BTM_BLE_API_H #define BTM_BLE_API_H #include "common/bt_defs.h" #include "stack/btm_api.h" #include "common/bt_common_types.h" #define CHANNEL_MAP_LEN 5 typedef UINT8 tBTM_BLE_CHNL_MAP[CHANNEL_MAP_LEN]; /* 0x00-0x04 only used for set advertising parameter command */ #define BTM_BLE_CONNECT_EVT 0x...
3,110
((MAX_ACL_CONNECTIONS + 1) * 4) : 12) /* recommended max: BTM_BLE_CONN_INT_MAX_DEF * 1.25 ms*/ #endif #endif /* default slave latency */ #ifndef BTM_BLE_CONN_SLAVE_LATENCY_DEF #define BTM_BLE_CONN_SLAVE_LATENCY_DEF 0 /* 0 */ #endif /* default supervision timeout */ #ifndef BTM_BLE_CONN_TIMEOUT_DEF #define...
3,110
The pointer contains the address of any returned data. */ typedef void (tBTM_RAND_ENC_CB) (tBTM_RAND_ENC *p1); #define BTM_BLE_FILTER_TARGET_SCANNER 0x01 #define BTM_BLE_FILTER_TARGET_ADVR 0x00 #define BTM_BLE_POLICY_BLACK_ALL 0x00 /* relevant to both */ #define BTM_BLE_POLICY_ALLOW_SCAN...
3,110
h */ #define BTM_BLE_AD_TYPE_FLAG HCI_EIR_FLAGS_TYPE /* 0x01 */ #define BTM_BLE_AD_TYPE_16SRV_PART HCI_EIR_MORE_16BITS_UUID_TYPE /* 0x02 */ #define BTM_BLE_AD_TYPE_16SRV_CMPL HCI_EIR_COMPLETE_16BITS_UUID_TYPE /* 0x03 */ #define BTM_BLE_AD_TYPE_32SRV_PART ...
3,110
*/ #define BTM_BLE_DATA_SIZE_MAX 0x00fb #define BTM_BLE_DATA_SIZE_MIN 0x001b /* Preferred maximum number of microseconds that the local Controller should use to transmit a single Link Layer Data Channel PDU. */ #define BTM_BLE_DATA_TX_TIME_MIN 0x0148 #if (BLE_50_FEATURE_SUPPORT == TRUE) #define BTM_B...
3,110
It ** is returned in the results callback if registered. */ typedef struct { UINT8 conn_mode; tBTM_BLE_AD_MASK ad_mask; /* mask of the valid adv data field */ UINT8 flag; UINT8 tx_power_level; UINT8 remote_name_len; UINT8 ...
3,110
0, Vol 2, Part E, 7.7.65.13 */ // #define BTM_BLE_LEGACY_ADV_TYPE_IND (0x13) // #define BTM_BLE_LEGACY_ADV_TYPE_DIRECT_IND (0x15) // #define BTM_BLE_LEGACY_ADV_TYPE_SCAN_IND (0x12) // #define BTM_BLE_LEGACY_ADV_TYPE_NONCON_IND (0x10) // #define BTM_BLE_LEGACY_ADV_TYP...
3,110
This function will be normally called ** during host startup to restore all required information ** for a LE device stored in the NVRAM. ** ** Parameters: bd_addr - BD address of the peer ** bd_name - Name of the peer device. NULL if unknown. ...
3,110
** key_type - LE SMP key type. ** / //extern BOOLEAN BTM_SecAddBleKey (BD_ADDR bd_addr, tBTM_LE_KEY_VALUE *p_le_key, tBTM_LE_KEY_TYPE key_type); / ** ** Function BTM_BleSetAdvParams ** ** Description This function is called to set advertising parameters....
3,110
** ** Parameters: None. ** ** Returns status ** / tBTM_STATUS BTM_BleStartAdv(void); / ** ** Function BTM_BleWriteAdvData ** ** Description This function is called to write advertising data. ** ** Parameters: None. ** ** Returns void ** / //extern tBTM_STATUS BTM_BleWriteAd...
3,110
** / //extern tBTM_STATUS BTM_BleWriteAdvDataRaw(UINT8 *p_raw_adv, UINT32 raw_adv_len); tBTM_STATUS BTM_BleSetRandAddress(BD_ADDR rand_addr); void BTM_BleClearRandAddress(void); / ** ** Function BTM_BleSetAdvParams ** ** Description This function is called to set advertising parameters. ** ** Paramet...
3,110
** ** Parameters client_if - Client IF value ** scan_interval - Scan interval ** scan_window - Scan window ** scan_type - Scan type ** scan_setup_status_cback - Scan setup status callback ** ** Returns void ** / //extern void BTM_BleSet...
3,110
** ** Parameters UINT8 batch_scan_full_max -Batch scan full maximum UINT8 batch_scan_trunc_max - Batch scan truncated value maximum UINT8 batch_scan_notify_threshold - Threshold value tBTM_BLE_SCAN_SETUP_CBACK *p_setup_cback - Setup callback ...
3,110
** ** Parameters: p_scan_rsp: scan response. ** ** Returns status ** / //extern tBTM_STATUS BTM_BleWriteScanRsp(tBTM_BLE_AD_MASK data_mask, tBTM_BLE_ADV_DATA *p_data); / ** ** Function BTM_BleWriteScanRspRaw ** ** Description This function is called to write ...
3,110
** ** Parameters start: start or stop scan. ** ** Returns void ** / //extern tBTM_STATUS BTM_BleScan(BOOLEAN start, UINT32 duration, tBTM_INQ_RESULTS_CB *p_results_cb, tBTM_CMPL_CB *p_cmpl_cb, tBTM_INQ_DIS_CB *p_discard_cb); / ** ** Function BTM_GetDeviceIDRoot ** **...
3,110
** ** Parameters bd_addr - peer device bd address. ** res - result of the operation BTM_SUCCESS if success. ** Otherwise, BTM_REPEATED_ATTEMPTS is too many attempts. ** ** Returns None ** / //extern void BTM_SecurityGrant(BD_ADDR bd_addr, UINT8 res); / **...
3,110
** ** Parameters: bd_addr - Address of the device with which numeric ** comparison was requested ** res - comparison result BTM_SUCCESS if success ** / //extern void BTM_BleConfirmReply (BD_ADDR bd_addr, UINT8 res); / ** ** Function BTM_LeOob...
3,110
** ** Parameter bd_addr: target device the data to be signed for. ** p_text: singing data ** len: length of the signing data ** signature: output parameter where data signature is going to ** be stored. ** ** Returns TRUE if...
3,110
** / //extern BOOLEAN BTM_BleVerifySignature (BD_ADDR bd_addr, UINT8 *p_orig, UINT16 len, UINT32 counter, UINT8 *p_comp); / ** ** Function BTM_ReadConnectionAddr ** ** Description This function is called to set the local device random addres...
3,110
** ** Parameters: key_type: type of key, can be BTM_BLE_KEY_TYPE_ID, BTM_BLE_KEY_TYPE_ER ** or BTM_BLE_KEY_TYPE_COUNTER. ** p_key: pointer to the key. ** / //extern void BTM_BleLoadLocalKeys(UINT8 key_type, tBTM_BLE_LOCAL_KEYS *p_key); / ** ** Function BTM_Ble...
3,110