#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_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 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_VERSION 0x72 |
#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_FLTAP1 0x02 |
#define | CMD_FLTAP16 0x06 |
#define | CMD_FLTAP2 0x03 |
#define | CMD_FLTAP32 0x07 |
#define | CMD_FLTAP4 0x04 |
#define | CMD_FLTAP8 0x05 |
#define | CMD_RATE1000 0x01 |
#define | CMD_RATE125 0x04 |
#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 (.180) |
#define | EPSON_GYRO_SF (.015) |
#define | FALSE 0 |
#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 72 of file sensor_epsonV340.h.
#define ADDR_COUNT_CTRL_LO 0x50 |
Definition at line 87 of file sensor_epsonV340.h.
#define ADDR_DIAG_STAT 0x3C |
Definition at line 84 of file sensor_epsonV340.h.
#define ADDR_FILTER_CTRL_LO 0x38 |
Definition at line 79 of file sensor_epsonV340.h.
#define ADDR_FLAG 0x00 |
Definition at line 56 of file sensor_epsonV340.h.
#define ADDR_GLOB_CMD_HI 0x3F |
Definition at line 86 of file sensor_epsonV340.h.
#define ADDR_GLOB_CMD_LO 0x3E |
Definition at line 85 of file sensor_epsonV340.h.
#define ADDR_GPIO 0x10 |
Definition at line 71 of file sensor_epsonV340.h.
#define ADDR_MODE_CTRL_HI 0x39 |
Definition at line 81 of file sensor_epsonV340.h.
#define ADDR_MODE_CTRL_LO 0x38 |
Definition at line 80 of file sensor_epsonV340.h.
#define ADDR_MSC_CTRL_HI 0x35 |
Definition at line 76 of file sensor_epsonV340.h.
#define ADDR_MSC_CTRL_LO 0x34 |
Definition at line 75 of file sensor_epsonV340.h.
#define ADDR_PROD_ID1 0x6A |
Definition at line 89 of file sensor_epsonV340.h.
#define ADDR_PROD_ID2 0x6C |
Definition at line 90 of file sensor_epsonV340.h.
#define ADDR_PROD_ID3 0x6E |
Definition at line 91 of file sensor_epsonV340.h.
#define ADDR_PROD_ID4 0x70 |
Definition at line 92 of file sensor_epsonV340.h.
#define ADDR_SERIAL_NUM1 0x74 |
Definition at line 94 of file sensor_epsonV340.h.
#define ADDR_SERIAL_NUM2 0x76 |
Definition at line 95 of file sensor_epsonV340.h.
#define ADDR_SERIAL_NUM3 0x78 |
Definition at line 96 of file sensor_epsonV340.h.
#define ADDR_SERIAL_NUM4 0x7A |
Definition at line 97 of file sensor_epsonV340.h.
#define ADDR_SIG_CTRL_HI 0x33 |
Definition at line 74 of file sensor_epsonV340.h.
#define ADDR_SIG_CTRL_LO 0x32 |
Definition at line 73 of file sensor_epsonV340.h.
#define ADDR_SMPL_CTRL_HI 0x37 |
Definition at line 78 of file sensor_epsonV340.h.
#define ADDR_SMPL_CTRL_LO 0x36 |
Definition at line 77 of file sensor_epsonV340.h.
#define ADDR_TEMP_HIGH 0x02 |
Definition at line 58 of file sensor_epsonV340.h.
#define ADDR_TEMP_LOW 0x02 |
Definition at line 57 of file sensor_epsonV340.h.
#define ADDR_UART_CTRL_HI 0x3B |
Definition at line 83 of file sensor_epsonV340.h.
#define ADDR_UART_CTRL_LO 0x3A |
Definition at line 82 of file sensor_epsonV340.h.
#define ADDR_VERSION 0x72 |
Definition at line 93 of file sensor_epsonV340.h.
#define ADDR_XACCL_HIGH 0x0A |
Definition at line 65 of file sensor_epsonV340.h.
#define ADDR_XACCL_LOW 0x0A |
Definition at line 66 of file sensor_epsonV340.h.
#define ADDR_XGYRO_HIGH 0x04 |
Definition at line 59 of file sensor_epsonV340.h.
#define ADDR_XGYRO_LOW 0x04 |
Definition at line 60 of file sensor_epsonV340.h.
#define ADDR_YACCL_HIGH 0x0C |
Definition at line 67 of file sensor_epsonV340.h.
#define ADDR_YACCL_LOW 0x0C |
Definition at line 68 of file sensor_epsonV340.h.
#define ADDR_YGYRO_HIGH 0x06 |
Definition at line 61 of file sensor_epsonV340.h.
#define ADDR_YGYRO_LOW 0x06 |
Definition at line 62 of file sensor_epsonV340.h.
#define ADDR_ZACCL_HIGH 0x0E |
Definition at line 69 of file sensor_epsonV340.h.
#define ADDR_ZACCL_LOW 0x0E |
Definition at line 70 of file sensor_epsonV340.h.
#define ADDR_ZGYRO_HIGH 0x08 |
Definition at line 63 of file sensor_epsonV340.h.
#define ADDR_ZGYRO_LOW 0x08 |
Definition at line 64 of file sensor_epsonV340.h.
#define BURSTLEN 22 |
Definition at line 32 of file sensor_epsonV340.h.
#define CMD_32BIT 0x30 |
Definition at line 107 of file sensor_epsonV340.h.
#define CMD_BEGIN_SAMPLING 0x01 |
Definition at line 108 of file sensor_epsonV340.h.
#define CMD_BURST 0x20 |
Definition at line 99 of file sensor_epsonV340.h.
#define CMD_DRDY_GPIO1 0x04 |
Definition at line 106 of file sensor_epsonV340.h.
#define CMD_EN_BRSTDATA_HI 0x30 |
Definition at line 103 of file sensor_epsonV340.h.
#define CMD_EN_BRSTDATA_LO 0x03 |
Definition at line 102 of file sensor_epsonV340.h.
#define CMD_EN_NDFLAGS 0x7E |
Definition at line 101 of file sensor_epsonV340.h.
#define CMD_END_SAMPLING 0x02 |
Definition at line 109 of file sensor_epsonV340.h.
#define CMD_FLASHTEST 0x08 |
Definition at line 111 of file sensor_epsonV340.h.
#define CMD_FLTAP1 0x02 |
Definition at line 123 of file sensor_epsonV340.h.
#define CMD_FLTAP16 0x06 |
Definition at line 127 of file sensor_epsonV340.h.
#define CMD_FLTAP2 0x03 |
Definition at line 124 of file sensor_epsonV340.h.
#define CMD_FLTAP32 0x07 |
Definition at line 128 of file sensor_epsonV340.h.
#define CMD_FLTAP4 0x04 |
Definition at line 125 of file sensor_epsonV340.h.
#define CMD_FLTAP8 0x05 |
Definition at line 126 of file sensor_epsonV340.h.
#define CMD_RATE1000 0x01 |
Definition at line 115 of file sensor_epsonV340.h.
#define CMD_RATE125 0x04 |
Definition at line 118 of file sensor_epsonV340.h.
#define CMD_RATE250 0x03 |
Definition at line 117 of file sensor_epsonV340.h.
#define CMD_RATE31_25 0x06 |
Definition at line 120 of file sensor_epsonV340.h.
#define CMD_RATE500 0x02 |
Definition at line 116 of file sensor_epsonV340.h.
#define CMD_RATE62_5 0x05 |
Definition at line 119 of file sensor_epsonV340.h.
#define CMD_SELFTEST 0x04 |
Definition at line 112 of file sensor_epsonV340.h.
#define CMD_SOFTRESET 0x80 |
Definition at line 110 of file sensor_epsonV340.h.
#define CMD_WINDOW0 0x00 |
Definition at line 104 of file sensor_epsonV340.h.
#define CMD_WINDOW1 0x01 |
Definition at line 105 of file sensor_epsonV340.h.
#define EPSON_ACCL_SF (.180) |
Definition at line 22 of file sensor_epsonV340.h.
#define EPSON_GYRO_SF (.015) |
Definition at line 23 of file sensor_epsonV340.h.
#define FALSE 0 |
Definition at line 20 of file sensor_epsonV340.h.
#define SENSOR_READ_LEN 10 |
Definition at line 30 of file sensor_epsonV340.h.
#define TRUE 1 |
Definition at line 19 of file sensor_epsonV340.h.
#define VAL_CONFIG_MODE 0x04 |
Definition at line 132 of file sensor_epsonV340.h.
#define VAL_SAMPLING_MODE 0x00 |
Definition at line 131 of file sensor_epsonV340.h.