1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - WVR - include 3 File: wvr.h 4 5 Copyright 2003-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 #ifndef NITRO_WVR_ARM9_WVR_H_ 18 #define NITRO_WVR_ARM9_WVR_H_ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 /*===========================================================================*/ 25 26 #include <nitro/gx/gx_vramcnt.h> 27 28 // Callback function type for asynchronous API 29 typedef void (*WVRCallbackFunc) (void *arg, WVRResult result); 30 31 32 /*---------------------------------------------------------------------------* 33 Name: WVR_StartUpAsync 34 35 Description: Starts operations of the wireless library. 36 Until forcibly stopped, access to the specified VRAM (C or D) is prohibited. 37 38 Arguments: vram: Specifies VRAM bank allocated to ARM7. 39 callback: Specifies the callback function to invoke when processing is complete. 40 arg: Specifies arguments passed to the callback function. 41 42 Returns: Returns the processing result. 43 *---------------------------------------------------------------------------*/ 44 WVRResult WVR_StartUpAsync(GXVRamARM7 vram, WVRCallbackFunc callback, void *arg); 45 46 /*---------------------------------------------------------------------------* 47 Name: WVR_TerminateAsync 48 49 Description: Forcibly stops operations of the wireless library. 50 Access to VRAM (C or D) is permitted after asynchronous processing is completed. 51 52 Arguments: callback: Specifies the callback function to invoke when processing is complete. 53 arg: Specifies arguments passed to the callback function. 54 55 Returns: Returns the processing result. 56 *---------------------------------------------------------------------------*/ 57 WVRResult WVR_TerminateAsync(WVRCallbackFunc callback, void *arg); 58 59 60 /*===========================================================================*/ 61 62 #ifdef __cplusplus 63 } /* extern "C" */ 64 #endif 65 66 #endif /* NITRO_WVR_ARM9_WVR_H_ */ 67 68 /*---------------------------------------------------------------------------* 69 End of file 70 *---------------------------------------------------------------------------*/ 71