MPDSConfig

Definition


#include <revolution/mpds.h>

typedef struct MPDSConfig
{
    u32         dataLength;

    u32         port;
    u32         priority;

    BOOL        isParent;
    u32         aidBits;
    BOOL        isDoubleMode;

    BOOL        isAutoStart;
    MPPortCallback mpdsCallback;

} MPDSConfig;

Description

The MPDSConfig structure is used to store the DataSharing configuration information.

Member Description
dataLength Specifies the data size per unit sharing data in DataSharing.
port Specifies the MP communications port number used in DataSharing.
The port specified must be between 12 and 15 because sequential communications must be used.
priority Specifies the MP communications packet send priority level when sending in DataSharing.
Choose one of four levels, from MP_PRIORITY_URGENT to MP_PRIORITY_LOW.
isParent Always specified as TRUE.
aidBits Enumerates the AID where DataSharing is performed. The lowest bit indicates AID 0, the Wii itself, with the next bit, in order, representing the AID 1 child DS, then the AID 2 child DS, etc.
isDoubleMode Specify as TRUE to enable double mode. For further details, see the NITRO-SDK reference.
isAutoStart Always specified as TRUE.
mpdsCallback Specifies a pointer to the callback function that receives notifications for child device connections and disconnections. Specify NULL if there is no need to configure this.

See Also

MPDSInit()

Revision History

2007/11/28 Initial version.


CONFIDENTIAL