1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - WBT - demos - wbt-1 3 File: bt.h 4 5 Copyright 2005-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 18 #ifndef NITRO_BUILD_DEMOS_WBT_WBT1_INCLUDE_BT_H_ 19 #define NITRO_BUILD_DEMOS_WBT_WBT1_INCLUDE_BT_H_ 20 21 #include <nitro/wbt.h> 22 23 /* Number of block data */ 24 #define NUM_OF_BT_LIST 3 25 26 /* Size of 1 data block */ 27 #define BT_DATA_SIZE 0x10000 28 29 //Parent packet size 30 #define BT_PARENT_PACKET_SIZE WC_PARENT_DATA_SIZE_MAX 31 32 //Child packet size 33 #define BT_CHILD_PACKET_SIZE WC_CHILD_DATA_SIZE_MAX 34 35 #define SDK_MAKEGGID_SYSTEM(num) (0x003FFF00 | (num)) 36 #define GGID_WBT_1 SDK_MAKEGGID_SYSTEM(0x30) 37 #define WC_PARENT_DATA_SIZE_MAX 128 38 #define WC_CHILD_DATA_SIZE_MAX 16 39 40 41 /* Block registration function for parent */ 42 extern void bt_register_blocks(void); 43 44 /* Callback function for block transmission */ 45 extern void bt_callback(void *arg); 46 47 /* Block transmission start function for child */ 48 extern void bt_start(void); 49 50 /* Block transmission end function for child */ 51 extern void bt_stop(void); 52 53 #endif /* NITRO_BUILD_DEMOS_WBT_WBT1_INCLUDE_BT_H_ */ 54