<< Previous | Next >> | |
|
dma_chan_t DMAalloc( char channel_mask, int highest );
Description
- This function returns a handle to an available channel. The handle contains the channel number and a validation byte to prevent use of an old handle after deallocation.
Parameters
- channel_mask
- Mask of all the acceptable channels to choose from.
- highest
- Bool indicating whether to search for an available channel from 8 or from 0.
Return Value
- Returns a handle to a DMA channel if one is available. If none are available it returns
DMA_CHANNEL_NONE
.Library
- DMA.LIB
See Also
- DMAunalloc, DMAhandle2chan
Dynamic C Functions | << Previous | Next >> | rabbit.com |