Nios® V Processor Software Developer Handbook

ID 743810
Date 2/14/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

12.1.1.23. alt_dma_txchan_open()

Prototype

alt_dma_txchan alt_dma_txchan_open (const char* name)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<sys/alt_dma.h>

Description

The alt_dma_txchan_open() function obtains an alt_dma_txchan() descriptor for a DMA transmit channel. The input argument, name, is the name of the associated physical device, for example, /dev/dma_0.

Return

The return value is null on failure and the request alt_dma_txchan otherwise. If an error occurs, errno is set to ENODEV.