Home
last modified time | relevance | path

Searched refs:pdu (Results 1 – 23 of 23) sorted by relevance

/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Davrc_defs.h949 UINT8 pdu; member
957 UINT8 pdu; member
965 UINT8 pdu; member
974 UINT8 pdu; member
983 UINT8 pdu; member
992 UINT8 pdu; member
1002 UINT8 pdu; member
1011 UINT8 pdu; member
1019 UINT8 pdu; member
1028 UINT8 pdu; member
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/avrc/
Dbtc_avrc.c30 static UINT8 opcode_from_pdu(UINT8 pdu);
31 static void send_reject_response (UINT8 rc_handle, UINT8 label, UINT8 pdu, UINT8 status);
300 rc_handle, label, code, p_meta_rsp->rsp.pdu); in send_metamsg_rsp()
319 if ((p_meta_rsp->rsp.pdu == AVRC_PDU_REGISTER_NOTIFICATION) && (code == AVRC_RSP_CHANGED)) { in send_metamsg_rsp()
357 static UINT8 opcode_from_pdu(UINT8 pdu) in opcode_from_pdu() argument
361 switch (pdu) { in opcode_from_pdu()
376 static void send_reject_response (UINT8 rc_handle, UINT8 label, UINT8 pdu, UINT8 status) in send_reject_response() argument
383 avrc_rsp.rsp.opcode = opcode_from_pdu(pdu); in send_reject_response()
384 avrc_rsp.rsp.pdu = pdu; in send_reject_response()
389 __FUNCTION__, rc_handle, dump_rc_pdu(pdu), status); in send_reject_response()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dcrypto.c22 #define NET_MIC_LEN(pdu) (((pdu)[1] & 0x80) ? 8 : 4) argument
516 static void create_proxy_nonce(uint8_t nonce[13], const uint8_t *pdu, in create_proxy_nonce() argument
526 nonce[2] = pdu[2]; in create_proxy_nonce()
527 nonce[3] = pdu[3]; in create_proxy_nonce()
528 nonce[4] = pdu[4]; in create_proxy_nonce()
531 nonce[5] = pdu[5]; in create_proxy_nonce()
532 nonce[6] = pdu[6]; in create_proxy_nonce()
543 static void create_net_nonce(uint8_t nonce[13], const uint8_t *pdu, in create_net_nonce() argument
550 nonce[1] = pdu[1]; in create_net_nonce()
553 nonce[2] = pdu[2]; in create_net_nonce()
[all …]
Dnet.c41 #define IVI(pdu) ((pdu)[0] >> 7) argument
42 #define NID(pdu) ((pdu)[0] & 0x7f) argument
43 #define CTL(pdu) ((pdu)[1] >> 7) argument
44 #define TTL(pdu) ((pdu)[1] & 0x7f) argument
45 #define SEQ(pdu) (sys_get_be24(&(pdu)[2])) argument
46 #define SRC(pdu) (sys_get_be16(&(pdu)[5])) argument
47 #define DST(pdu) (sys_get_be16(&(pdu)[7])) argument
111 struct net_buf_simple *pdu) in msg_cache_match() argument
116 if (msg_cache[i].src == SRC(pdu->data) && in msg_cache_match()
117 msg_cache[i].seq == (SEQ(pdu->data) & BIT_MASK(17))) { in msg_cache_match()
Dproxy_client.h103 struct bt_mesh_proxy_cfg_pdu *pdu);
Dprov.c1188 uint8_t pdu[25] = {0}; in prov_data() local
1216 err = bt_mesh_prov_decrypt(session_key, nonce, data, pdu); in prov_data()
1232 net_idx = sys_get_be16(&pdu[16]); in prov_data()
1233 flags = pdu[18]; in prov_data()
1234 iv_index = sys_get_be32(&pdu[19]); in prov_data()
1235 addr = sys_get_be16(&pdu[23]); in prov_data()
1256 err = bt_mesh_provision(pdu, net_idx, flags, iv_index, addr, dev_key); in prov_data()
Dproxy_client.c936 struct bt_mesh_proxy_cfg_pdu *pdu) in bt_mesh_proxy_client_cfg_send() argument
940 … if (conn_handle >= BLE_MESH_MAX_CONN || !pdu || pdu->opcode > BLE_MESH_PROXY_CFG_FILTER_REMOVE) { in bt_mesh_proxy_client_cfg_send()
963 return send_proxy_cfg(conn, net_idx, pdu); in bt_mesh_proxy_client_cfg_send()
Dprovisioner_prov.c2388 uint8_t pdu[25] = {0}; local
2415 memcpy(pdu, netkey, 16);
2416 sys_put_be16(prov_ctx.fast_prov.net_idx, &pdu[16]);
2417 pdu[18] = prov_ctx.fast_prov.flags;
2418 sys_put_be32(prov_ctx.fast_prov.iv_index, &pdu[19]);
2425 memcpy(pdu, netkey, 16);
2426 sys_put_be16(prov_ctx.curr_net_idx, &pdu[16]);
2427 pdu[18] = prov_ctx.curr_flags;
2428 sys_put_be32(prov_ctx.curr_iv_index, &pdu[19]);
2455 sys_put_be16(prev_addr, &pdu[23]);
[all …]
Dcrypto.h132 int bt_mesh_net_obfuscate(uint8_t *pdu, uint32_t iv_index,
/hal_espressif-latest/components/bt/host/bluedroid/stack/avrc/
Davrc_pars_ct.c60 BE_STREAM_TO_UINT8 (p_result->pdu, p); in avrc_pars_vendor_rsp()
63 …rc_pars_vendor_rsp() ctype:0x%x pdu:0x%x, len:%d/0x%x", p_msg->hdr.ctype, p_result->pdu, len, len); in avrc_pars_vendor_rsp()
69 switch (p_result->pdu) { in avrc_pars_vendor_rsp()
148 p_result->pdu = (UINT8)id; in AVRC_ParsResponse()
Davrc_bld_ct.c131 UINT8 opcode = avrc_opcode_from_pdu(p_cmd->pdu); in avrc_bld_init_cmd_buffer()
132 AVRC_TRACE_API("avrc_bld_init_cmd_buffer: pdu=%x, opcode=%x", p_cmd->pdu, opcode); in avrc_bld_init_cmd_buffer()
158 *p_data++ = p_cmd->pdu; in avrc_bld_init_cmd_buffer()
273 AVRC_TRACE_API("AVRC_BldCommand: pdu=%x status=%x", p_cmd->cmd.pdu, p_cmd->cmd.status); in AVRC_BldCommand()
290 switch (p_cmd->pdu) { in AVRC_BldCommand()
Davrc_pars_tg.c64 p_result->pdu = *p++; in avrc_pars_vendor_cmd()
65 AVRC_TRACE_DEBUG("avrc_pars_vendor_cmd() pdu:0x%x", p_result->pdu); in avrc_pars_vendor_cmd()
66 if (!AVRC_IsValidAvcType (p_result->pdu, p_msg->hdr.ctype)) { in avrc_pars_vendor_cmd()
81 switch (p_result->pdu) { in avrc_pars_vendor_cmd()
294 p_result->pdu = (UINT8)id; in AVRC_ParsCommand()
Davrc_utils.c197 UINT8 avrc_opcode_from_pdu(UINT8 pdu) in avrc_opcode_from_pdu() argument
201 switch (pdu) { in avrc_opcode_from_pdu()
Davrc_bld_tg.c698 AVRC_TRACE_API("avrc_bld_rejected_rsp: status=%d, pdu:x%x", p_rsp->status, p_rsp->pdu); in avrc_bld_rejected_rsp()
725 UINT8 opcode = avrc_opcode_from_pdu(p_rsp->pdu); in avrc_bld_init_rsp_buffer()
727 AVRC_TRACE_API("avrc_bld_init_rsp_buffer: pdu=%x, opcode=%x/%x", p_rsp->pdu, opcode, in avrc_bld_init_rsp_buffer()
758 *p_data++ = p_rsp->pdu; in avrc_bld_init_rsp_buffer()
811 AVRC_TRACE_API("AVRC_BldResponse: pdu=%x status=%x", p_rsp->rsp.pdu, p_rsp->rsp.status); in AVRC_BldResponse()
816 switch (p_rsp->pdu) { in AVRC_BldResponse()
819 status = avrc_bld_group_navigation_rsp(p_rsp->pdu, p_pkt); in AVRC_BldResponse()
Davrc_api.c232 rej_rsp.pdu = AVRC_PDU_REQUEST_CONTINUATION_RSP; in avrc_send_continue_frag()
486 avrc_cmd.pdu = AVRC_PDU_REQUEST_CONTINUATION_RSP; in avrc_proc_far_msg()
/hal_espressif-latest/components/bt/host/bluedroid/stack/avrc/include/
Davrc_int.h147 extern BT_HDR *avrc_alloc_ctrl_pkt (UINT8 pdu);
149 extern UINT8 avrc_opcode_from_pdu(UINT8 pdu);
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/nimble_host/
Dmesh_bearer_adapt.c1139 struct gatts_incl pdu = {0}; in bt_mesh_gatts_attr_read_included() local
1143 pdu.start_handle = sys_cpu_to_le16(incl->handle); in bt_mesh_gatts_attr_read_included()
1144 value_len = sizeof(pdu.start_handle) + sizeof(pdu.end_handle); in bt_mesh_gatts_attr_read_included()
1151 pdu.uuid16 = sys_cpu_to_le16(BLE_MESH_UUID_16(uuid)->val); in bt_mesh_gatts_attr_read_included()
1152 value_len += sizeof(pdu.uuid16); in bt_mesh_gatts_attr_read_included()
1155 return bt_mesh_gatts_attr_read(conn, attr, buf, len, offset, &pdu, value_len); in bt_mesh_gatts_attr_read_included()
1189 struct gatts_chrc pdu = {0}; in bt_mesh_gatts_attr_read_chrc() local
1192 pdu.properties = chrc->properties; in bt_mesh_gatts_attr_read_chrc()
1203 pdu.value_handle = 0x0000; in bt_mesh_gatts_attr_read_chrc()
1205 pdu.value_handle = sys_cpu_to_le16(next->handle); in bt_mesh_gatts_attr_read_chrc()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/
Dmesh_bearer_adapt.c775 struct gatts_incl pdu = {0}; in bt_mesh_gatts_attr_read_included() local
779 pdu.start_handle = sys_cpu_to_le16(incl->handle); in bt_mesh_gatts_attr_read_included()
780 value_len = sizeof(pdu.start_handle) + sizeof(pdu.end_handle); in bt_mesh_gatts_attr_read_included()
787 pdu.uuid16 = sys_cpu_to_le16(BLE_MESH_UUID_16(uuid)->val); in bt_mesh_gatts_attr_read_included()
788 value_len += sizeof(pdu.uuid16); in bt_mesh_gatts_attr_read_included()
791 return bt_mesh_gatts_attr_read(conn, attr, buf, len, offset, &pdu, value_len); in bt_mesh_gatts_attr_read_included()
825 struct gatts_chrc pdu = {0}; in bt_mesh_gatts_attr_read_chrc() local
828 pdu.properties = chrc->properties; in bt_mesh_gatts_attr_read_chrc()
839 pdu.value_handle = 0x0000; in bt_mesh_gatts_attr_read_chrc()
841 pdu.value_handle = sys_cpu_to_le16(next->handle); in bt_mesh_gatts_attr_read_chrc()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/include/btc/
Dbtc_util.h35 const char *dump_rc_pdu(UINT8 pdu);
/hal_espressif-latest/components/bt/host/bluedroid/btc/core/
Dbtc_util.c102 const char *dump_rc_pdu(UINT8 pdu) in dump_rc_pdu() argument
104 switch (pdu) { in dump_rc_pdu()
/hal_espressif-latest/components/bt/host/bluedroid/bta/av/
Dbta_av_act.c711 UINT8 u8, pdu, *p; in bta_av_proc_meta_cmd() local
717 pdu = *(p_vendor->p_vendor_data); in bta_av_proc_meta_cmd()
718 p_rc_rsp->pdu = pdu; in bta_av_proc_meta_cmd()
727 } else if (!AVRC_IsValidAvcType(pdu, p_vendor->hdr.ctype) ) { in bta_av_proc_meta_cmd()
728 APPL_TRACE_DEBUG("Invalid pdu/ctype: 0x%x, %d", pdu, p_vendor->hdr.ctype); in bta_av_proc_meta_cmd()
733 switch (pdu) { in bta_av_proc_meta_cmd()
782 APPL_TRACE_WARNING("%s unhandled RC vendor PDU: 0x%x", __FUNCTION__, pdu); in bta_av_proc_meta_cmd()
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_prov.c2227 struct bt_mesh_proxy_cfg_pdu pdu = { in btc_ble_mesh_prov_call_handler() local
2236 arg->proxy_client_set_filter_type.net_idx, &pdu); in btc_ble_mesh_prov_call_handler()
2240 struct bt_mesh_proxy_cfg_pdu pdu = { in btc_ble_mesh_prov_call_handler() local
2250 arg->proxy_client_add_filter_addr.net_idx, &pdu); in btc_ble_mesh_prov_call_handler()
2254 struct bt_mesh_proxy_cfg_pdu pdu = { in btc_ble_mesh_prov_call_handler() local
2264 arg->proxy_client_remove_filter_addr.net_idx, &pdu); in btc_ble_mesh_prov_call_handler()
/hal_espressif-latest/components/bt/esp_ble_mesh/
DKconfig.in314 and other proxy pdu transmission.