mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
/*---------------------------------------------------------------------------*
|
|
Project: TwlSDK - WBT - demos - wbt-1
|
|
File: bt.h
|
|
|
|
Copyright 2005-2008 Nintendo. All rights reserved.
|
|
|
|
These coded instructions, statements, and computer programs contain
|
|
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
Company Ltd., and are protected by Federal copyright law. They may
|
|
not be disclosed to third parties or copied or duplicated in any form,
|
|
in whole or in part, without the prior written consent of Nintendo.
|
|
|
|
$Date:: $
|
|
$Rev$
|
|
$Author$
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef NITRO_BUILD_DEMOS_WBT_WBT1_INCLUDE_BT_H_
|
|
#define NITRO_BUILD_DEMOS_WBT_WBT1_INCLUDE_BT_H_
|
|
|
|
#include <nitro/wbt.h>
|
|
|
|
/* ブロックデータの数 */
|
|
#define NUM_OF_BT_LIST 3
|
|
|
|
/* 1ブロックデータのサイズ */
|
|
#define BT_DATA_SIZE 0x10000
|
|
|
|
//親機のパケットサイズ
|
|
#define BT_PARENT_PACKET_SIZE WC_PARENT_DATA_SIZE_MAX
|
|
|
|
//子機のパケットサイズ
|
|
#define BT_CHILD_PACKET_SIZE WC_CHILD_DATA_SIZE_MAX
|
|
|
|
#define SDK_MAKEGGID_SYSTEM(num) (0x003FFF00 | (num))
|
|
#define GGID_WBT_1 SDK_MAKEGGID_SYSTEM(0x30)
|
|
#define WC_PARENT_DATA_SIZE_MAX 128
|
|
#define WC_CHILD_DATA_SIZE_MAX 16
|
|
|
|
|
|
/* 親機用ブロック登録関数 */
|
|
extern void bt_register_blocks(void);
|
|
|
|
/* ブロック転送汎用コールバック関数 */
|
|
extern void bt_callback(void *arg);
|
|
|
|
/* 子機用ブロック転送開始関数 */
|
|
extern void bt_start(void);
|
|
|
|
/* 子機用ブロック転送終了関数 */
|
|
extern void bt_stop(void);
|
|
|
|
#endif /* NITRO_BUILD_DEMOS_WBT_WBT1_INCLUDE_BT_H_ */
|