#include <nitro/wm.h>
WMErrCode WM_Init(
void* wmSysBuf ,
u16 dmaNo
);
wmSysBuf | A 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. |
dmaNo | The DMA number that the WM library will use. Use a valid DMA number (0-3). |
Returns the results of the WMErrCode
enumerated type process.
Initializes the WM library Unlike WM_Initialize
, this synchronous function only initializes the WM library on the ARM9 side. The WM will be initialized to the READY
state. In order to communicate you must also use WM_Enable
and WM_PowerOn
to enable the WM hardware. Do not free the wmSysBuf
until either WM_Finish
or WM_End
completes successfully. This function is automatically called at the beginning of the WM_Initialize
function.
WM_Enable
, WM_PowerOn
, WM_PowerOff
, WM_Disable
, WM_Finish
, WM_Initialize
, WM_End
03/02/2005 Added description of allowable range for dmaNo
argument
10/22/2004 Changed return value type
09/11/2004 Initial version