AIRegisterDMACallback

Syntax

#include <revolution/ai.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 already registered. Returns NULL if no callback function has been registered.

Description

The AIRegisterDMACallback function registers the callback function to be invoked for the AI-DMA interrupt (AIDINT). The existing callback function is replaced by the new callback function unconditionally. The callback function is deleted if NULL is specified for an argument and no callback function will ever be called in response to an AI DMA interrupt.

See Also

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL