Lines Matching defs:p_msg
37 ** Description Compose a VENDOR DEPENDENT command according to p_msg
40 ** p_msg: Pointer to VENDOR DEPENDENT message structure.
46 ** NULL if p_msg is NULL.
49 static BT_HDR * avrc_vendor_msg(tAVRC_MSG_VENDOR *p_msg)
54 WC_ASSERT(p_msg != NULL);
57 WC_ASSERT(AVRC_META_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len));
60 WC_ASSERT(AVRC_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len));
66 *p_data++ = (p_msg->hdr.ctype & AVRC_CTYPE_MASK);
67 *p_data++ = (p_msg->hdr.subunit_type << AVRC_SUBTYPE_SHIFT) | p_msg->hdr.subunit_id;
69 AVRC_CO_ID_TO_BE_STREAM(p_data, p_msg->company_id);
70 if(p_msg->vendor_len && p_msg->p_vendor_data)
72 memcpy(p_data, p_msg->p_vendor_data, p_msg->vendor_len);
74 p_cmd->len = (UINT16) (p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset);
181 ** p_msg: Pointer to VENDOR DEPENDENT message structure.
190 UINT16 AVRC_VendorCmd(UINT8 handle, UINT8 label, tAVRC_MSG_VENDOR *p_msg)
192 BT_HDR *p_buf = avrc_vendor_msg(p_msg);
216 ** p_msg: Pointer to VENDOR DEPENDENT message structure.
225 UINT16 AVRC_VendorRsp(UINT8 handle, UINT8 label, tAVRC_MSG_VENDOR *p_msg)
227 BT_HDR *p_buf = avrc_vendor_msg(p_msg);