diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-14 17:34:51 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-17 18:19:39 -0700 |
commit | e2bde1a9a38be9ca6c3bf3979d31c6a67904ab9a (patch) | |
tree | ddcba8005b04454f6efcac9c8312cdc6b450eef0 /host/lib/usrp/usrp2/fw_common.h | |
parent | 1db016bc6503cdca76025f131773e550bd895d48 (diff) | |
download | uhd-e2bde1a9a38be9ca6c3bf3979d31c6a67904ab9a.tar.gz uhd-e2bde1a9a38be9ca6c3bf3979d31c6a67904ab9a.tar.bz2 uhd-e2bde1a9a38be9ca6c3bf3979d31c6a67904ab9a.zip |
usrp2: enlarged the i2c transaction size, rev-ed the firmware protocol number, added constants for packet sizes
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; |