Macros
sensor_epsonG354.h File Reference
#include <math.h>
#include <stdio.h>
Include dependency graph for sensor_epsonG354.h:

Go to the source code of this file.

Macros

#define ADDR_BURST_CTRL1_HI   0x0D
 
#define ADDR_BURST_CTRL1_LO   0x0C
 
#define ADDR_BURST_CTRL2_HI   0x0F
 
#define ADDR_BURST_CTRL2_LO   0x0E
 
#define ADDR_COUNT   0x0A
 
#define ADDR_DIAG_STAT   0x04
 
#define ADDR_DLT_CTRL_HI   0x13
 
#define ADDR_DLT_CTRL_LO   0x12
 
#define ADDR_FILTER_CTRL_HI   0x07
 
#define ADDR_FILTER_CTRL_LO   0x06
 
#define ADDR_FLAG   0x06
 
#define ADDR_GLOB_CMD_HI   0x0B
 
#define ADDR_GLOB_CMD_LO   0x0A
 
#define ADDR_GPIO   0x08
 
#define ADDR_MODE_CTRL_HI   0x03
 
#define ADDR_MODE_CTRL_LO   0x02
 
#define ADDR_MSC_CTRL_HI   0x03
 
#define ADDR_MSC_CTRL_LO   0x02
 
#define ADDR_POL_CTRL_HI   0x11
 
#define ADDR_POL_CTRL_LO   0x10
 
#define ADDR_PROD_ID1   0x6A
 
#define ADDR_PROD_ID2   0x6C
 
#define ADDR_PROD_ID3   0x6E
 
#define ADDR_PROD_ID4   0x70
 
#define ADDR_SERIAL_NUM1   0x74
 
#define ADDR_SERIAL_NUM2   0x76
 
#define ADDR_SERIAL_NUM3   0x78
 
#define ADDR_SERIAL_NUM4   0x7A
 
#define ADDR_SIG_CTRL_HI   0x01
 
#define ADDR_SIG_CTRL_LO   0x00
 
#define ADDR_SMPL_CTRL_HI   0x05
 
#define ADDR_SMPL_CTRL_LO   0x04
 
#define ADDR_TEMP_HIGH   0x0E
 
#define ADDR_TEMP_LOW   0x10
 
#define ADDR_UART_CTRL_HI   0x09
 
#define ADDR_UART_CTRL_LO   0x08
 
#define ADDR_VERSION   0x72
 
#define ADDR_WIN_CTRL   0x7E
 
#define ADDR_XACCL_HIGH   0x1E
 
#define ADDR_XACCL_LOW   0x20
 
#define ADDR_XDLTA_HIGH   0x64
 
#define ADDR_XDLTA_LOW   0x66
 
#define ADDR_XDLTV_HIGH   0x70
 
#define ADDR_XDLTV_LOW   0x72
 
#define ADDR_XGYRO_HIGH   0x12
 
#define ADDR_XGYRO_LOW   0x14
 
#define ADDR_YACCL_HIGH   0x22
 
#define ADDR_YACCL_LOW   0x24
 
#define ADDR_YDLTA_HIGH   0x68
 
#define ADDR_YDLTA_LOW   0x6A
 
#define ADDR_YDLTV_HIGH   0x74
 
#define ADDR_YDLTV_LOW   0x76
 
#define ADDR_YGYRO_HIGH   0x16
 
#define ADDR_YGYRO_LOW   0x18
 
#define ADDR_ZACCL_HIGH   0x26
 
#define ADDR_ZACCL_LOW   0x28
 
#define ADDR_ZDLTA_HIGH   0x6C
 
#define ADDR_ZDLTA_LOW   0x6E
 
#define ADDR_ZDLTV_HIGH   0x78
 
#define ADDR_ZDLTV_LOW   0x7A
 
#define ADDR_ZGYRO_HIGH   0x1A
 
#define ADDR_ZGYRO_LOW   0x1C
 
#define BURSTLEN   30
 
#define CMD_32BIT   0x30
 
#define CMD_BEGIN_SAMPLING   0x01
 
#define CMD_BURST   0x80
 
#define CMD_EN_BRSTDATA_HI   0x30
 
#define CMD_EN_BRSTDATA_LO   0x03
 
#define CMD_EN_NDFLAGS   0x7E
 
#define CMD_END_SAMPLING   0x02
 
#define CMD_FIRTAP128FC100   0x11
 
#define CMD_FIRTAP128FC200   0x12
 
#define CMD_FIRTAP128FC400   0x13
 
#define CMD_FIRTAP128FC50   0x10
 
#define CMD_FIRTAP32FC100   0x09
 
#define CMD_FIRTAP32FC200   0x0A
 
#define CMD_FIRTAP32FC400   0x0B
 
#define CMD_FIRTAP32FC50   0x08
 
#define CMD_FIRTAP64FC100   0x0D
 
#define CMD_FIRTAP64FC200   0x0E
 
#define CMD_FIRTAP64FC400   0x0F
 
#define CMD_FIRTAP64FC50   0x0C
 
#define CMD_FLASHTEST   0x08
 
#define CMD_FLTAP0   0x00
 
#define CMD_FLTAP128   0x07
 
#define CMD_FLTAP16   0x04
 
#define CMD_FLTAP2   0x01
 
#define CMD_FLTAP32   0x05
 
#define CMD_FLTAP4   0x02
 
#define CMD_FLTAP64   0x06
 
#define CMD_FLTAP8   0x03
 
#define CMD_RATE100   0x0A
 
#define CMD_RATE1000   0x01
 
#define CMD_RATE125   0x04
 
#define CMD_RATE15_625   0x07
 
#define CMD_RATE20   0x0F
 
#define CMD_RATE200   0x09
 
#define CMD_RATE2000   0x00
 
#define CMD_RATE25   0x0E
 
#define CMD_RATE250   0x03
 
#define CMD_RATE31_25   0x06
 
#define CMD_RATE40   0x0D
 
#define CMD_RATE400   0x08
 
#define CMD_RATE50   0x0C
 
#define CMD_RATE500   0x02
 
#define CMD_RATE62_5   0x05
 
#define CMD_RATE80   0x0B
 
#define CMD_RSTCNTR_DRDY   0x44
 
#define CMD_SELFTEST   0x04
 
#define CMD_SOFTRESET   0x80
 
#define CMD_WINDOW0   0x00
 
#define CMD_WINDOW1   0x01
 
#define EPSON_ACCL_SF   (.200)
 
#define EPSON_GYRO_SF   (.016)
 
#define FALSE   0
 
#define SENSOR_READ_LEN   14
 
#define TRUE   1
 
#define VAL_CONFIG_MODE   0x04
 
#define VAL_SAMPLING_MODE   0x00
 

Macro Definition Documentation

#define ADDR_BURST_CTRL1_HI   0x0D

Definition at line 104 of file sensor_epsonG354.h.

#define ADDR_BURST_CTRL1_LO   0x0C

Definition at line 103 of file sensor_epsonG354.h.

#define ADDR_BURST_CTRL2_HI   0x0F

Definition at line 106 of file sensor_epsonG354.h.

#define ADDR_BURST_CTRL2_LO   0x0E

Definition at line 105 of file sensor_epsonG354.h.

#define ADDR_COUNT   0x0A

Definition at line 61 of file sensor_epsonG354.h.

#define ADDR_DIAG_STAT   0x04

Definition at line 58 of file sensor_epsonG354.h.

#define ADDR_DLT_CTRL_HI   0x13

Definition at line 110 of file sensor_epsonG354.h.

#define ADDR_DLT_CTRL_LO   0x12

Definition at line 109 of file sensor_epsonG354.h.

#define ADDR_FILTER_CTRL_HI   0x07

Definition at line 98 of file sensor_epsonG354.h.

#define ADDR_FILTER_CTRL_LO   0x06

Definition at line 97 of file sensor_epsonG354.h.

#define ADDR_FLAG   0x06

Definition at line 59 of file sensor_epsonG354.h.

#define ADDR_GLOB_CMD_HI   0x0B

Definition at line 102 of file sensor_epsonG354.h.

#define ADDR_GLOB_CMD_LO   0x0A

Definition at line 101 of file sensor_epsonG354.h.

#define ADDR_GPIO   0x08

Definition at line 60 of file sensor_epsonG354.h.

#define ADDR_MODE_CTRL_HI   0x03

Definition at line 57 of file sensor_epsonG354.h.

#define ADDR_MODE_CTRL_LO   0x02

Definition at line 56 of file sensor_epsonG354.h.

#define ADDR_MSC_CTRL_HI   0x03

Definition at line 94 of file sensor_epsonG354.h.

#define ADDR_MSC_CTRL_LO   0x02

Definition at line 93 of file sensor_epsonG354.h.

#define ADDR_POL_CTRL_HI   0x11

Definition at line 108 of file sensor_epsonG354.h.

#define ADDR_POL_CTRL_LO   0x10

Definition at line 107 of file sensor_epsonG354.h.

#define ADDR_PROD_ID1   0x6A

Definition at line 112 of file sensor_epsonG354.h.

#define ADDR_PROD_ID2   0x6C

Definition at line 113 of file sensor_epsonG354.h.

#define ADDR_PROD_ID3   0x6E

Definition at line 114 of file sensor_epsonG354.h.

#define ADDR_PROD_ID4   0x70

Definition at line 115 of file sensor_epsonG354.h.

#define ADDR_SERIAL_NUM1   0x74

Definition at line 117 of file sensor_epsonG354.h.

#define ADDR_SERIAL_NUM2   0x76

Definition at line 118 of file sensor_epsonG354.h.

#define ADDR_SERIAL_NUM3   0x78

Definition at line 119 of file sensor_epsonG354.h.

#define ADDR_SERIAL_NUM4   0x7A

Definition at line 120 of file sensor_epsonG354.h.

#define ADDR_SIG_CTRL_HI   0x01

Definition at line 92 of file sensor_epsonG354.h.

#define ADDR_SIG_CTRL_LO   0x00

Definition at line 91 of file sensor_epsonG354.h.

#define ADDR_SMPL_CTRL_HI   0x05

Definition at line 96 of file sensor_epsonG354.h.

#define ADDR_SMPL_CTRL_LO   0x04

Definition at line 95 of file sensor_epsonG354.h.

#define ADDR_TEMP_HIGH   0x0E

Definition at line 62 of file sensor_epsonG354.h.

#define ADDR_TEMP_LOW   0x10

Definition at line 63 of file sensor_epsonG354.h.

#define ADDR_UART_CTRL_HI   0x09

Definition at line 100 of file sensor_epsonG354.h.

#define ADDR_UART_CTRL_LO   0x08

Definition at line 99 of file sensor_epsonG354.h.

#define ADDR_VERSION   0x72

Definition at line 116 of file sensor_epsonG354.h.

#define ADDR_WIN_CTRL   0x7E

Definition at line 121 of file sensor_epsonG354.h.

#define ADDR_XACCL_HIGH   0x1E

Definition at line 70 of file sensor_epsonG354.h.

#define ADDR_XACCL_LOW   0x20

Definition at line 71 of file sensor_epsonG354.h.

#define ADDR_XDLTA_HIGH   0x64

Definition at line 77 of file sensor_epsonG354.h.

#define ADDR_XDLTA_LOW   0x66

Definition at line 78 of file sensor_epsonG354.h.

#define ADDR_XDLTV_HIGH   0x70

Definition at line 83 of file sensor_epsonG354.h.

#define ADDR_XDLTV_LOW   0x72

Definition at line 84 of file sensor_epsonG354.h.

#define ADDR_XGYRO_HIGH   0x12

Definition at line 64 of file sensor_epsonG354.h.

#define ADDR_XGYRO_LOW   0x14

Definition at line 65 of file sensor_epsonG354.h.

#define ADDR_YACCL_HIGH   0x22

Definition at line 72 of file sensor_epsonG354.h.

#define ADDR_YACCL_LOW   0x24

Definition at line 73 of file sensor_epsonG354.h.

#define ADDR_YDLTA_HIGH   0x68

Definition at line 79 of file sensor_epsonG354.h.

#define ADDR_YDLTA_LOW   0x6A

Definition at line 80 of file sensor_epsonG354.h.

#define ADDR_YDLTV_HIGH   0x74

Definition at line 85 of file sensor_epsonG354.h.

#define ADDR_YDLTV_LOW   0x76

Definition at line 86 of file sensor_epsonG354.h.

#define ADDR_YGYRO_HIGH   0x16

Definition at line 66 of file sensor_epsonG354.h.

#define ADDR_YGYRO_LOW   0x18

Definition at line 67 of file sensor_epsonG354.h.

#define ADDR_ZACCL_HIGH   0x26

Definition at line 74 of file sensor_epsonG354.h.

#define ADDR_ZACCL_LOW   0x28

Definition at line 75 of file sensor_epsonG354.h.

#define ADDR_ZDLTA_HIGH   0x6C

Definition at line 81 of file sensor_epsonG354.h.

#define ADDR_ZDLTA_LOW   0x6E

Definition at line 82 of file sensor_epsonG354.h.

#define ADDR_ZDLTV_HIGH   0x78

Definition at line 87 of file sensor_epsonG354.h.

#define ADDR_ZDLTV_LOW   0x7A

Definition at line 88 of file sensor_epsonG354.h.

#define ADDR_ZGYRO_HIGH   0x1A

Definition at line 68 of file sensor_epsonG354.h.

#define ADDR_ZGYRO_LOW   0x1C

Definition at line 69 of file sensor_epsonG354.h.

#define BURSTLEN   30

Definition at line 31 of file sensor_epsonG354.h.

#define CMD_32BIT   0x30

Definition at line 131 of file sensor_epsonG354.h.

#define CMD_BEGIN_SAMPLING   0x01

Definition at line 132 of file sensor_epsonG354.h.

#define CMD_BURST   0x80

Definition at line 123 of file sensor_epsonG354.h.

#define CMD_EN_BRSTDATA_HI   0x30

Definition at line 127 of file sensor_epsonG354.h.

#define CMD_EN_BRSTDATA_LO   0x03

Definition at line 126 of file sensor_epsonG354.h.

#define CMD_EN_NDFLAGS   0x7E

Definition at line 125 of file sensor_epsonG354.h.

#define CMD_END_SAMPLING   0x02

Definition at line 133 of file sensor_epsonG354.h.

#define CMD_FIRTAP128FC100   0x11

Definition at line 174 of file sensor_epsonG354.h.

#define CMD_FIRTAP128FC200   0x12

Definition at line 175 of file sensor_epsonG354.h.

#define CMD_FIRTAP128FC400   0x13

Definition at line 176 of file sensor_epsonG354.h.

#define CMD_FIRTAP128FC50   0x10

Definition at line 173 of file sensor_epsonG354.h.

#define CMD_FIRTAP32FC100   0x09

Definition at line 166 of file sensor_epsonG354.h.

#define CMD_FIRTAP32FC200   0x0A

Definition at line 167 of file sensor_epsonG354.h.

#define CMD_FIRTAP32FC400   0x0B

Definition at line 168 of file sensor_epsonG354.h.

#define CMD_FIRTAP32FC50   0x08

Definition at line 165 of file sensor_epsonG354.h.

#define CMD_FIRTAP64FC100   0x0D

Definition at line 170 of file sensor_epsonG354.h.

#define CMD_FIRTAP64FC200   0x0E

Definition at line 171 of file sensor_epsonG354.h.

#define CMD_FIRTAP64FC400   0x0F

Definition at line 172 of file sensor_epsonG354.h.

#define CMD_FIRTAP64FC50   0x0C

Definition at line 169 of file sensor_epsonG354.h.

#define CMD_FLASHTEST   0x08

Definition at line 135 of file sensor_epsonG354.h.

#define CMD_FLTAP0   0x00

Definition at line 157 of file sensor_epsonG354.h.

#define CMD_FLTAP128   0x07

Definition at line 164 of file sensor_epsonG354.h.

#define CMD_FLTAP16   0x04

Definition at line 161 of file sensor_epsonG354.h.

#define CMD_FLTAP2   0x01

Definition at line 158 of file sensor_epsonG354.h.

#define CMD_FLTAP32   0x05

Definition at line 162 of file sensor_epsonG354.h.

#define CMD_FLTAP4   0x02

Definition at line 159 of file sensor_epsonG354.h.

#define CMD_FLTAP64   0x06

Definition at line 163 of file sensor_epsonG354.h.

#define CMD_FLTAP8   0x03

Definition at line 160 of file sensor_epsonG354.h.

#define CMD_RATE100   0x0A

Definition at line 149 of file sensor_epsonG354.h.

#define CMD_RATE1000   0x01

Definition at line 140 of file sensor_epsonG354.h.

#define CMD_RATE125   0x04

Definition at line 143 of file sensor_epsonG354.h.

#define CMD_RATE15_625   0x07

Definition at line 146 of file sensor_epsonG354.h.

#define CMD_RATE20   0x0F

Definition at line 154 of file sensor_epsonG354.h.

#define CMD_RATE200   0x09

Definition at line 148 of file sensor_epsonG354.h.

#define CMD_RATE2000   0x00

Definition at line 139 of file sensor_epsonG354.h.

#define CMD_RATE25   0x0E

Definition at line 153 of file sensor_epsonG354.h.

#define CMD_RATE250   0x03

Definition at line 142 of file sensor_epsonG354.h.

#define CMD_RATE31_25   0x06

Definition at line 145 of file sensor_epsonG354.h.

#define CMD_RATE40   0x0D

Definition at line 152 of file sensor_epsonG354.h.

#define CMD_RATE400   0x08

Definition at line 147 of file sensor_epsonG354.h.

#define CMD_RATE50   0x0C

Definition at line 151 of file sensor_epsonG354.h.

#define CMD_RATE500   0x02

Definition at line 141 of file sensor_epsonG354.h.

#define CMD_RATE62_5   0x05

Definition at line 144 of file sensor_epsonG354.h.

#define CMD_RATE80   0x0B

Definition at line 150 of file sensor_epsonG354.h.

#define CMD_RSTCNTR_DRDY   0x44

Definition at line 130 of file sensor_epsonG354.h.

#define CMD_SELFTEST   0x04

Definition at line 136 of file sensor_epsonG354.h.

#define CMD_SOFTRESET   0x80

Definition at line 134 of file sensor_epsonG354.h.

#define CMD_WINDOW0   0x00

Definition at line 128 of file sensor_epsonG354.h.

#define CMD_WINDOW1   0x01

Definition at line 129 of file sensor_epsonG354.h.

#define EPSON_ACCL_SF   (.200)

Definition at line 22 of file sensor_epsonG354.h.

#define EPSON_GYRO_SF   (.016)

Definition at line 23 of file sensor_epsonG354.h.

#define FALSE   0

Definition at line 20 of file sensor_epsonG354.h.

#define SENSOR_READ_LEN   14

Definition at line 29 of file sensor_epsonG354.h.

#define TRUE   1

Definition at line 19 of file sensor_epsonG354.h.

#define VAL_CONFIG_MODE   0x04

Definition at line 180 of file sensor_epsonG354.h.

#define VAL_SAMPLING_MODE   0x00

Definition at line 179 of file sensor_epsonG354.h.



epson_g364_imu_driver
Author(s):
autogenerated on Mon Jun 10 2019 13:12:32