change code by hasegawa

Dependents:   haseomni_main

Committer:
number_key
Date:
Wed Aug 23 05:25:50 2017 +0000
Revision:
0:f80d034ed481
jy901

Who changed what in which revision?

UserRevisionLine numberNew contents of line
number_key 0:f80d034ed481 1 #ifndef JY901_DEF_H
number_key 0:f80d034ed481 2 #define JY901_DEF_H
number_key 0:f80d034ed481 3
number_key 0:f80d034ed481 4 #define IICADDR 0xa0 // IIC address
number_key 0:f80d034ed481 5 #define g 9.8 // Acceleration of gravity
number_key 0:f80d034ed481 6
number_key 0:f80d034ed481 7 #define SAVE 0x00 // Save
number_key 0:f80d034ed481 8 #define CALSW 0x01 // Calibration
number_key 0:f80d034ed481 9 #define RSW 0x02 // Return data content
number_key 0:f80d034ed481 10 #define RATE 0x03 // Return data Speed
number_key 0:f80d034ed481 11 #define BAUD 0x04 // Baud rate
number_key 0:f80d034ed481 12 #define AXOFFSET 0x05 // X axis Acceleration bias
number_key 0:f80d034ed481 13 #define AYOFFSET 0x06 // Y axis Acceleration bias
number_key 0:f80d034ed481 14 #define AZOFFSET 0x07 // Z axis Acceleration bias
number_key 0:f80d034ed481 15 #define GXOFFSET 0x08 // X axis angular velocity bias
number_key 0:f80d034ed481 16 #define GYOFFSET 0x09 // Y axis angular velocity bias
number_key 0:f80d034ed481 17 #define GZOFFSET 0x0a // Z axis angular velocity bias
number_key 0:f80d034ed481 18 #define HXOFFSET 0x0b // X axis Magnetic bias
number_key 0:f80d034ed481 19 #define HYOFFSET 0x0c // Y axis Magnetic bias
number_key 0:f80d034ed481 20 #define HZOFFSET 0x0d // Z axis Magnetic bias
number_key 0:f80d034ed481 21 #define D0MODE 0x0e // D0 mode
number_key 0:f80d034ed481 22 #define D1MODE 0x0f // D1 mode
number_key 0:f80d034ed481 23 #define D2MODE 0x10 // D2 mode
number_key 0:f80d034ed481 24 #define D3MODE 0x11 // D3 mode
number_key 0:f80d034ed481 25 #define D0PWMH 0x12 // D0PWM High-level width
number_key 0:f80d034ed481 26 #define D1PWMH 0x13 // D1PWM High-level width
number_key 0:f80d034ed481 27 #define D2PWMH 0x14 // D2PWM High-level width
number_key 0:f80d034ed481 28 #define D3PWMH 0x15 // D3PWM High-level width
number_key 0:f80d034ed481 29 #define D0PWMT 0x16 // D0PWM Period
number_key 0:f80d034ed481 30 #define D1PWMT 0x17 // D1PWM Period
number_key 0:f80d034ed481 31 #define D2PWMT 0x18 // D2PWM Period
number_key 0:f80d034ed481 32 #define D3PWMT 0x19 // D3PWM Period
number_key 0:f80d034ed481 33 #define LEDOFF 0x1b // Turn off LED
number_key 0:f80d034ed481 34 #define GPSBAUD 0x1c // GPS baud rate
number_key 0:f80d034ed481 35
number_key 0:f80d034ed481 36 #define YYMM 0x30 // Year、Month
number_key 0:f80d034ed481 37 #define DDHH 0x31 // Day、Hour
number_key 0:f80d034ed481 38 #define MMSS 0x32 // Minute、Second
number_key 0:f80d034ed481 39 #define MS 0x33 // Millisecond
number_key 0:f80d034ed481 40 #define AX 0x34 // X axis Acceleration
number_key 0:f80d034ed481 41 #define AY 0x35 // Y axis Acceleration
number_key 0:f80d034ed481 42 #define AZ 0x36 // Z axis Acceleration
number_key 0:f80d034ed481 43 #define GX 0x37 // X axis angular velocity
number_key 0:f80d034ed481 44 #define GY 0x38 // Y axis angular velocity
number_key 0:f80d034ed481 45 #define GZ 0x39 // Z axis angular velocity
number_key 0:f80d034ed481 46 #define HX 0x3a // X axis Magnetic
number_key 0:f80d034ed481 47 #define HY 0x3b // Y axis Magnetic
number_key 0:f80d034ed481 48 #define HZ 0x3c // Z axis Magnetic
number_key 0:f80d034ed481 49 #define Roll 0x3d // X axis Angle
number_key 0:f80d034ed481 50 #define Pitch 0x3e // Y axis Angle
number_key 0:f80d034ed481 51 #define Yaw 0x3f // Z axis Angle
number_key 0:f80d034ed481 52 #define TEMP 0x40 // Temperature
number_key 0:f80d034ed481 53 #define D0Status 0x41 // D0Status
number_key 0:f80d034ed481 54 #define D1Status 0x42 // D1Status
number_key 0:f80d034ed481 55 #define D2Status 0x43 // D2Status
number_key 0:f80d034ed481 56 #define D3Status 0x44 // D3Status
number_key 0:f80d034ed481 57 #define PressureL 0x45 // Pressure Low Byte
number_key 0:f80d034ed481 58 #define PressureH 0x46 // Pressure High Byte
number_key 0:f80d034ed481 59 #define HeightL 0x47 // Height Low Byte
number_key 0:f80d034ed481 60 #define HeightH 0x48 // Height High Byte
number_key 0:f80d034ed481 61 #define LonL 0x49 // Longitude Low Byte
number_key 0:f80d034ed481 62 #define LonH 0x4a // Longitude High Byte
number_key 0:f80d034ed481 63 #define LatL 0x4b // Latitude Low Byte
number_key 0:f80d034ed481 64 #define LatH 0x4c // Latitude High Byte
number_key 0:f80d034ed481 65 #define GPSHeight 0x4d // GPS Height
number_key 0:f80d034ed481 66 #define GPSYaw 0x4e // GPS Yaw
number_key 0:f80d034ed481 67 #define GPSVL 0x4f // GPS speed Low byte
number_key 0:f80d034ed481 68 #define GPSVH 0x50 // GPS speed High byte
number_key 0:f80d034ed481 69 #define Q0 0x51 // Quaternion Q0
number_key 0:f80d034ed481 70 #define Q1 0x52 // Quaternion Q1
number_key 0:f80d034ed481 71 #define Q2 0x53 // Quaternion Q2
number_key 0:f80d034ed481 72 #define Q3 0x54 // Quaternion Q3
number_key 0:f80d034ed481 73
number_key 0:f80d034ed481 74 #endif