Home
last modified time | relevance | path

Searched refs:accel_data (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/
Dipso_accelerometer.c52 static struct ipso_accel_data accel_data[MAX_INSTANCE_COUNT]; variable
101 (void)memset(&accel_data[avail], 0, sizeof(accel_data[avail])); in accel_create()
109 &accel_data[avail].x_value, in accel_create()
110 sizeof(accel_data[avail].x_value)); in accel_create()
112 &accel_data[avail].y_value, in accel_create()
113 sizeof(accel_data[avail].y_value)); in accel_create()
115 &accel_data[avail].z_value, in accel_create()
116 sizeof(accel_data[avail].z_value)); in accel_create()
120 j, &accel_data[avail].min_range, in accel_create()
121 sizeof(accel_data[avail].min_range)); in accel_create()
[all …]
/Zephyr-Core-3.7.0/doc/hardware/peripherals/sensor/
Daccel_stream.c34 struct sensor_three_axis_data accel_data[2] = {0}; in main() local
94 accel_fit, 1, &accel_data); in main()
97 PRIsensor_three_axis_data_arg(accel_data, 0)); in main()
/Zephyr-Core-3.7.0/drivers/sensor/adi/adxl367/
Dadxl367.c637 struct adxl367_xyz_accel_data *accel_data) in adxl367_get_accel_data() argument
661 accel_data->x = ((int16_t)xyz_values[0] << 6) + (xyz_values[1] >> 2); in adxl367_get_accel_data()
662 accel_data->y = ((int16_t)xyz_values[2] << 6) + (xyz_values[3] >> 2); in adxl367_get_accel_data()
663 accel_data->z = ((int16_t)xyz_values[4] << 6) + (xyz_values[5] >> 2); in adxl367_get_accel_data()
666 if ((accel_data->x & BIT(13)) != 0) { in adxl367_get_accel_data()
667 accel_data->x |= GENMASK(15, 14); in adxl367_get_accel_data()
670 if ((accel_data->y & BIT(13)) != 0) { in adxl367_get_accel_data()
671 accel_data->y |= GENMASK(15, 14); in adxl367_get_accel_data()
674 if ((accel_data->z & BIT(13)) != 0) { in adxl367_get_accel_data()
675 accel_data->z |= GENMASK(15, 14); in adxl367_get_accel_data()
/Zephyr-Core-3.7.0/drivers/sensor/adi/adxl372/
Dadxl372.c480 struct adxl372_xyz_accel_data *accel_data) in adxl372_get_accel_data() argument
496 accel_data->x = (buf[0] << 8) | (buf[1] & 0xF0); in adxl372_get_accel_data()
497 accel_data->y = (buf[2] << 8) | (buf[3] & 0xF0); in adxl372_get_accel_data()
498 accel_data->z = (buf[4] << 8) | (buf[5] & 0xF0); in adxl372_get_accel_data()