MPPortCallback

Definitions


#include <revolution/mp.h>

typedef void (*MPPortCallback)( s32 type, MPPortCallbackInfo *info );

Arguments

type Specifies the originator of the callback. This is the same as the MPCallbackType enumerator.
info Parameter passed to each type of callback.

Return Values

None.

Description

MPPortCallback is the port receive callback function type. For more on the types of notifications performed, see the description of MPCallbackType enumerator.

Callback functions are called from the MP library's callback thread.
This is not an interrupt callback, so thread synchronizing functions can be called. However, if a block takes too long, it will impact MP communications. Blocking should be kept to the minimum needed for exceptions.
In some cases you should consider the means to receive and pass data without blocking, using OSMessageQueue, etc.

See Also

MPCallbackType, MPPortCallbackInfo

Revision History

2007/11/28 Made revisions in conjunction with the addition of the MPCallbackType to the function reference.
2007/11/21 Added description.
2006/11/28 Initial version.


CONFIDENTIAL