/*---------------------------------------------------------------------------* Project: WPAD File: wpadBulk.h Copyright (C) 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. *---------------------------------------------------------------------------*/ #ifndef __WPAD_BULK_H__ #define __WPAD_BULK_H__ #include #ifdef __cplusplus extern "C" { #endif #define WPAD_DEV_BULK_01 21 #define WPAD_DEV_BULK_02 22 #define WPAD_DEV_BULK_03 23 #define WPAD_DEV_BULK_04 24 #define WPAD_DEV_BULK_05 25 #define WPAD_DEV_BULK_06 26 #define WPAD_DEV_BULK_07 27 #define WPAD_DEV_BULK_08 28 #define WPAD_IS_BULK_DEVICE(x) ( x == WPAD_DEV_BULK_01 \ || x == WPAD_DEV_BULK_02 \ || x == WPAD_DEV_BULK_03 \ || x == WPAD_DEV_BULK_04 \ || x == WPAD_DEV_BULK_05 \ || x == WPAD_DEV_BULK_06 \ || x == WPAD_DEV_BULK_07 \ || x == WPAD_DEV_BULK_08 ) // data format of Core + Acc + Bulk #define WPAD_FMT_BULK 19 // buttons, acc, Bulk #define WPAD_MAX_BULK_BUFS 21 typedef struct WPADBKStatus { u16 button; // Or-ed WPAD_BUTTON_* bits s16 accX; // -WPAD_ACC_RESO/2 <= accX < WPAD_ACC_RESO/2 s16 accY; // -WPAD_ACC_RESO/2 <= accY < WPAD_ACC_RESO/2 s16 accZ; // -WPAD_ACC_RESO/2 <= accZ < WPAD_ACC_RESO/2 DPDObject obj[WPAD_DPD_MAX_OBJECTS]; u8 dev; // one of WPAD_DEV_* number s8 err; // one of WPAD_ERR_* number u8 bulk[WPAD_MAX_BULK_BUFS];// buffer for additional data(21 bytes) u8 padding; } WPADBKStatus; #ifdef __cplusplus } #endif #endif // __WPAD_BULK_H__