Go to the documentation of this file. 18 #define EPSON_ACCL_SF (.200) 19 #define EPSON_GYRO_SF (.008) 20 #define EPSON_TEMP_SF (-0.0037918) 21 #define EPSON_ATTI_SF (0.0) 22 #define EPSON_COUNT_SF (21333) 24 #define EPSON_DA_SF0 (0.0) 25 #define EPSON_DA_SF1 (0.0) 26 #define EPSON_DA_SF2 (0.0) 27 #define EPSON_DA_SF3 (0.0) 28 #define EPSON_DA_SF4 (0.0) 29 #define EPSON_DA_SF5 (0.0) 30 #define EPSON_DA_SF6 (0.0) 31 #define EPSON_DA_SF7 (0.0) 32 #define EPSON_DA_SF8 (0.0) 33 #define EPSON_DA_SF9 (0.0) 34 #define EPSON_DA_SF10 (0.0) 35 #define EPSON_DA_SF11 (0.0) 36 #define EPSON_DA_SF12 (0.0) 37 #define EPSON_DA_SF13 (0.0) 38 #define EPSON_DA_SF14 (0.0) 39 #define EPSON_DA_SF15 (0.0) 41 #define EPSON_DV_SF0 (0.0) 42 #define EPSON_DV_SF1 (0.0) 43 #define EPSON_DV_SF2 (0.0) 44 #define EPSON_DV_SF3 (0.0) 45 #define EPSON_DV_SF4 (0.0) 46 #define EPSON_DV_SF5 (0.0) 47 #define EPSON_DV_SF6 (0.0) 48 #define EPSON_DV_SF7 (0.0) 49 #define EPSON_DV_SF8 (0.0) 50 #define EPSON_DV_SF9 (0.0) 51 #define EPSON_DV_SF10 (0.0) 52 #define EPSON_DV_SF11 (0.0) 53 #define EPSON_DV_SF12 (0.0) 54 #define EPSON_DV_SF13 (0.0) 55 #define EPSON_DV_SF14 (0.0) 56 #define EPSON_DV_SF15 (0.0) 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_TEMP_HIGH 0x0E // TEMPC HIGH (W0) 96 #define ADDR_TEMP_LOW 0x10 // TEMPC LOW (W0) 97 #define ADDR_XGYRO_HIGH 0x12 // XGYRO HIGH (W0) 98 #define ADDR_XGYRO_LOW 0x14 // XGYRO LOW (W0) 99 #define ADDR_YGYRO_HIGH 0x16 // YGYRO HIGH (W0) 100 #define ADDR_YGYRO_LOW 0x18 // YGYRO LOW (W0) 101 #define ADDR_ZGYRO_HIGH 0x1A // ZGYRO HIGH (W0) 102 #define ADDR_ZGYRO_LOW 0x1C // ZGYRO LOW (W0) 103 #define ADDR_XACCL_HIGH 0x1E // XACCL HIGH (W0) 104 #define ADDR_XACCL_LOW 0x20 // XACCL LOW (W0) 105 #define ADDR_YACCL_HIGH 0x22 // YACCL HIGH (W0) 106 #define ADDR_YACCL_LOW 0x24 // YACCL LOW (W0) 107 #define ADDR_ZACCL_HIGH 0x26 // ZACCL HIGH (W0) 108 #define ADDR_ZACCL_LOW 0x28 // ZACCL LOW (W0) 111 #define ADDR_SIG_CTRL_LO 0x00 // SIG_CTRL Byte0 (W1) 112 #define ADDR_SIG_CTRL_HI 0x01 // SIG_CTRL Byte1 (W1) 113 #define ADDR_MSC_CTRL_LO 0x02 // MSC_CTRL Byte0 (W1) 114 #define ADDR_MSC_CTRL_HI 0x03 // MSC_CTRL Byte1 (W1) 115 #define ADDR_SMPL_CTRL_LO 0x04 // SMPL_CTRL Byte0 (W1) 116 #define ADDR_SMPL_CTRL_HI 0x05 // SMPL_CTRL Byte1 (W1) 117 #define ADDR_FILTER_CTRL_LO 0x06 // FILTER_CTRL Byte0 (W1) 118 #define ADDR_FILTER_CTRL_HI 0x07 // FILTER_CTRL Byte1 (W1) 119 #define ADDR_UART_CTRL_LO 0x08 // UART_CTRL Byte0 (W1) 120 #define ADDR_UART_CTRL_HI 0x09 // UART_CTRL Byte1 (W1) 121 #define ADDR_GLOB_CMD_LO 0x0A // GLOB_CMD Byte0 (W1) 122 #define ADDR_GLOB_CMD_HI 0x0B // GLOB_CMD Byte1 (W1) 123 #define ADDR_BURST_CTRL1_LO 0x0C // BURST_CTRL1 Byte0 (W1) 124 #define ADDR_BURST_CTRL1_HI 0x0D // BURST_CTRL1 Byte1 (W1) 125 #define ADDR_BURST_CTRL2_LO 0x0E // BURST_CTRL2 Byte0 (W1) 126 #define ADDR_BURST_CTRL2_HI 0x0F // BURST_CTRL2 Byte1 (W1) 127 #define ADDR_POL_CTRL_LO 0x10 // POL_CTRL Byte0 (W1) 128 #define ADDR_POL_CTRL_HI 0x11 // POL_CTRL Byte1 (W1) 130 #define ADDR_PROD_ID1 0x6A // PROD_ID1(W1) 131 #define ADDR_PROD_ID2 0x6C // PROD_ID2(W1) 132 #define ADDR_PROD_ID3 0x6E // PROD_ID3(W1) 133 #define ADDR_PROD_ID4 0x70 // PROD_ID4(W1) 134 #define ADDR_VERSION 0x72 // VERSION(W1) 135 #define ADDR_SERIAL_NUM1 0x74 // SERIAL_NUM1(W1) 136 #define ADDR_SERIAL_NUM2 0x76 // SERIAL_NUM2(W1) 137 #define ADDR_SERIAL_NUM3 0x78 // SERIAL_NUM3(W1) 138 #define ADDR_SERIAL_NUM4 0x7A // SERIAL_NUM4(W1) 139 #define ADDR_WIN_CTRL 0x7E // WIN_CTRL(W0 or W1) 141 #define CMD_BURST 0x80 // Write value to Issue Burst Read 142 #define CMD_WINDOW0 0x00 // Write value for WIN_CTRL to change to Window 0 143 #define CMD_WINDOW1 0x01 // Write value for WIN_CTRL to change to Window 1 144 #define CMD_BEGIN_SAMPLING \ 145 0x01 // Write value for MODE_CMD_HI to begin sampling 146 #define CMD_END_SAMPLING 0x02 // Write value for MODE_CMD_HI to stop sampling 147 #define CMD_SOFTRESET \ 148 0x80 // Write value for GLOB_CMD_LO to issue Software Reset 149 #define CMD_FLASHTEST 0x08 // Write value for MSC_CTRL_HI to issue Flashtest 150 #define CMD_SELFTEST 0x04 // Write value for MSC_CTRL_HI to issue Selftest 153 #define CMD_RATE2000 0x00 // TAP>=0 154 #define CMD_RATE1000 0x01 // TAP>=2 155 #define CMD_RATE500 0x02 // TAP>=4 156 #define CMD_RATE250 0x03 // TAP>=8 157 #define CMD_RATE125 0x04 // TAP>=16 158 #define CMD_RATE62_5 0x05 // TAP>=32 159 #define CMD_RATE31_25 0x06 // TAP>=64 160 #define CMD_RATE15_625 0x07 // TAP=128 161 #define CMD_RATE400 0x08 // TAP>=8 162 #define CMD_RATE200 0x09 // TAP>=16 163 #define CMD_RATE100 0x0A // TAP>=32 164 #define CMD_RATE80 0x0B // TAP>=32 165 #define CMD_RATE50 0x0C // TAP>=64 166 #define CMD_RATE40 0x0D // TAP>=64 167 #define CMD_RATE25 0x0E // TAP=128 168 #define CMD_RATE20 0x0F // TAP=128 171 #define CMD_FLTAP0 0x00 172 #define CMD_FLTAP2 0x01 173 #define CMD_FLTAP4 0x02 174 #define CMD_FLTAP8 0x03 175 #define CMD_FLTAP16 0x04 176 #define CMD_FLTAP32 0x05 177 #define CMD_FLTAP64 0x06 178 #define CMD_FLTAP128 0x07 179 #define CMD_FIRTAP32FC50 0x08 180 #define CMD_FIRTAP32FC100 0x09 181 #define CMD_FIRTAP32FC200 0x0A 182 #define CMD_FIRTAP32FC400 0x0B 183 #define CMD_FIRTAP64FC50 0x0C 184 #define CMD_FIRTAP64FC100 0x0D 185 #define CMD_FIRTAP64FC200 0x0E 186 #define CMD_FIRTAP64FC400 0x0F 187 #define CMD_FIRTAP128FC50 0x10 188 #define CMD_FIRTAP128FC100 0x11 189 #define CMD_FIRTAP128FC200 0x12 190 #define CMD_FIRTAP128FC400 0x13 193 #define VAL_SAMPLING_MODE 0x00 194 #define VAL_CONFIG_MODE 0x04