Main Program
Dependencies: mbed AQM1602 HMC6352 PID
Diff: setting/def.h
- Revision:
- 14:6f214ea5722e
- Parent:
- 13:f8f5bd2f0525
- Child:
- 15:88f2c525caca
diff -r f8f5bd2f0525 -r 6f214ea5722e setting/def.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setting/def.h Thu Jan 07 09:50:30 2016 +0000 @@ -0,0 +1,46 @@ +#ifndef _DEF_H_ +#define _DEF_H_ + +//BT(BlueTooth) +#define DATA_NUM 8+2//2byte→KEYCODE(拝啓)とCHECKCODE(敬具) 8byte→やりとりするデータ +#define TX_KEYCODE 0xAA//あちらのKEYCODE +#define RX_KEYCODE 0xAA//こちらのKEYCODE +#define KEY 0//KEYCODEは配列の最初 +#define CHECK DATA_NUM-1//CHECKCODEは配列の最後 + + +//Switch 入力値 +#define NONE 0x00 +#define FRONT 0x01 +#define BACK 0x02 +#define BOTH 0x03 +//Lcd 設定値 +#define BUFSIZE 10 +#define STATE_NUM_X 0x04 +#define STATE_NUM_Y 0x10 +//繰り返し割り込み +#define DUTY_NUM 1 + +#define DUTY_SW 0 +#define DUTY_GYRO 1 +#define DUTY_PING 2 +#define DUTY_COLOR 3 +#define DUTY_MOUSE 4 + +//MPU6050関連 +//config.h + +//データ +typedef struct { + uint8_t ping[4]; + uint8_t ir[12]; + uint8_t irLong[6]; + uint8_t line[3]; + uint8_t mouse[2]; + uint16_t compass; + uint8_t color[3]; + uint8_t lcdpoint[2]; + uint8_t stopflag; +} Record; + +#endif \ No newline at end of file