AIRegisterDMACallback

C Specification

#include <revolution.h>
typedef void (*AIDCallback)(void);
AIDCallback AIRegisterDMACallback(AIDCallback callback);

Arguments

callback Callback function for the AI DMA interrupt (AIDINT).

Return Values

Returns a pointer to the old callback function that is already registered. Returns NULL if a callback function has not been registered.

Description

The AIRegisterDMACallback function registers the callback function to call when an AI DMA interrupt (AIDINT) occurs. The new callback function unconditionally replaces the existing callback function. The callback function is deleted if NULL is specified and no callback function will ever be called in response to an AI DMA interrupt.

See Also

Revision History

2006/03/01 Initial version.