Go to the documentation of this file. 15 #ifndef EPSONG365PDF1_H_ 16 #define EPSONG365PDF1_H_ 18 #define EPSON_ACCL_SF (.400) 19 #define EPSON_GYRO_SF (.0151515) 20 #define EPSON_TEMP_SF (-0.0037918) 21 #define EPSON_ATTI_SF (0.00699411) 22 #define EPSON_COUNT_SF (16000) 24 #define EPSON_DA_SF0 (EPSON_GYRO_SF * 500E-06) 25 #define EPSON_DA_SF1 (EPSON_DA_SF0 * 2) 26 #define EPSON_DA_SF2 (EPSON_DA_SF1 * 2) 27 #define EPSON_DA_SF3 (EPSON_DA_SF2 * 2) 28 #define EPSON_DA_SF4 (EPSON_DA_SF3 * 2) 29 #define EPSON_DA_SF5 (EPSON_DA_SF4 * 2) 30 #define EPSON_DA_SF6 (EPSON_DA_SF5 * 2) 31 #define EPSON_DA_SF7 (EPSON_DA_SF6 * 2) 32 #define EPSON_DA_SF8 (EPSON_DA_SF7 * 2) 33 #define EPSON_DA_SF9 (EPSON_DA_SF8 * 2) 34 #define EPSON_DA_SF10 (EPSON_DA_SF9 * 2) 35 #define EPSON_DA_SF11 (EPSON_DA_SF10 * 2) 36 #define EPSON_DA_SF12 (EPSON_DA_SF11 * 2) 37 #define EPSON_DA_SF13 (EPSON_DA_SF12 * 2) 38 #define EPSON_DA_SF14 (EPSON_DA_SF13 * 2) 39 #define EPSON_DA_SF15 (EPSON_DA_SF14 * 2) 41 #define EPSON_DV_SF0 (EPSON_ACCL_SF * 1E-03 * 9.80665 * 500E-06) 42 #define EPSON_DV_SF1 (EPSON_DV_SF0 * 2) 43 #define EPSON_DV_SF2 (EPSON_DV_SF1 * 2) 44 #define EPSON_DV_SF3 (EPSON_DV_SF2 * 2) 45 #define EPSON_DV_SF4 (EPSON_DV_SF3 * 2) 46 #define EPSON_DV_SF5 (EPSON_DV_SF4 * 2) 47 #define EPSON_DV_SF6 (EPSON_DV_SF5 * 2) 48 #define EPSON_DV_SF7 (EPSON_DV_SF6 * 2) 49 #define EPSON_DV_SF8 (EPSON_DV_SF7 * 2) 50 #define EPSON_DV_SF9 (EPSON_DV_SF8 * 2) 51 #define EPSON_DV_SF10 (EPSON_DV_SF9 * 2) 52 #define EPSON_DV_SF11 (EPSON_DV_SF10 * 2) 53 #define EPSON_DV_SF12 (EPSON_DV_SF11 * 2) 54 #define EPSON_DV_SF13 (EPSON_DV_SF12 * 2) 55 #define EPSON_DV_SF14 (EPSON_DV_SF13 * 2) 56 #define EPSON_DV_SF15 (EPSON_DV_SF14 * 2) 89 #define ADDR_MODE_CTRL_LO 0x02 // MODE_CTRL Byte0 (W0) 90 #define ADDR_MODE_CTRL_HI 0x03 // MODE_CTRL Byte1 (W0) 91 #define ADDR_DIAG_STAT 0x04 // DIAG_STAT Byte0 (W0) 92 #define ADDR_FLAG 0x06 // FLAG(ND/EA) (W0) 93 #define ADDR_GPIO 0x08 // GPIO (W0) 94 #define ADDR_COUNT 0x0A // COUNT (W0) 95 #define ADDR_RANGE_OVER 0x0C // RANGE_OVER (W0) 96 #define ADDR_TEMP_HIGH 0x0E // TEMPC HIGH (W0) 97 #define ADDR_TEMP_LOW 0x10 // TEMPC LOW (W0) 98 #define ADDR_XGYRO_HIGH 0x12 // XGYRO HIGH (W0) 99 #define ADDR_XGYRO_LOW 0x14 // XGYRO LOW (W0) 100 #define ADDR_YGYRO_HIGH 0x16 // YGYRO HIGH (W0) 101 #define ADDR_YGYRO_LOW 0x18 // YGYRO LOW (W0) 102 #define ADDR_ZGYRO_HIGH 0x1A // ZGYRO HIGH (W0) 103 #define ADDR_ZGYRO_LOW 0x1C // ZGYRO LOW (W0) 104 #define ADDR_XACCL_HIGH 0x1E // XACCL HIGH (W0) 105 #define ADDR_XACCL_LOW 0x20 // XACCL LOW (W0) 106 #define ADDR_YACCL_HIGH 0x22 // YACCL HIGH (W0) 107 #define ADDR_YACCL_LOW 0x24 // YACCL LOW (W0) 108 #define ADDR_ZACCL_HIGH 0x26 // ZACCL HIGH (W0) 109 #define ADDR_ZACCL_LOW 0x28 // ZACCL LOW (W0) 111 #define ADDR_ID 0x4C // ID LOW (W0) 112 #define ADDR_QTN0_HIGH 0x50 // QTN0 HIGH (W0) 113 #define ADDR_QTN0_LOW 0x52 // QTN0 LOW (W0) 114 #define ADDR_QTN1_HIGH 0x54 // QTN1 HIGH (W0) 115 #define ADDR_QTN1_LOW 0x56 // QTN1 LOW (W0) 116 #define ADDR_QTN2_HIGH 0x58 // QTN2 HIGH (W0) 117 #define ADDR_QTN2_LOW 0x5A // QTN2 LOW (W0) 118 #define ADDR_QTN3_HIGH 0x5C // QTN3 HIGH (W0) 119 #define ADDR_QTN3_LOW 0x5E // QTN3 LOW (W0) 121 #define ADDR_ROLL_HIGH 0x64 // ROLL HIGH (W0) 122 #define ADDR_ROLL_LOW 0x66 // ROLL LOW (W0) 123 #define ADDR_PITCH_HIGH 0x68 // PITCH HIGH (W0) 124 #define ADDR_PITCH_LOW 0x6A // PITCH LOW (W0) 125 #define ADDR_YAW_HIGH 0x6C // YAW HIGH (W0) 126 #define ADDR_YAW_LOW 0x6E // YAW LOW (W0) 128 #define ADDR_XDLTA_HIGH 0x64 // XDLTA HIGH (W0) 129 #define ADDR_XDLTA_LOW 0x66 // XDLTA LOW (W0) 130 #define ADDR_YDLTA_HIGH 0x68 // YDLTA HIGH (W0) 131 #define ADDR_YDLTA_LOW 0x6A // YDLTA LOW (W0) 132 #define ADDR_ZDLTA_HIGH 0x6C // ZDLTA HIGH (W0) 133 #define ADDR_ZDLTA_LOW 0x6E // ZDLTA LOW (W0) 134 #define ADDR_XDLTV_HIGH 0x70 // XDLTV HIGH (W0) 135 #define ADDR_XDLTV_LOW 0x72 // XDLTV LOW (W0) 136 #define ADDR_YDLTV_HIGH 0x74 // YDLTV HIGH (W0) 137 #define ADDR_YDLTV_LOW 0x76 // YDLTV LOW (W0) 138 #define ADDR_ZDLTV_HIGH 0x78 // ZDLTV HIGH (W0) 139 #define ADDR_ZDLTV_LOW 0x7A // ZDLTV LOW (W0) 142 #define ADDR_SIG_CTRL_LO 0x00 // SIG_CTRL Byte0 (W1) 143 #define ADDR_SIG_CTRL_HI 0x01 // SIG_CTRL Byte1 (W1) 144 #define ADDR_MSC_CTRL_LO 0x02 // MSC_CTRL Byte0 (W1) 145 #define ADDR_MSC_CTRL_HI 0x03 // MSC_CTRL Byte1 (W1) 146 #define ADDR_SMPL_CTRL_LO 0x04 // SMPL_CTRL Byte0 (W1) 147 #define ADDR_SMPL_CTRL_HI 0x05 // SMPL_CTRL Byte1 (W1) 148 #define ADDR_FILTER_CTRL_LO 0x06 // FILTER_CTRL Byte0 (W1) 149 #define ADDR_FILTER_CTRL_HI 0x07 // FILTER_CTRL Byte1 (W1) 150 #define ADDR_UART_CTRL_LO 0x08 // UART_CTRL Byte0 (W1) 151 #define ADDR_UART_CTRL_HI 0x09 // UART_CTRL Byte1 (W1) 152 #define ADDR_GLOB_CMD_LO 0x0A // GLOB_CMD Byte0 (W1) 153 #define ADDR_GLOB_CMD_HI 0x0B // GLOB_CMD Byte1 (W1) 154 #define ADDR_BURST_CTRL1_LO 0x0C // BURST_CTRL1 Byte0 (W1) 155 #define ADDR_BURST_CTRL1_HI 0x0D // BURST_CTRL1 Byte1 (W1) 156 #define ADDR_BURST_CTRL2_LO 0x0E // BURST_CTRL2 Byte0 (W1) 157 #define ADDR_BURST_CTRL2_HI 0x0F // BURST_CTRL2 Byte1 (W1) 158 #define ADDR_POL_CTRL_LO 0x10 // POL_CTRL Byte0 (W1) 159 #define ADDR_POL_CTRL_HI 0x11 // POL_CTRL Byte1 (W1) 160 #define ADDR_DLT_CTRL_LO 0x12 // DLT_CTRL Byte0 (W1) 161 #define ADDR_DLT_CTRL_HI 0x13 // DLT_CTRL Byte1 (W1) 162 #define ADDR_ATTI_CTRL_LO 0x14 // ATTI_CTRL Byte0 (W1) 163 #define ADDR_ATTI_CTRL_HI 0x15 // ATTI_CTRL Byte1 (W1) 164 #define ADDR_GLOB_CMD2_LO 0x16 // ATTI_GLOB_CMD2 Byte0 (W1) 165 #define ADDR_GLOB_CMD2_HI 0x17 // ATTI_GLOB_CMD2 Byte1 (W1) 167 #define R_MATRIX_G_M11_LO 0x38 // R_MATRIX_G_M11 Byte0 (W1) 168 #define R_MATRIX_G_M11_HI 0x39 // R_MATRIX_G_M11 Byte1 (W1) 169 #define R_MATRIX_G_M12_LO 0x3A // R_MATRIX_G_M12 Byte0 (W1) 170 #define R_MATRIX_G_M12_HI 0x3B // R_MATRIX_G_M12 Byte1 (W1) 171 #define R_MATRIX_G_M13_LO 0x3C // R_MATRIX_G_M13 Byte0 (W1) 172 #define R_MATRIX_G_M13_HI 0x3D // R_MATRIX_G_M13 Byte1 (W1) 173 #define R_MATRIX_G_M21_LO 0x3E // R_MATRIX_G_M21 Byte0 (W1) 174 #define R_MATRIX_G_M21_HI 0x3F // R_MATRIX_G_M21 Byte1 (W1) 175 #define R_MATRIX_G_M22_LO 0x40 // R_MATRIX_G_M22 Byte0 (W1) 176 #define R_MATRIX_G_M22_HI 0x41 // R_MATRIX_G_M22 Byte1 (W1) 177 #define R_MATRIX_G_M23_LO 0x42 // R_MATRIX_G_M23 Byte0 (W1) 178 #define R_MATRIX_G_M23_HI 0x43 // R_MATRIX_G_M23 Byte1 (W1) 179 #define R_MATRIX_G_M31_LO 0x44 // R_MATRIX_G_M31 Byte0 (W1) 180 #define R_MATRIX_G_M31_HI 0x45 // R_MATRIX_G_M31 Byte1 (W1) 181 #define R_MATRIX_G_M32_LO 0x46 // R_MATRIX_G_M32 Byte0 (W1) 182 #define R_MATRIX_G_M32_HI 0x47 // R_MATRIX_G_M32 Byte1 (W1) 183 #define R_MATRIX_G_M33_LO 0x48 // R_MATRIX_G_M33 Byte0 (W1) 184 #define R_MATRIX_G_M33_HI 0x49 // R_MATRIX_G_M33 Byte1 (W1) 186 #define R_MATRIX_A_M11_LO 0x4A // R_MATRIX_A_M11 Byte0 (W1) 187 #define R_MATRIX_A_M11_HI 0x4B // R_MATRIX_A_M11 Byte1 (W1) 188 #define R_MATRIX_A_M12_LO 0x4C // R_MATRIX_A_M12 Byte0 (W1) 189 #define R_MATRIX_A_M12_HI 0x4D // R_MATRIX_A_M12 Byte1 (W1) 190 #define R_MATRIX_A_M13_LO 0x4E // R_MATRIX_A_M13 Byte0 (W1) 191 #define R_MATRIX_A_M13_HI 0x4F // R_MATRIX_A_M13 Byte1 (W1) 192 #define R_MATRIX_A_M21_LO 0x50 // R_MATRIX_A_M21 Byte0 (W1) 193 #define R_MATRIX_A_M21_HI 0x51 // R_MATRIX_A_M21 Byte1 (W1) 194 #define R_MATRIX_A_M22_LO 0x52 // R_MATRIX_A_M22 Byte0 (W1) 195 #define R_MATRIX_A_M22_HI 0x53 // R_MATRIX_A_M22 Byte1 (W1) 196 #define R_MATRIX_A_M23_LO 0x54 // R_MATRIX_A_M23 Byte0 (W1) 197 #define R_MATRIX_A_M23_HI 0x55 // R_MATRIX_A_M23 Byte1 (W1) 198 #define R_MATRIX_A_M31_LO 0x56 // R_MATRIX_A_M31 Byte0 (W1) 199 #define R_MATRIX_A_M31_HI 0x57 // R_MATRIX_A_M31 Byte1 (W1) 200 #define R_MATRIX_A_M32_LO 0x58 // R_MATRIX_A_M32 Byte0 (W1) 201 #define R_MATRIX_A_M32_HI 0x59 // R_MATRIX_A_M32 Byte1 (W1) 202 #define R_MATRIX_A_M33_LO 0x5A // R_MATRIX_A_M33 Byte0 (W1) 203 #define R_MATRIX_A_M33_HI 0x5B // R_MATRIX_A_M33 Byte1 (W1) 205 #define ADDR_PROD_ID1 0x6A // PROD_ID1(W1) 206 #define ADDR_PROD_ID2 0x6C // PROD_ID2(W1) 207 #define ADDR_PROD_ID3 0x6E // PROD_ID3(W1) 208 #define ADDR_PROD_ID4 0x70 // PROD_ID4(W1) 209 #define ADDR_VERSION 0x72 // VERSION(W1) 210 #define ADDR_SERIAL_NUM1 0x74 // SERIAL_NUM1(W1) 211 #define ADDR_SERIAL_NUM2 0x76 // SERIAL_NUM2(W1) 212 #define ADDR_SERIAL_NUM3 0x78 // SERIAL_NUM3(W1) 213 #define ADDR_SERIAL_NUM4 0x7A // SERIAL_NUM4(W1) 214 #define ADDR_WIN_CTRL 0x7E // WIN_CTRL(W0 or W1) 216 #define CMD_BURST 0x80 // Write value to Issue Burst Read 217 #define CMD_WINDOW0 0x00 // Write value for WIN_CTRL to change to Window 0 218 #define CMD_WINDOW1 0x01 // Write value for WIN_CTRL to change to Window 1 219 #define CMD_BEGIN_SAMPLING \ 220 0x01 // Write value for MODE_CMD_HI to begin sampling 221 #define CMD_END_SAMPLING 0x02 // Write value for MODE_CMD_HI to stop sampling 222 #define CMD_SOFTRESET \ 223 0x80 // Write value for GLOB_CMD_LO to issue Software Reset 224 #define CMD_INITIAL_BACKUP \ 225 0x10 // Write value for GLOB_CMD_LO to issue Initial_Backup 226 #define CMD_FLASHTEST 0x08 // Write value for MSC_CTRL_HI to issue Flashtest 227 #define CMD_SELFTEST 0x04 // Write value for MSC_CTRL_HI to issue Selftest 230 #define CMD_RATE2000 0x00 // TAP>=0 231 #define CMD_RATE1000 0x01 // TAP>=2 232 #define CMD_RATE500 0x02 // TAP>=4 233 #define CMD_RATE250 0x03 // TAP>=8 234 #define CMD_RATE125 0x04 // TAP>=16 235 #define CMD_RATE62_5 0x05 // TAP>=32 236 #define CMD_RATE31_25 0x06 // TAP>=64 237 #define CMD_RATE15_625 0x07 // TAP=128 238 #define CMD_RATE400 0x08 // TAP>=8 239 #define CMD_RATE200 0x09 // TAP>=16 240 #define CMD_RATE100 0x0A // TAP>=32 241 #define CMD_RATE80 0x0B // TAP>=32 242 #define CMD_RATE50 0x0C // TAP>=64 243 #define CMD_RATE40 0x0D // TAP>=64 244 #define CMD_RATE25 0x0E // TAP=128 245 #define CMD_RATE20 0x0F // TAP=128 248 #define CMD_FLTAP0 0x00 249 #define CMD_FLTAP2 0x01 250 #define CMD_FLTAP4 0x02 251 #define CMD_FLTAP8 0x03 252 #define CMD_FLTAP16 0x04 253 #define CMD_FLTAP32 0x05 254 #define CMD_FLTAP64 0x06 255 #define CMD_FLTAP128 0x07 256 #define CMD_FIRTAP32FC50 0x08 257 #define CMD_FIRTAP32FC100 0x09 258 #define CMD_FIRTAP32FC200 0x0A 259 #define CMD_FIRTAP32FC400 0x0B 260 #define CMD_FIRTAP64FC50 0x0C 261 #define CMD_FIRTAP64FC100 0x0D 262 #define CMD_FIRTAP64FC200 0x0E 263 #define CMD_FIRTAP64FC400 0x0F 264 #define CMD_FIRTAP128FC50 0x10 265 #define CMD_FIRTAP128FC100 0x11 266 #define CMD_FIRTAP128FC200 0x12 267 #define CMD_FIRTAP128FC400 0x13 270 #define CMD_ATM_MODEA 0x00 271 #define CMD_ATM_MODEB 0x10 272 #define CMD_ATM_MODEC 0x20 275 #define VAL_SAMPLING_MODE 0x00 276 #define VAL_CONFIG_MODE 0x04