From f164e23fa079a971417c0e611bc631e3bc4790fd Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Wed, 30 Dec 2015 19:43:28 -0800 Subject: n230: Output interface ID in echo request --- firmware/usrp3/include/fw_comm_protocol.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/usrp3/include') diff --git a/firmware/usrp3/include/fw_comm_protocol.h b/firmware/usrp3/include/fw_comm_protocol.h index 5f0fc0768..14adb33a9 100644 --- a/firmware/usrp3/include/fw_comm_protocol.h +++ b/firmware/usrp3/include/fw_comm_protocol.h @@ -54,6 +54,8 @@ extern "C" { #define FW_COMM_GENERATE_ID(prod) ((((uint32_t) FW_COMM_PROTOCOL_SIGNATURE) << 0) | \ (((uint32_t) prod) << 16) | \ (((uint32_t) FW_COMM_PROTOCOL_VERSION) << 24)) + +#define FW_COMM_GET_PROTOCOL_SIG(id) ((uint16_t)(id & 0xFFFF)) #define FW_COMM_GET_PRODUCT_ID(id) ((uint8_t)(id >> 16)) #define FW_COMM_GET_PROTOCOL_VER(id) ((uint8_t)(id >> 24)) @@ -90,6 +92,7 @@ bool process_fw_comm_protocol_pkt( const fw_comm_pkt_t* request, fw_comm_pkt_t* response, uint8_t product_id, + uint32_t iface_id, poke32_func poke_callback, peek32_func peek_callback ); -- cgit v1.2.3