• Home
  • Raw
  • Download

Lines Matching +full:0 +full:deg

36 #define ADIS16400_FLASH_CNT  0x00 /* Flash memory write count */
37 #define ADIS16400_SUPPLY_OUT 0x02 /* Power supply measurement */
38 #define ADIS16400_XGYRO_OUT 0x04 /* X-axis gyroscope output */
39 #define ADIS16400_YGYRO_OUT 0x06 /* Y-axis gyroscope output */
40 #define ADIS16400_ZGYRO_OUT 0x08 /* Z-axis gyroscope output */
41 #define ADIS16400_XACCL_OUT 0x0A /* X-axis accelerometer output */
42 #define ADIS16400_YACCL_OUT 0x0C /* Y-axis accelerometer output */
43 #define ADIS16400_ZACCL_OUT 0x0E /* Z-axis accelerometer output */
44 #define ADIS16400_XMAGN_OUT 0x10 /* X-axis magnetometer measurement */
45 #define ADIS16400_YMAGN_OUT 0x12 /* Y-axis magnetometer measurement */
46 #define ADIS16400_ZMAGN_OUT 0x14 /* Z-axis magnetometer measurement */
47 #define ADIS16400_TEMP_OUT 0x16 /* Temperature output */
48 #define ADIS16400_AUX_ADC 0x18 /* Auxiliary ADC measurement */
50 #define ADIS16350_XTEMP_OUT 0x10 /* X-axis gyroscope temperature measurement */
51 #define ADIS16350_YTEMP_OUT 0x12 /* Y-axis gyroscope temperature measurement */
52 #define ADIS16350_ZTEMP_OUT 0x14 /* Z-axis gyroscope temperature measurement */
54 #define ADIS16300_PITCH_OUT 0x12 /* X axis inclinometer output measurement */
55 #define ADIS16300_ROLL_OUT 0x14 /* Y axis inclinometer output measurement */
56 #define ADIS16300_AUX_ADC 0x16 /* Auxiliary ADC measurement */
58 #define ADIS16448_BARO_OUT 0x16 /* Barometric pressure output */
59 #define ADIS16448_TEMP_OUT 0x18 /* Temperature output */
62 #define ADIS16400_XGYRO_OFF 0x1A /* X-axis gyroscope bias offset factor */
63 #define ADIS16400_YGYRO_OFF 0x1C /* Y-axis gyroscope bias offset factor */
64 #define ADIS16400_ZGYRO_OFF 0x1E /* Z-axis gyroscope bias offset factor */
65 #define ADIS16400_XACCL_OFF 0x20 /* X-axis acceleration bias offset factor */
66 #define ADIS16400_YACCL_OFF 0x22 /* Y-axis acceleration bias offset factor */
67 #define ADIS16400_ZACCL_OFF 0x24 /* Z-axis acceleration bias offset factor */
68 #define ADIS16400_XMAGN_HIF 0x26 /* X-axis magnetometer, hard-iron factor */
69 #define ADIS16400_YMAGN_HIF 0x28 /* Y-axis magnetometer, hard-iron factor */
70 #define ADIS16400_ZMAGN_HIF 0x2A /* Z-axis magnetometer, hard-iron factor */
71 #define ADIS16400_XMAGN_SIF 0x2C /* X-axis magnetometer, soft-iron factor */
72 #define ADIS16400_YMAGN_SIF 0x2E /* Y-axis magnetometer, soft-iron factor */
73 #define ADIS16400_ZMAGN_SIF 0x30 /* Z-axis magnetometer, soft-iron factor */
75 #define ADIS16400_GPIO_CTRL 0x32 /* Auxiliary digital input/output control */
76 #define ADIS16400_MSC_CTRL 0x34 /* Miscellaneous control */
77 #define ADIS16400_SMPL_PRD 0x36 /* Internal sample period (rate) control */
78 #define ADIS16400_SENS_AVG 0x38 /* Dynamic range and digital filter control */
79 #define ADIS16400_SLP_CNT 0x3A /* Sleep mode control */
80 #define ADIS16400_DIAG_STAT 0x3C /* System status */
83 #define ADIS16400_GLOB_CMD 0x3E /* System command */
84 #define ADIS16400_ALM_MAG1 0x40 /* Alarm 1 amplitude threshold */
85 #define ADIS16400_ALM_MAG2 0x42 /* Alarm 2 amplitude threshold */
86 #define ADIS16400_ALM_SMPL1 0x44 /* Alarm 1 sample size */
87 #define ADIS16400_ALM_SMPL2 0x46 /* Alarm 2 sample size */
88 #define ADIS16400_ALM_CTRL 0x48 /* Alarm control */
89 #define ADIS16400_AUX_DAC 0x4A /* Auxiliary DAC data */
91 #define ADIS16334_LOT_ID1 0x52 /* Lot identification code 1 */
92 #define ADIS16334_LOT_ID2 0x54 /* Lot identification code 2 */
93 #define ADIS16400_PRODUCT_ID 0x56 /* Product identifier */
94 #define ADIS16334_SERIAL_NUMBER 0x58 /* Serial number, lot specific */
108 #define ADIS16400_MSC_CTRL_DATA_RDY_DIO2 (1<<0)
112 #define ADIS16400_SMPL_PRD_DIV_MASK 0x7F
129 #define ADIS16400_DIAG_STAT_POWER_LOW 0
137 #define ADIS16400_GLOB_CMD_AUTO_NULL (1<<0)
143 #define ADIS16334_RATE_INT_CLK BIT(0)
149 #define ADIS16400_HAS_PROD_ID BIT(0)
261 return 0; in adis16400_show_product_id()
278 return 0; in adis16400_show_flash_count()
297 return 0; in adis16400_debugfs_init()
304 return 0; in adis16400_debugfs_init()
343 t = 0; in adis16334_set_freq()
345 if (t > 0x31) in adis16334_set_freq()
346 t = 0x31; in adis16334_set_freq()
372 uint8_t val = 0; in adis16400_set_freq()
380 } else if (t != 0) { in adis16400_set_freq()
386 if (t >= 0x0A || (val & ADIS16400_SMPL_PRD_TIME_BASE)) in adis16400_set_freq()
395 [0] = 2, /* Special case */
421 (val16 & ~0x07) | i); in __adis16400_set_filter()
474 dev_info(&indio_dev->dev, "%s: prod_id 0x%04x at CS%d (irq %d)\n", in adis16400_initial_setup()
484 if ((smp_prd & ADIS16400_SMPL_PRD_DIV_MASK) < 0x0A) { in adis16400_initial_setup()
524 if (sps < 0) { in adis16400_write_raw()
536 if (sps <= 0) in adis16400_write_raw()
558 return adis_single_conversion(indio_dev, chan, 0, val); in adis16400_read_raw()
562 *val = 0; in adis16400_read_raw()
566 *val = 0; in adis16400_read_raw()
567 if (chan->channel == 0) { in adis16400_read_raw()
571 *val = 0; in adis16400_read_raw()
576 *val = 0; in adis16400_read_raw()
580 *val = 0; in adis16400_read_raw()
589 *val = 0; in adis16400_read_raw()
621 ret /= adis16400_3db_divisors[val16 & 0x07]; in adis16400_read_raw()
695 .shift = 0, \
701 ADIS16400_VOLTAGE_CHAN(addr, bits, "supply", ADIS16400_SCAN_SUPPLY, 0)
721 .shift = 0, \
741 .shift = 0, \
760 .shift = 0, \
772 .channel = 0, \
786 .shift = 0, \
794 .channel = 0, \
805 .shift = 0, \
823 .shift = 0, \
1015 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1018 .temp_offset = 25000000 / 140000, /* 25 C = 0x00 */
1028 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1031 .temp_offset = 25000000 / 67850, /* 25 C = 0x00 */
1034 .adis_data = ADIS16400_DATA(&adis16334_timeouts, 0),
1039 .gyro_scale_micro = IIO_DEGREE_TO_RAD(73260), /* 0.07326 deg/s */
1042 .temp_offset = 25000000 / 145300, /* 25 C = 0x00 */
1046 .adis_data = ADIS16400_DATA(&adis16300_timeouts, 0),
1053 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1056 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */
1066 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1069 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */
1079 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1082 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */
1092 .gyro_scale_micro = IIO_DEGREE_TO_RAD(2000), /* 0.2 deg/s */
1095 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */
1104 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1107 .temp_offset = 25000000 / 140000, /* 25 C = 0x00 */
1118 .gyro_scale_micro = IIO_DEGREE_TO_RAD(10000), /* 0.01 deg/s */
1121 .temp_offset = 31000000 / 73860, /* 31 C = 0x00 */
1132 .gyro_scale_micro = IIO_DEGREE_TO_RAD(40000), /* 0.04 deg/s */
1135 .temp_offset = 31000000 / 73860, /* 31 C = 0x00 */
1154 for (i = 0; i < chip_info->num_channels; i++) { in adis16400_setup_chan_mask()
1157 if (ch->scan_index >= 0 && in adis16400_setup_chan_mask()
1159 st->avail_scan_mask[0] |= BIT(ch->scan_index); in adis16400_setup_chan_mask()
1220 return 0; in adis16400_probe()