#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) |
| void ngcppAckData | ( | void | ) |
Acknowledge that the current data buffer has been processed.
| void * ngcppCapture | ( | void * | arg | ) |
Capture thread
| char ngcppCheckStop | ( | void | ) |
Check if the data capture has been stopped.
| void ngcppDivide | ( | int | num | ) |
Divide the DMA in sub-divisions (soft-interrupts).
| int ngcppFlushInput | ( | void | ) |
Skip all buffers in the input-ring-buffer. It returns the number of buffers that have been skipped.
| 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.
| int ngcppIppApply | ( | int | id, |
| void * | param, | ||
| int | n, | ||
| char * | erms ) |
| void ngcppIppCfg | ( | int | id, |
| void * | param, | ||
| int | n ) |
| char ngcppOverrun | ( | ngcpp_dma_t * | dev | ) |
Checks if the ringbuffer did get full.
| int ngcppStartCapture | ( | void | ) |
Start the data capture loop.
| int ngcppTerm | ( | ngcpp_dma_t * | dev, |
| char * | erms ) |
Terminate all DMA transfers
| void ngcppTermProcessing | ( | void | ) |
Acknowledges that processing loop has been stopped.
| 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.
| int ngcppWaitStart | ( | void | ) |
Wait until data capture has been started.