# WM_SetMPFrequency

## Syntax

      #include <nitro/wm.h>

      WMErrCode WM_SetMPFrequency(
              WMCallbackFunc  callback ,
              u16             mpFreq
      );

## Arguments

callback | Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler.
mpFreq | Specifies how many times to perform MP communications in one frame. When a value of 0 is specified, this function is set to the continuous packet send mode that is used for large volume data communication.

## Return Values

Returns the results of the `WMErrCode` enumerated type process.

## Description

Sets the MP communications frequency This function is only executable when the WM is in the `MP_PARENT` state. Use this function during MP communications to dynamically change the communications frequency that was set by the `mpFreq` argument in `WM_StartMP`. If the return value is `WM_ERRCODE_OPERATING`, a callback is generated after the MP completes the data transmission process.

This wrapper function calls the `WM_SetMPParameter` function internally.

## See Also

`WM_SetMPParameter, WM_StartMP, WM_SetMPDataToPort`

## Revision History

2005/12/06 Noted that WM_SetMPParameter had become a wrapper function.
2005/06/08 Added the fact that the callback is called from the interrupt handler.
2004/10/22 Changed the type of the return value.
2004/09/13 Initial release.

CONFIDENTIAL