#include <nitro/wm.h>
WMErrCode WM_SetMPParentSize(
WMCallbackFunc callback ,
u16 parentSize
);
callback |
Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler. |
parentSize | Specifies the parent send capacity. This value is rounded up to a multiple of 2. |
Returns the results of the WMErrCode
enumerated type process.
Sets the parent send capacity. The send capacity must be a multiple of 2, so if an odd number is designated, it is rounded up so that it is even. This only affects the parent. Be sure to use this function after referring to the "Wireless Communication Library Description" for thorough understanding.
The parent send capacity is initialized by the WM_StartParent
or WM_StartConnect
function. This cannot be reset to a value larger than the initial value. In addition, the setting value is overwritten using the value specified by the parent every time an MP sequence is performed on the child.
This wrapper function calls the WM_SetMPParameter
function internally.
WM_SetMPParameter, WM_StartMP, WM_SetMPDataToPort
12/08/2005 Clearly stated that the send capacity must be an even number.
11/24/2005 Initial version.