Visible to Intel only — GUID: iga1401397410634
Ixiasoft
Visible to Intel only — GUID: iga1401397410634
Ixiasoft
32.7.11. alt_avalon_sgdma_register_callback()
Prototype: | void alt_avalon_sgdma_register_callback(alt_sgdma_dev *dev, alt_avalon_sgdma_callback callback, alt_u16 chain_control, void *context) |
Thread-safe: | Yes |
Available from ISR: | Yes |
Include: | <altera_avalon_sgdma.h>, <altera_avalon_sgdma_descriptor.h>, <altera_avalon_sgdma_regs.h> |
Parameters: | *dev—a pointer to the SG-DMA device structure. callback—a pointer to the callback routine to execute at interrupt level. chain_control—the SG-DMA control register contents. *context—a pointer used to pass context-specific information to the ISR. context can point to any ISR-specific information. |
Returns: | void |
Description: | Associates a user-specific routine with the SG-DMA interrupt handler. If a callback is registered, all non-blocking transfers enables interrupts that causes the callback to be executed. The callback runs as part of the interrupt service routine, and care must be taken to follow the guidelines for acceptable interrupt service routine behavior as described in the Nios II Software Developer Handbook. To disable callbacks after registering one, call this routine with 0x0 as the callback argument. |