ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcppCapture.c File Reference
#include <ngc/core/ngcpp.h>

Functions

void ngcppIppCfg (int id, void *param, int n)
 
int ngcppIppApply (int id, void *param, int n, char *erms)
 
int ngcppInit (ngcpp_dma_t *dev, unsigned int *doneCount, char *erms)
 
void ngcppDivide (int num)
 
int ngcppWaitStart (void)
 
int ngcppStartCapture (void)
 
int ngcppFlushInput (void)
 
int ngcppWaitData (ngcpp_t **res)
 
void ngcppAckData (void)
 
char ngcppCheckStop (void)
 
void ngcppTermProcessing (void)
 
void * ngcppCapture (void *argp)
 
char ngcppOverrun (ngcpp_dma_t *dev)
 
int ngcppTerm (ngcpp_dma_t *dev, char *erms)
 

Detailed Description

Function Documentation

◆ ngcppAckData()

void ngcppAckData ( void )

Acknowledge that the current data buffer has been processed.

◆ ngcppCapture()

void * ngcppCapture ( void * arg)

Capture thread

◆ ngcppCheckStop()

char ngcppCheckStop ( void )

Check if the data capture has been stopped.

◆ ngcppDivide()

void ngcppDivide ( int num)

Divide the DMA in sub-divisions (soft-interrupts).

◆ ngcppFlushInput()

int ngcppFlushInput ( void )

Skip all buffers in the input-ring-buffer. It returns the number of buffers that have been skipped.

◆ ngcppInit()

int ngcppInit ( ngcpp_dma_t * dev,
unsigned int * doneCount,
char * erms )

Initialize the DMA read and synchronize doneCount to the actual buffer count in the DMA driver.

◆ ngcppIppApply()

int ngcppIppApply ( int id,
void * param,
int n,
char * erms )

◆ ngcppIppCfg()

void ngcppIppCfg ( int id,
void * param,
int n )

◆ ngcppOverrun()

char ngcppOverrun ( ngcpp_dma_t * dev)

Checks if the ringbuffer did get full.

◆ ngcppStartCapture()

int ngcppStartCapture ( void )

Start the data capture loop.

◆ ngcppTerm()

int ngcppTerm ( ngcpp_dma_t * dev,
char * erms )

Terminate all DMA transfers

◆ ngcppTermProcessing()

void ngcppTermProcessing ( void )

Acknowledges that processing loop has been stopped.

◆ ngcppWaitData()

int ngcppWaitData ( ngcpp_t ** res)

Waits for the next data semaphore and returns a pointer to the next data input buffer. The return value is the number of frame that has been skipped during a pause.

◆ ngcppWaitStart()

int ngcppWaitStart ( void )

Wait until data capture has been started.