Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

16.1.1.25. alt_dma_txchan_space()

Prototype

int alt_dma_txchan_space (alt_dma_txchan dma)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

See description.

Available from ISR

See description/

Include

<sys/alt_dma.h>

Description

The alt_dma_txchan_space() function returns the number of transmit requests that can be posted to the specified DMA transmit channel, dma. A negative value indicates that the value cannot be determined.

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 number of transmit requests that can be posted.