EDT PCD SDK Documentation 6.1.0
simple_getdata.c File Reference

(git 4cd3bb21, 2023-12-08)

#include "edtinc.h"
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for simple_getdata.c:

Functions

void usage (const char *progname, const char *errstr)
 
int main (int argc, const char *argv[])
 

Detailed Description

A utility / example program to show use of the EDT PCD library for ring buffer mode. This application reads continuous data from an EDT DMA device and optionally writes to a file or device.

However, if all you have to do is a simple read, just use edt_read().

Requirements: A data source must be provided to the EDT board.

Function Documentation

◆ usage()

void usage ( const char *  progname,
const char *  err 
)

Display usage information.

Parameters
prognameThe name of this program.
errA description of what is invalid about the call.
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Receive DMA data.

Here is the call graph for this function: