summaryrefstree
path: root/vendor/etc/sensors/proto/sns_gravity.proto
blob: 6a04f149590316932703736175fb7478e95f4078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// @file sns_gravity.proto
//
// Defines standard message types for the Gravity Sensor
//
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";

// Configuration Message
// Used to either request for a certain configuration of the gravity sensor or
// alter an already existing configuration of the gravity sensor
// Uses sns_std_sensor_config defined in sns_std_sensor.proto
// The message field definitions are as follows:
// 1) float sample_rate
//      containing the required sample rate of the gravity sensor in hertz

// Data Message
// Data event generated by the gravity.
// Uses sns_std_sensor_event message defined in sns_std_sensor.proto
// The data field of the sns_std_sensor_event message
// contains a float array of length 6 with the following definition
// 1) float data[0] to data[2]
//      Representing the gravity values along x,y,z axes in m/s2.
// 2) float data[3] to data[5]
//      Representing the linear acceleration values along x,y,z axes in m/s2.
//      Determined as the delta between the accel and the gravity values
//      along that axis.