Searched +full:xyz +full:- +full:measurement (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/dts/bindings/sensor/ |
D | ti,tmag5170.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Texas Instruments TMAG5170 high-precision, linear 3D Hall-effect sensor. 8 include: [sensor-device.yaml, spi-device.yaml] 11 int-gpios: 12 type: phandle-array 18 operating-mode: 23 1 - stand-by mode - in this mode the device waits for application to trigger 24 the measurement. 25 2 - active measure mode - continuous sampling on all enabled channels 28 3 - active trigger mode - in this mode, similar to stand-by mode, the device [all …]
|
D | ti,tmag5273.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Texas Instruments Low-Power Linear 3D Hall-Effect Sensor with an I2C interface. 17 #include <zephyr/dt-bindings/sensor/tmag5273.h> 27 include: [sensor-device.yaml, i2c-device.yaml] 30 operation-mode: 38 - 0 # TMAG5273_DT_OPER_MODE_CONTINUOUS (continuous) 39 - 1 # TMAG5273_DT_OPER_MODE_STANDBY (standby) 49 - 0 # TMAG5273_DT_AXIS_NONE 50 - 1 # TMAG5273_DT_AXIS_X 51 - 2 # TMAG5273_DT_AXIS_Y [all …]
|
/Zephyr-latest/drivers/sensor/ti/tmag5273/ |
D | tmag5273.c | 4 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/dt-bindings/sensor/tmag5273.h> 39 * Since the register counting is zero-based, one byte needs to be added to get the correct size. 44 (TMAG5273_REG_RESULT_END - TMAG5273_REG_RESULT_BEGIN + 1 + TMAG5273_CRC_I2C_SIZE) 77 int16_t x_sample; /** measured B-field @x-axis */ 78 int16_t y_sample; /** measured B-field @y-axis */ 79 int16_t z_sample; /** measured B-field @z-axis */ 82 uint16_t xyz_range; /** magnetic range for x/y/z-axis in mT */ 96 const struct tmag5273_config *drv_cfg = dev->config; in tmag5273_reset_device_status() 98 return i2c_reg_write_byte_dt(&drv_cfg->i2c, TMAG5273_REG_DEVICE_STATUS, in tmag5273_reset_device_status() [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh.c | 4 * SPDX-License-Identifier: Apache-2.0 23 * Use values for low-power mode in DS "Mechanical (Sensor) characteristics", 40 * max(raw_val >> 4) = +/- 2^11 in lis2dh_convert() 45 val->val1 = converted_val / 1000000; in lis2dh_convert() 46 val->val2 = converted_val % 1000000; in lis2dh_convert() 51 int ret = -ENOTSUP; in lis2dh_sample_fetch_temp() 54 struct lis2dh_data *lis2dh = dev->data; in lis2dh_sample_fetch_temp() 55 const struct lis2dh_config *cfg = dev->config; in lis2dh_sample_fetch_temp() 58 ret = lis2dh->hw_tf->read_data(dev, cfg->temperature.dout_addr, raw, in lis2dh_sample_fetch_temp() 63 ret = -EIO; in lis2dh_sample_fetch_temp() [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl362/ |
D | adxl362.c | 1 /* adxl362.c - ADXL362 Three-Axis Digital Accelerometers */ 6 * SPDX-License-Identifier: Apache-2.0 29 const struct adxl362_config *cfg = dev->config; in adxl362_reg_access() 53 return spi_transceive_dt(&cfg->bus, &tx, &rx); in adxl362_reg_access() 58 return spi_write_dt(&cfg->bus, &tx); in adxl362_reg_access() 162 return -EINVAL; in adxl362_freq_to_odr_val() 173 return -EINVAL; in adxl362_freq_to_odr_val() 197 return -EINVAL; in adxl362_range_to_reg_val() 203 struct adxl362_data *adxl362_data = dev->data; in adxl362_set_range() 220 adxl362_data->selected_range = range; in adxl362_set_range() [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367.c | 4 * SPDX-License-Identifier: Apache-2.0 29 * @param dev - The device structure. 30 * @param th - Structure holding the activity threshold information: 39 struct adxl367_data *data = dev->data; in adxl367_setup_activity_detection() 43 ret = data->hw_tf->write_reg_mask(dev, ADXL367_ACT_INACT_CTL, in adxl367_setup_activity_detection() 46 FIELD_PREP(ADXL367_ACT_INACT_CTL_ACT_EN_MSK, th->enable) | in adxl367_setup_activity_detection() 48 th->referenced)); in adxl367_setup_activity_detection() 53 ret = data->hw_tf->write_reg_mask(dev, ADXL367_THRESH_ACT_H, ADXL367_THRESH_H_MSK, in adxl367_setup_activity_detection() 54 FIELD_PREP(ADXL367_THRESH_H_MSK, th->value >> 6)); in adxl367_setup_activity_detection() 59 return data->hw_tf->write_reg_mask(dev, ADXL367_THRESH_ACT_L, ADXL367_THRESH_L_MSK, in adxl367_setup_activity_detection() [all …]
|