1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: hid_Accelerometer.h 4 5 Copyright (C)2009 Nintendo Co., Ltd. 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 $Rev: 12449 $ 14 *---------------------------------------------------------------------------*/ 15 16 /*! @file 17 @brief Accelerometer クラス を定義します。 18 19 */ 20 #ifndef NN_HID_CTR_HID_ACCELEROMETER_H_ 21 #define NN_HID_CTR_HID_ACCELEROMETER_H_ 22 23 #include <nn/Handle.h> 24 #include <nn/Result.h> 25 #include <nn/types.h> 26 #include <nn/hid/CTR/hid_HidBase.h> 27 #include <nn/hid/CTR/hid_DeviceStatus.h> 28 29 namespace nn { 30 namespace hid { 31 namespace CTR { 32 /*! 33 @brief 加速度センサ のサンプリングデータを取得するのに必要なリソースを持つクラスです。有効なインスタンスを得るには @ref nn::hid::CTR::GetAccelerometer( ) で参照を得てください。 34 35 WaitSampling( ) または WaitSamplingAny( ) でサンプリングのたびにシグナルされるイベントを待つことができます。 また、実際にサンプリングデータを得るには AccelerometerReader クラスを使用してください。 36 37 */ 38 class Accelerometer : public HidBase 39 { 40 private: Accelerometer()41 Accelerometer() {} ~Accelerometer()42 ~Accelerometer() {} 43 44 friend class AccelerometerReader; 45 friend class HidDevices; 46 }; 47 } // namespace CTR { 48 } // namespace hid { 49 } // namespace nn { 50 51 #endif // #ifndef NN_HID_CTR_HID_ACCELEROMETER_H_ 52