Home
last modified time | relevance | path

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

/Zephyr-latest/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-latest/samples/sensor/accel_polling/src/
Dmain.c49 struct sensor_three_axis_data accel_data = {0}; in print_accels_stream() local
110 &accel_fit, 1, &accel_data); in print_accels_stream()
114 PRIq_arg(accel_data.readings[0].x, 6, accel_data.shift), in print_accels_stream()
115 PRIq_arg(accel_data.readings[0].y, 6, accel_data.shift), in print_accels_stream()
116 PRIq_arg(accel_data.readings[0].z, 6, accel_data.shift), in print_accels_stream()
117 (accel_data.header.base_timestamp_ns in print_accels_stream()
118 + accel_data.readings[0].timestamp_delta)); in print_accels_stream()
/Zephyr-latest/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-latest/drivers/sensor/adi/adxl367/
Dadxl367.c701 struct adxl367_xyz_accel_data *accel_data) in adxl367_get_accel_data() argument
725 accel_data->x = ((int16_t)xyz_values[0] << 6) + (xyz_values[1] >> 2); in adxl367_get_accel_data()
726 accel_data->y = ((int16_t)xyz_values[2] << 6) + (xyz_values[3] >> 2); in adxl367_get_accel_data()
727 accel_data->z = ((int16_t)xyz_values[4] << 6) + (xyz_values[5] >> 2); in adxl367_get_accel_data()
730 if ((accel_data->x & BIT(13)) != 0) { in adxl367_get_accel_data()
731 accel_data->x |= GENMASK(15, 14); in adxl367_get_accel_data()
734 if ((accel_data->y & BIT(13)) != 0) { in adxl367_get_accel_data()
735 accel_data->y |= GENMASK(15, 14); in adxl367_get_accel_data()
738 if ((accel_data->z & BIT(13)) != 0) { in adxl367_get_accel_data()
739 accel_data->z |= GENMASK(15, 14); in adxl367_get_accel_data()
Dadxl367.h443 struct adxl367_xyz_accel_data *accel_data);
/Zephyr-latest/drivers/sensor/adi/adxl372/
Dadxl372.c522 struct adxl372_xyz_accel_data *accel_data) in adxl372_get_accel_data() argument
538 accel_data->is_fifo = 0; in adxl372_get_accel_data()
540 accel_data->x = (buf[0] << 8) | (buf[1] & 0xF0); in adxl372_get_accel_data()
541 accel_data->y = (buf[2] << 8) | (buf[3] & 0xF0); in adxl372_get_accel_data()
542 accel_data->z = (buf[4] << 8) | (buf[5] & 0xF0); in adxl372_get_accel_data()
Dadxl372.h415 struct adxl372_xyz_accel_data *accel_data);