simple_putdata.c File Reference

Detailed Description

An example program to show use of EDT DMA library for ring buffer mode.

This program either generates data or reads it from a file or device and writes the data to the EDT device.

See writeblock.c if you just have a single write to do that can be done with one write system call

To compile:

cc -O -DSYSV -o simple_putdata simple_putdata.c -L. -ledt -lthread

To run:

On the SCD:

If your device is not hooked up or running, you can start data generation by typing "confidence" and hitting ^C while it is running the speed test.

Be sure to do an "scdload 0 scd.rbt" before trying to talk to your device again after running confidence.

On the S16D and S11W:

An external data source must be provided on the S16D and S11W.

Run simple_putdata with no arguments to run a basic speed test. A dot will be printed each time another buffer is done. Type "simple_putdata -h" to get usage.

Definition in file simple_putdata.c.

#include "edtinc.h"
#include <string.h>
#include <stdlib.h>
#include <unistd.h>

Go to the source code of this file.


#define NUMBUFS   4


void init_buf (u_char *buf, int size)
int main (int argc, char **argv)
void usage (char *err)


int buffers_inuse
int numbufs = NUMBUFS

Generated on 19 Jun 2015 by  doxygen 1.4.7