Function


nuSiCallBackAdd

Syntax:
u8 nuSiCallBackAdd(NUCallBackList* list)
Arguments:
list   Pointer to NUCallBackList structure
Return Value:
None
Explanation:

Registers the device manager

Registers the deivce manager specified by list in the SI manager. The actual state of a device manager is a function pointer array to callback functions. Because of this, this function registers the NUCallBackList structure that contains the function pointer array specified by list in the SI manager.

Each device manager is given a unique number. This value is compared with the message sent to the SI manager and the required function is called.

The NUCallBackList structure is a link list. Use the nuSiCallBackRemove function to remove a function which has been registered.

This function is used when creating a device manager that is unique to an application.


Reference: nuSiMgrInit, nuSiCallBackRemove


- Revision History

1999/2/1 Changed "format" and changed description text.