# WM_SetDCFData

## C Specification

      #include <nitro/wm.h>

      WMErrCode WM_SetDCFData(
              WMCallbackFunc  callback ,
              const u8*       destAdr ,
              const u16*      sendData,
              u16             sendDataSize
      );

## Arguments

`callback` | Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler.
destAdr | Pointer to the 6-byte buffer that indicates the MAC address of the communicating partner.
sendData | Pointer to the data to be send-reserved. Notice that the send-reserve data entity will be forcibly cached.
sendDataSize | The size of the send-reserved data.

## Return Values

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

## Description

Reserves data to be sent when using infrastructure mode communications. This function is executable only when the WM is in the `DCF CHILD` state. If the return value is `WM_ERRCODE_OPERATING`, a callback is generated after the data transmission process is complete.

## See Also

`WM_StartDCF`, `WM_EndDCF`

## Revision History

06/08/2005 Added statement about callbacks being called from the interrupt handler.
10/22/2004 Changed return value type.
10/05/2004 Changed argument type.
08/02/2004 Standardized structure names.
07/29/2004 Added to Description
07/23/2004 Initial version

CONFIDENTIAL