ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcppOpen.c File Reference
#include <ngc/core/ngcpp.h>
#include <sys/ipc.h>
#include <sys/sem.h>

Functions

int ngcppReAlloc (size_t bufsize, int n, char *erms)
 
int ngcppOpen (ngcpp_dma_t *dev, char *erms)
 
int ngcppClose (ngcpp_dma_t *dev, int term, char *erms)
 
void * ngcppMalloc (size_t size)
 
void ngcppFree (void *ptr)
 
void * ngcppMalloc2 (void *ptr, size_t size)
 

Variables

ngcppSIM ngcppSimBuf = NULL
 
ngcppSIM64 ngcppSimBuf64 = NULL
 
int ngcppSimNoise = 0
 
int ngcppSim32 = 0
 

Detailed Description

Function Documentation

◆ ngcppClose()

int ngcppClose ( ngcpp_dma_t * dev,
int term,
char * erms )

Close the DMA device. If term is 1, all outstanding DMA transfers are terminated.

◆ ngcppFree()

void ngcppFree ( void * ptr)

Free memory.

◆ ngcppMalloc()

void * ngcppMalloc ( size_t size)

Allocate size bytes of memory.

◆ ngcppMalloc2()

void * ngcppMalloc2 ( void * ptr,
size_t size )

Re(-allocate) size bytes of memory.

◆ ngcppOpen()

int ngcppOpen ( ngcpp_dma_t * dev,
char * erms )

Open the DMA device.

◆ ngcppReAlloc()

int ngcppReAlloc ( size_t bufsize,
int n,
char * erms )

Reallocate n input ringbuffers of size bufsize. If n is zero the number ringbuffers is determined dynamically according to bufsize and ngcppMIN_RINGBUFSIZE.

Variable Documentation

◆ ngcppSim32

int ngcppSim32 = 0

32-bit simulation

◆ ngcppSimBuf

ngcppSIM ngcppSimBuf = NULL

Built-in simulator

◆ ngcppSimBuf64

ngcppSIM64 ngcppSimBuf64 = NULL

Built-in simulator (64-bit buffer size)

◆ ngcppSimNoise

int ngcppSimNoise = 0

Noise simulation