MPSetIndicationConfig

Syntax

#include <revolution/mp.h>
typedef void (*MPIndicationCallback)( s32 type, MPIndicationInfo *info );
static inline void MPSetIndicationConfig ( MPConfig* config, MPIndicationCallback callback );

Arguments

config MP communications settings
callback Callback for indication notification

Return Values

None.

Description

Sets the indication notification callback for MPConfig. This inline function assigns values to particular member variables in MPConfig.
Settings made with this function must be made before calling MPStartup function.

The following items are defined as notifications of indication.

type Description
MP_INDICATION_CB_TYPE_FATAL_ERROR A fatal error occurred.
MP_INDICATION_CB_TYPE_PSEUDO_VBLANK A pseudo V-Blank synchronization cycle of approximately 60 Hz, automatically performed by connected child devices. This is controlled by a cycle unrelated to the Wii console's V-Blank cycle. To receive this notification, MP_MODE_ENABLE_PSEUDO_VBLANK_INDICATION must be specified for MPConfig's member variable, mode.

Detection of fatal errors and acquisition of error types can be managed by calling the MPGetFatalError function when the MP function has returned MP_RESULT_FATAL_ERROR. For this reason, it is not always necessary to set a callback for indication notification.

Using the MP_INDICATION_CB_TYPE_PSEUDO_VBLANK notification makes it possible to configure the send data immediately before MP communications for each frame in frame-synchronized communication mode. This allows for low-latency communications.

See Also

MPStartup(), MPSetPortConfig(), MPConfig

Revision History

2008/06/03 Added the pseudo V-Blank notification.
2006/09/04 Added descriptions.
2006/06/29 Initial version.


CONFIDENTIAL