Lines Matching +full:0 +full:deg
29 #define ADIS16400_FLASH_CNT 0x00 /* Flash memory write count */
30 #define ADIS16400_SUPPLY_OUT 0x02 /* Power supply measurement */
31 #define ADIS16400_XGYRO_OUT 0x04 /* X-axis gyroscope output */
32 #define ADIS16400_YGYRO_OUT 0x06 /* Y-axis gyroscope output */
33 #define ADIS16400_ZGYRO_OUT 0x08 /* Z-axis gyroscope output */
34 #define ADIS16400_XACCL_OUT 0x0A /* X-axis accelerometer output */
35 #define ADIS16400_YACCL_OUT 0x0C /* Y-axis accelerometer output */
36 #define ADIS16400_ZACCL_OUT 0x0E /* Z-axis accelerometer output */
37 #define ADIS16400_XMAGN_OUT 0x10 /* X-axis magnetometer measurement */
38 #define ADIS16400_YMAGN_OUT 0x12 /* Y-axis magnetometer measurement */
39 #define ADIS16400_ZMAGN_OUT 0x14 /* Z-axis magnetometer measurement */
40 #define ADIS16400_TEMP_OUT 0x16 /* Temperature output */
41 #define ADIS16400_AUX_ADC 0x18 /* Auxiliary ADC measurement */
43 #define ADIS16350_XTEMP_OUT 0x10 /* X-axis gyroscope temperature measurement */
44 #define ADIS16350_YTEMP_OUT 0x12 /* Y-axis gyroscope temperature measurement */
45 #define ADIS16350_ZTEMP_OUT 0x14 /* Z-axis gyroscope temperature measurement */
47 #define ADIS16300_PITCH_OUT 0x12 /* X axis inclinometer output measurement */
48 #define ADIS16300_ROLL_OUT 0x14 /* Y axis inclinometer output measurement */
49 #define ADIS16300_AUX_ADC 0x16 /* Auxiliary ADC measurement */
51 #define ADIS16448_BARO_OUT 0x16 /* Barometric pressure output */
52 #define ADIS16448_TEMP_OUT 0x18 /* Temperature output */
55 #define ADIS16400_XGYRO_OFF 0x1A /* X-axis gyroscope bias offset factor */
56 #define ADIS16400_YGYRO_OFF 0x1C /* Y-axis gyroscope bias offset factor */
57 #define ADIS16400_ZGYRO_OFF 0x1E /* Z-axis gyroscope bias offset factor */
58 #define ADIS16400_XACCL_OFF 0x20 /* X-axis acceleration bias offset factor */
59 #define ADIS16400_YACCL_OFF 0x22 /* Y-axis acceleration bias offset factor */
60 #define ADIS16400_ZACCL_OFF 0x24 /* Z-axis acceleration bias offset factor */
61 #define ADIS16400_XMAGN_HIF 0x26 /* X-axis magnetometer, hard-iron factor */
62 #define ADIS16400_YMAGN_HIF 0x28 /* Y-axis magnetometer, hard-iron factor */
63 #define ADIS16400_ZMAGN_HIF 0x2A /* Z-axis magnetometer, hard-iron factor */
64 #define ADIS16400_XMAGN_SIF 0x2C /* X-axis magnetometer, soft-iron factor */
65 #define ADIS16400_YMAGN_SIF 0x2E /* Y-axis magnetometer, soft-iron factor */
66 #define ADIS16400_ZMAGN_SIF 0x30 /* Z-axis magnetometer, soft-iron factor */
68 #define ADIS16400_GPIO_CTRL 0x32 /* Auxiliary digital input/output control */
69 #define ADIS16400_MSC_CTRL 0x34 /* Miscellaneous control */
70 #define ADIS16400_SMPL_PRD 0x36 /* Internal sample period (rate) control */
71 #define ADIS16400_SENS_AVG 0x38 /* Dynamic range and digital filter control */
72 #define ADIS16400_SLP_CNT 0x3A /* Sleep mode control */
73 #define ADIS16400_DIAG_STAT 0x3C /* System status */
76 #define ADIS16400_GLOB_CMD 0x3E /* System command */
77 #define ADIS16400_ALM_MAG1 0x40 /* Alarm 1 amplitude threshold */
78 #define ADIS16400_ALM_MAG2 0x42 /* Alarm 2 amplitude threshold */
79 #define ADIS16400_ALM_SMPL1 0x44 /* Alarm 1 sample size */
80 #define ADIS16400_ALM_SMPL2 0x46 /* Alarm 2 sample size */
81 #define ADIS16400_ALM_CTRL 0x48 /* Alarm control */
82 #define ADIS16400_AUX_DAC 0x4A /* Auxiliary DAC data */
84 #define ADIS16334_LOT_ID1 0x52 /* Lot identification code 1 */
85 #define ADIS16334_LOT_ID2 0x54 /* Lot identification code 2 */
86 #define ADIS16400_PRODUCT_ID 0x56 /* Product identifier */
87 #define ADIS16334_SERIAL_NUMBER 0x58 /* Serial number, lot specific */
101 #define ADIS16400_MSC_CTRL_DATA_RDY_DIO2 (1<<0)
105 #define ADIS16400_SMPL_PRD_DIV_MASK 0x7F
122 #define ADIS16400_DIAG_STAT_POWER_LOW 0
130 #define ADIS16400_GLOB_CMD_AUTO_NULL (1<<0)
136 #define ADIS16334_RATE_INT_CLK BIT(0)
142 #define ADIS16400_HAS_PROD_ID BIT(0)
254 return 0; in adis16400_show_product_id()
271 return 0; in adis16400_show_flash_count()
290 return 0; in adis16400_debugfs_init()
297 return 0; in adis16400_debugfs_init()
336 t = 0; in adis16334_set_freq()
338 if (t > 0x31) in adis16334_set_freq()
339 t = 0x31; in adis16334_set_freq()
365 uint8_t val = 0; in adis16400_set_freq()
373 } else if (t != 0) { in adis16400_set_freq()
379 if (t >= 0x0A || (val & ADIS16400_SMPL_PRD_TIME_BASE)) in adis16400_set_freq()
388 [0] = 2, /* Special case */
414 (val16 & ~0x07) | i); in __adis16400_set_filter()
467 dev_info(&indio_dev->dev, "%s: prod_id 0x%04x at CS%d (irq %d)\n", in adis16400_initial_setup()
469 spi_get_chipselect(st->adis.spi, 0), st->adis.spi->irq); in adis16400_initial_setup()
477 if ((smp_prd & ADIS16400_SMPL_PRD_DIV_MASK) < 0x0A) { in adis16400_initial_setup()
516 if (sps < 0) { in adis16400_write_raw()
528 if (sps <= 0) in adis16400_write_raw()
549 return adis_single_conversion(indio_dev, chan, 0, val); in adis16400_read_raw()
553 *val = 0; in adis16400_read_raw()
557 *val = 0; in adis16400_read_raw()
558 if (chan->channel == 0) { in adis16400_read_raw()
562 *val = 0; in adis16400_read_raw()
567 *val = 0; in adis16400_read_raw()
571 *val = 0; in adis16400_read_raw()
580 *val = 0; in adis16400_read_raw()
612 ret /= adis16400_3db_divisors[val16 & 0x07]; in adis16400_read_raw()
684 .shift = 0, \
690 ADIS16400_VOLTAGE_CHAN(addr, bits, "supply", ADIS16400_SCAN_SUPPLY, 0)
710 .shift = 0, \
730 .shift = 0, \
749 .shift = 0, \
761 .channel = 0, \
775 .shift = 0, \
783 .channel = 0, \
794 .shift = 0, \
812 .shift = 0, \
1005 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1008 .temp_offset = 25000000 / 140000, /* 25 C = 0x00 */
1018 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1021 .temp_offset = 25000000 / 67850, /* 25 C = 0x00 */
1024 .adis_data = ADIS16400_DATA(&adis16334_timeouts, 0),
1029 .gyro_scale_micro = IIO_DEGREE_TO_RAD(73260), /* 0.07326 deg/s */
1032 .temp_offset = 25000000 / 145300, /* 25 C = 0x00 */
1036 .adis_data = ADIS16400_DATA(&adis16300_timeouts, 0),
1043 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1046 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */
1056 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1059 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */
1069 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1072 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */
1082 .gyro_scale_micro = IIO_DEGREE_TO_RAD(2000), /* 0.2 deg/s */
1085 .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */
1094 .gyro_scale_micro = IIO_DEGREE_TO_RAD(50000), /* 0.05 deg/s */
1097 .temp_offset = 25000000 / 140000, /* 25 C = 0x00 */
1108 .gyro_scale_micro = IIO_DEGREE_TO_RAD(10000), /* 0.01 deg/s */
1111 .temp_offset = 31000000 / 73860, /* 31 C = 0x00 */
1122 .gyro_scale_micro = IIO_DEGREE_TO_RAD(40000), /* 0.04 deg/s */
1125 .temp_offset = 31000000 / 73860, /* 31 C = 0x00 */
1144 for (i = 0; i < chip_info->num_channels; i++) { in adis16400_setup_chan_mask()
1147 if (ch->scan_index >= 0 && in adis16400_setup_chan_mask()
1149 st->avail_scan_mask[0] |= BIT(ch->scan_index); in adis16400_setup_chan_mask()
1208 return 0; in adis16400_probe()