aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/usrp3/include
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2015-12-30 19:43:28 -0800
committerAshish Chaudhari <ashish@ettus.com>2016-01-05 17:35:14 -0800
commitf164e23fa079a971417c0e611bc631e3bc4790fd (patch)
tree640a6e0fc580a30a56d019b68d26cba16503f8ac /firmware/usrp3/include
parentaea284abb908575c388484c0b1a46c5100b09718 (diff)
downloaduhd-f164e23fa079a971417c0e611bc631e3bc4790fd.tar.gz
uhd-f164e23fa079a971417c0e611bc631e3bc4790fd.tar.bz2
uhd-f164e23fa079a971417c0e611bc631e3bc4790fd.zip
n230: Output interface ID in echo request
Diffstat (limited to 'firmware/usrp3/include')
-rw-r--r--firmware/usrp3/include/fw_comm_protocol.h3
1 files changed, 3 insertions, 0 deletions
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
);