diff options
author | root <root@usrp1-e.(none)> | 2010-02-23 02:06:59 +0000 |
---|---|---|
committer | root <root@usrp1-e.(none)> | 2010-02-23 02:06:59 +0000 |
commit | fa35b710c09d7cb4a410313fd24d0ea2aa4172a3 (patch) | |
tree | 48628309e22ad4e8e0afcc00873f86de9c32eaf9 /host/apps/omap_debug/usrp1-e-read.c | |
parent | be576635cbba32bec56974fc24f5ae859f6722da (diff) | |
download | uhd-fa35b710c09d7cb4a410313fd24d0ea2aa4172a3.tar.gz uhd-fa35b710c09d7cb4a410313fd24d0ea2aa4172a3.tar.bz2 uhd-fa35b710c09d7cb4a410313fd24d0ea2aa4172a3.zip |
Initial checkin of u1e testing code. Some of these may not be really
useful anymore.
Diffstat (limited to 'host/apps/omap_debug/usrp1-e-read.c')
-rw-r--r-- | host/apps/omap_debug/usrp1-e-read.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp1-e-read.c b/host/apps/omap_debug/usrp1-e-read.c new file mode 100644 index 000000000..c28f018d5 --- /dev/null +++ b/host/apps/omap_debug/usrp1-e-read.c @@ -0,0 +1,18 @@ +#include <stdio.h> +#include <sys/types.h> +#include <fcntl.h> + +int main(int rgc, char *argv[]) +{ + int fp, cnt; + short buf[1024]; + + fp = open("/dev/usrp1_e0", O_RDONLY); + printf("fp = %d\n", fp); + + do { + cnt = read(fp, buf, 2048); +// printf("Bytes read - %d\n", cnt); + } while(1); + printf("Data - %hX\n", buf[0]); +} |