試作テストバージョン

Dependencies:   BLE_API TB6612FNG mbed

Fork of BLE_RCBController2 by Junichi Katsu

RCBController.h

Committer:
jksoft
Date:
2014-07-10
Revision:
0:8c643bfe55b7
Child:
1:48f6e08a3ac2

File content as of revision 0:8c643bfe55b7:

typedef union
{
	struct  {
		unsigned UP		: 1;
		unsigned DOWN	: 1;
		unsigned RIGHT	: 1;
		unsigned LEFT	: 1;
		unsigned Y		: 1;
		unsigned A		: 1;
		unsigned B		: 1;
		unsigned X		: 1;
		unsigned L1		: 1;
		unsigned L2		: 1;
		unsigned R1		: 1;
		unsigned R2		: 1;
		unsigned START	: 1;
		unsigned SERECT	: 1;
		unsigned space	: 2;
		unsigned LeftAnalogLR:8;
		unsigned LeftAnalogUD:8;
		unsigned RightAnalogLR:8;
		unsigned RightAnalogUD:8;
		unsigned AcceleX:8;
		unsigned AcceleY:8;
		unsigned AcceleZ:8;
		unsigned DEV_DIR:4;
		unsigned RIGHT_ANALOG:1;
		unsigned LEFT_ANALOG:1;
		unsigned ACCELE_SETTING:2;
	}status;
	unsigned char data[10];
}RCBController;