Nios® V Processor Software Developer Handbook

ID 743810
Date 10/12/2024
Public
Document Table of Contents

16.1.1.11. alt_dma_rxchan_depth()

Prototype

alt_u32 alt_dma_rxchan_depth(alt_dma_rxchan dma)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<sys/alt_dma.h>

Description

The alt_dma_rxchan_depth() function returns the maximum number of receive requests that can be posted to the specified DMA transmit channel, dma.

Whether this function is thread-safe, or can be called from an ISR, depends on the underlying device driver. In general it safest to assume that it is not thread-safe.

Return

Returns the maximum number of receive requests that can be posted.