#include <math.h>
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | ADDR_COUNT 0x12 |
#define | ADDR_COUNT_CTRL_LO 0x50 |
#define | ADDR_DIAG_STAT 0x3C |
#define | ADDR_FILTER_CTRL_LO 0x38 |
#define | ADDR_FLAG 0x00 |
#define | ADDR_GLOB_CMD_HI 0x3F |
#define | ADDR_GLOB_CMD_LO 0x3E |
#define | ADDR_GPIO 0x10 |
#define | ADDR_MODE_CTRL_HI 0x39 |
#define | ADDR_MODE_CTRL_LO 0x38 |
#define | ADDR_MSC_CTRL_HI 0x35 |
#define | ADDR_MSC_CTRL_LO 0x34 |
#define | ADDR_SIG_CTRL_HI 0x33 |
#define | ADDR_SIG_CTRL_LO 0x32 |
#define | ADDR_SMPL_CTRL_HI 0x37 |
#define | ADDR_SMPL_CTRL_LO 0x36 |
#define | ADDR_TEMP_HIGH 0x02 |
#define | ADDR_TEMP_LOW 0x02 |
#define | ADDR_UART_CTRL_HI 0x3B |
#define | ADDR_UART_CTRL_LO 0x3A |
#define | ADDR_XACCL_HIGH 0x0A |
#define | ADDR_XACCL_LOW 0x0A |
#define | ADDR_XGYRO_HIGH 0x04 |
#define | ADDR_XGYRO_LOW 0x04 |
#define | ADDR_YACCL_HIGH 0x0C |
#define | ADDR_YACCL_LOW 0x0C |
#define | ADDR_YGYRO_HIGH 0x06 |
#define | ADDR_YGYRO_LOW 0x06 |
#define | ADDR_ZACCL_HIGH 0x0E |
#define | ADDR_ZACCL_LOW 0x0E |
#define | ADDR_ZGYRO_HIGH 0x08 |
#define | ADDR_ZGYRO_LOW 0x08 |
#define | BURSTLEN 22 |
#define | CMD_32BIT 0x30 |
#define | CMD_BEGIN_SAMPLING 0x01 |
#define | CMD_BURST 0x20 |
#define | CMD_DRDY_GPIO1 0x04 |
#define | CMD_EN_BRSTDATA_HI 0x30 |
#define | CMD_EN_BRSTDATA_LO 0x03 |
#define | CMD_EN_NDFLAGS 0x7E |
#define | CMD_END_SAMPLING 0x02 |
#define | CMD_FLASHTEST 0x08 |
#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_RATE1000 0x01 |
#define | CMD_RATE125 0x04 |
#define | CMD_RATE15_625 0x07 |
#define | CMD_RATE250 0x03 |
#define | CMD_RATE31_25 0x06 |
#define | CMD_RATE500 0x02 |
#define | CMD_RATE62_5 0x05 |
#define | CMD_SELFTEST 0x04 |
#define | CMD_SOFTRESET 0x80 |
#define | CMD_WINDOW0 0x00 |
#define | CMD_WINDOW1 0x01 |
#define | EPSON_ACCL_SF (.125) |
#define | EPSON_GYRO_SF (.0125) |
#define | FALSE 0 |
#define | IMU_MODEL G350 |
#define | SENSOR_READ_LEN 10 |
#define | TRUE 1 |
#define | VAL_CONFIG_MODE 0x04 |
#define | VAL_SAMPLING_MODE 0x00 |
#define ADDR_COUNT 0x12 |
Definition at line 75 of file sensor_epsonG350.h.
#define ADDR_COUNT_CTRL_LO 0x50 |
Definition at line 90 of file sensor_epsonG350.h.
#define ADDR_DIAG_STAT 0x3C |
Definition at line 87 of file sensor_epsonG350.h.
#define ADDR_FILTER_CTRL_LO 0x38 |
Definition at line 82 of file sensor_epsonG350.h.
#define ADDR_FLAG 0x00 |
Definition at line 59 of file sensor_epsonG350.h.
#define ADDR_GLOB_CMD_HI 0x3F |
Definition at line 89 of file sensor_epsonG350.h.
#define ADDR_GLOB_CMD_LO 0x3E |
Definition at line 88 of file sensor_epsonG350.h.
#define ADDR_GPIO 0x10 |
Definition at line 74 of file sensor_epsonG350.h.
#define ADDR_MODE_CTRL_HI 0x39 |
Definition at line 84 of file sensor_epsonG350.h.
#define ADDR_MODE_CTRL_LO 0x38 |
Definition at line 83 of file sensor_epsonG350.h.
#define ADDR_MSC_CTRL_HI 0x35 |
Definition at line 79 of file sensor_epsonG350.h.
#define ADDR_MSC_CTRL_LO 0x34 |
Definition at line 78 of file sensor_epsonG350.h.
#define ADDR_SIG_CTRL_HI 0x33 |
Definition at line 77 of file sensor_epsonG350.h.
#define ADDR_SIG_CTRL_LO 0x32 |
Definition at line 76 of file sensor_epsonG350.h.
#define ADDR_SMPL_CTRL_HI 0x37 |
Definition at line 81 of file sensor_epsonG350.h.
#define ADDR_SMPL_CTRL_LO 0x36 |
Definition at line 80 of file sensor_epsonG350.h.
#define ADDR_TEMP_HIGH 0x02 |
Definition at line 61 of file sensor_epsonG350.h.
#define ADDR_TEMP_LOW 0x02 |
Definition at line 60 of file sensor_epsonG350.h.
#define ADDR_UART_CTRL_HI 0x3B |
Definition at line 86 of file sensor_epsonG350.h.
#define ADDR_UART_CTRL_LO 0x3A |
Definition at line 85 of file sensor_epsonG350.h.
#define ADDR_XACCL_HIGH 0x0A |
Definition at line 68 of file sensor_epsonG350.h.
#define ADDR_XACCL_LOW 0x0A |
Definition at line 69 of file sensor_epsonG350.h.
#define ADDR_XGYRO_HIGH 0x04 |
Definition at line 62 of file sensor_epsonG350.h.
#define ADDR_XGYRO_LOW 0x04 |
Definition at line 63 of file sensor_epsonG350.h.
#define ADDR_YACCL_HIGH 0x0C |
Definition at line 70 of file sensor_epsonG350.h.
#define ADDR_YACCL_LOW 0x0C |
Definition at line 71 of file sensor_epsonG350.h.
#define ADDR_YGYRO_HIGH 0x06 |
Definition at line 64 of file sensor_epsonG350.h.
#define ADDR_YGYRO_LOW 0x06 |
Definition at line 65 of file sensor_epsonG350.h.
#define ADDR_ZACCL_HIGH 0x0E |
Definition at line 72 of file sensor_epsonG350.h.
#define ADDR_ZACCL_LOW 0x0E |
Definition at line 73 of file sensor_epsonG350.h.
#define ADDR_ZGYRO_HIGH 0x08 |
Definition at line 66 of file sensor_epsonG350.h.
#define ADDR_ZGYRO_LOW 0x08 |
Definition at line 67 of file sensor_epsonG350.h.
#define BURSTLEN 22 |
Definition at line 33 of file sensor_epsonG350.h.
#define CMD_32BIT 0x30 |
Definition at line 100 of file sensor_epsonG350.h.
#define CMD_BEGIN_SAMPLING 0x01 |
Definition at line 101 of file sensor_epsonG350.h.
#define CMD_BURST 0x20 |
Definition at line 92 of file sensor_epsonG350.h.
#define CMD_DRDY_GPIO1 0x04 |
Definition at line 99 of file sensor_epsonG350.h.
#define CMD_EN_BRSTDATA_HI 0x30 |
Definition at line 96 of file sensor_epsonG350.h.
#define CMD_EN_BRSTDATA_LO 0x03 |
Definition at line 95 of file sensor_epsonG350.h.
#define CMD_EN_NDFLAGS 0x7E |
Definition at line 94 of file sensor_epsonG350.h.
#define CMD_END_SAMPLING 0x02 |
Definition at line 102 of file sensor_epsonG350.h.
#define CMD_FLASHTEST 0x08 |
Definition at line 104 of file sensor_epsonG350.h.
#define CMD_FLTAP128 0x07 |
Definition at line 123 of file sensor_epsonG350.h.
#define CMD_FLTAP16 0x04 |
Definition at line 120 of file sensor_epsonG350.h.
#define CMD_FLTAP2 0x01 |
Definition at line 117 of file sensor_epsonG350.h.
#define CMD_FLTAP32 0x05 |
Definition at line 121 of file sensor_epsonG350.h.
#define CMD_FLTAP4 0x02 |
Definition at line 118 of file sensor_epsonG350.h.
#define CMD_FLTAP64 0x06 |
Definition at line 122 of file sensor_epsonG350.h.
#define CMD_FLTAP8 0x03 |
Definition at line 119 of file sensor_epsonG350.h.
#define CMD_RATE1000 0x01 |
Definition at line 108 of file sensor_epsonG350.h.
#define CMD_RATE125 0x04 |
Definition at line 111 of file sensor_epsonG350.h.
#define CMD_RATE15_625 0x07 |
Definition at line 114 of file sensor_epsonG350.h.
#define CMD_RATE250 0x03 |
Definition at line 110 of file sensor_epsonG350.h.
#define CMD_RATE31_25 0x06 |
Definition at line 113 of file sensor_epsonG350.h.
#define CMD_RATE500 0x02 |
Definition at line 109 of file sensor_epsonG350.h.
#define CMD_RATE62_5 0x05 |
Definition at line 112 of file sensor_epsonG350.h.
#define CMD_SELFTEST 0x04 |
Definition at line 105 of file sensor_epsonG350.h.
#define CMD_SOFTRESET 0x80 |
Definition at line 103 of file sensor_epsonG350.h.
#define CMD_WINDOW0 0x00 |
Definition at line 97 of file sensor_epsonG350.h.
#define CMD_WINDOW1 0x01 |
Definition at line 98 of file sensor_epsonG350.h.
#define EPSON_ACCL_SF (.125) |
Definition at line 23 of file sensor_epsonG350.h.
#define EPSON_GYRO_SF (.0125) |
Definition at line 24 of file sensor_epsonG350.h.
#define FALSE 0 |
Definition at line 20 of file sensor_epsonG350.h.
#define IMU_MODEL G350 |
Definition at line 22 of file sensor_epsonG350.h.
#define SENSOR_READ_LEN 10 |
Definition at line 31 of file sensor_epsonG350.h.
#define TRUE 1 |
Definition at line 19 of file sensor_epsonG350.h.
#define VAL_CONFIG_MODE 0x04 |
Definition at line 127 of file sensor_epsonG350.h.
#define VAL_SAMPLING_MODE 0x00 |
Definition at line 126 of file sensor_epsonG350.h.