#include <revolution/mp.h>
typedef void (*MPPortCallback)( s32 type, MPPortCallbackInfo *info );static inline void MPSetPortConfig ( MPConfig* config, u32 port, MPPortCallback callback, u32 priority );
config |
MP communications settings |
port |
The port number to set the callback for |
callback |
The port's receive callback |
priority |
The port's send priority |
None.
This function makes the port settings for MPConfig.
These settings need to be configured with this function before the MPStartup function is called.
The port number can be set to numbers 5 through 8 for raw communications and numbers 12 through 15 for sequential communications by the application.
For sequential communications, the properties are only guaranteed for connections of up to eight children. Connections of more than eight children are not guaranteed to have the sequential communications' advantage that successfully sent data always reaches its target.
MPStartup(), MPSetIndicationConfig(), MPConfig
2007/10/03 Changed the explanation about sequential communications.
2007/01/29 Added description about sequential communication.
2006/06/29 Initial version.
CONFIDENTIAL