

#include <nitro/wm.h>
WMErrCode WM_InitializeForListening(
void* wmSysBuf ,
WMCallbackFunc callback ,
u16 dmaNo,
BOOL blink
);
| wmSysBuf | Pointer to the buffer allocated by the calling source. The buffer must have a size of WM_SYSTEM_BUF_SIZE and be 32-byte aligned. |
| callback | Callback function to call when the asynchronous process completes. This callback is called from inside the interrupt handler. |
| dmaNo | The DMA number that the WM uses. Use a valid DMA number (0-3). |
| blink | Specifies TRUE whether the power LED is flashing at variable speed.(This setting is valid only on Nintendo DS, Nintendo DS Lite, and IS-NITRO-EMULATOR.) |
Returns the results of the WMErrCode enumerated type process.
Initializes the WM library in receive-only mode and starts the wireless hardware. If the return value is WM_ERRCODE_OPERATING, a callback is generated after the initialization process is complete. This function changes the WM from the READY state to the IDLE state. Do not free wmSysBuf until WM_Finish or WM_End ends successfully. Note that this function consolidates the functionalities of WM_Init, WM_EnableForListening, and WM_PowerOn. Use these functions separately for low-level control of the initialization process.
Unlike WM_Initialize, operations that require transmitting wireless signals will not be available if this function is used for initialization. In exchange, you can make the power LED stop flashing when run on Nintendo DS, Nintendo DS Lite, and IS-NITRO-EMULATOR. Scanning in passive mode and measuring channel availability are examples of operations that do not require transmitting wireless signals.
WM_Initialize
WM_SetIndCallback
WM_Reset
WM_End
WM_Init
WM_EnableForListening
WM_PowerOn
2009/07/10 Explained the LED blinking specification.
2007/11/12 Initial version.
CONFIDENTIAL