diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-18 12:33:36 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-18 12:33:36 -0700 |
commit | df80be9c61d95402976d3349acf62630044c1939 (patch) | |
tree | 349da246fb6e13f859797242e67a4355a9fbd0ea /host/lib/usrp/usrp2/fw_common.h | |
parent | e16adfd201a4a51d9fbd7e1be45cd8d9b33177f5 (diff) | |
parent | a950a544f5c3beb7430a0748b7e76fd6cb713514 (diff) | |
download | uhd-df80be9c61d95402976d3349acf62630044c1939.tar.gz uhd-df80be9c61d95402976d3349acf62630044c1939.tar.bz2 uhd-df80be9c61d95402976d3349acf62630044c1939.zip |
Merge branch 'i2c_resize' into pre_merge
Diffstat (limited to 'host/lib/usrp/usrp2/fw_common.h')
-rw-r--r-- | host/lib/usrp/usrp2/fw_common.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/fw_common.h b/host/lib/usrp/usrp2/fw_common.h index 75f5b1779..242d268ec 100644 --- a/host/lib/usrp/usrp2/fw_common.h +++ b/host/lib/usrp/usrp2/fw_common.h @@ -32,9 +32,13 @@ extern "C" { #define _SINS_ #endif +// define limits on bytes per udp packet +#define USRP2_MTU_BYTES 1500 +#define USRP2_UDP_BYTES ((USRP2_MTU_BYTES) - (2 + 14 + 20 + 8)) //size of headers (pad, eth, ip, udp) + //defines the protocol version in this shared header //increment this value when the protocol is changed -#define USRP2_PROTO_VERSION 3 +#define USRP2_PROTO_VERSION 4 //used to differentiate control packets over data port #define USRP2_INVALID_VRT_HEADER 0 @@ -102,7 +106,7 @@ typedef struct{ struct { _SINS_ uint8_t addr; _SINS_ uint8_t bytes; - _SINS_ uint8_t data[sizeof(_SINS_ uint32_t)]; + _SINS_ uint8_t data[20]; } i2c_args; struct { _SINS_ uint32_t addr; |