Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_WallbotBLE_Challenge by
RCBController.h
00001 00002 00003 typedef union 00004 { 00005 00006 struct { 00007 /* 00008 1-2バイト目:ボタン 00009 UP: 0x0001 00010 DOWN: 0x0002 00011 RIGHT: 0x0004 00012 LEFT: 0x0008 00013 Y button: 0x0010 00014 A button: 0x0020 00015 B button: 0x0040 00016 X button: 0x0100 00017 L1: 0x0200 00018 L2: 0x0400 00019 R1: 0x0800 00020 R2: 0x1000 00021 START: 0x0003 00022 SELECT: 0x000C 00023 */ 00024 unsigned X : 1; 00025 unsigned L1 : 1; 00026 unsigned L2 : 1; 00027 unsigned R1 : 1; 00028 unsigned R2 : 1; 00029 unsigned space1 : 3; 00030 unsigned UP : 1; 00031 unsigned DOWN : 1; 00032 unsigned RIGHT : 1; 00033 unsigned LEFT : 1; 00034 unsigned Y : 1; 00035 unsigned A : 1; 00036 unsigned B : 1; 00037 unsigned space2 : 1; 00038 /* 00039 3-4バイト目:左アナログ 00040 左右: 1-255 (Neutral=128) 00041 上下: 1-255 (Neutral=128) 00042 */ 00043 unsigned LeftAnalogLR:8; 00044 unsigned LeftAnalogUD:8; 00045 /* 00046 5-6バイト目:右アナログ 00047 左右: 1-255 (Neutral=128) 00048 上下: 1-255 (Neutral=128) 00049 */ 00050 unsigned RightAnalogLR:8; 00051 unsigned RightAnalogUD:8; 00052 /* 00053 7-9バイト目:アクセラレータ 00054 X軸: 1-255 (Neutral=128) 00055 Y軸: 1-255 (Neutral=128) 00056 Z軸: 1-255 (Neutral=128) 00057 */ 00058 unsigned AcceleX:8; 00059 unsigned AcceleY:8; 00060 unsigned AcceleZ:8; 00061 /* 00062 10バイト目:設定(向き、設定) 00063 7-6bit目: アクセラレータ設定(0-3) 00064 5bit目: 左アナログ(0-1) 00065 4bit目: 右アナログ(0-1) 00066 3-1bit目: iOSデバイス向き(1-4) 00067 */ 00068 unsigned DEV_DIR:4; 00069 unsigned RIGHT_ANALOG:1; 00070 unsigned LEFT_ANALOG:1; 00071 unsigned ACCELE_SETTING:2; 00072 }status; 00073 unsigned char data[10]; 00074 }RCBController;
Generated on Tue Jul 12 2022 13:52:31 by
