Main Program

Dependencies:   mbed AQM1602 HMC6352 PID

def.h

Committer:
lilac0112_1
Date:
2015-09-17
Revision:
12:f7456da0517b
Parent:
10:3d0714c1ac75
Child:
13:f8f5bd2f0525

File content as of revision 12:f7456da0517b:

#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

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