// @file sns_wrist_tilt_gesture.proto
//
// @brief Defines message types for the wrist_tilt_gesture Sensors.
//
// @copyright
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
// All rights reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
//
// @details The Tilt Sensor looks for a change in angle of a
// gravity vector from an anchor vector.
// - The initial anchor vector is based on an average of one second of
//   accel data after initial activation.
// - The gravity vector is calculated based on an average of two seconds of
//   accel data.
// - The anchor vector is reset to the current gravity vector each time the
//   Tilt event is generated.
// - There is only one anchor vector shared amongst all clients.
// - The Tilt event is generated when the current gravity vector is 35 degrees
//   or more from the anchor vector.
//
// ## Attribute Requirements:
// 1. SNS_STD_SENSOR_ATTRID_TYPE: "wrist_tilt_gesture"
// 2. SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE
// 3. SNS_STD_SENSOR_ATTRID_API attribute contains "sns_wrist_tilt_gesture.proto"
//
// ## Processing Stream Requests:
// - SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG is used to enable the sensor
//
// ## Publishing Stream Events:
// - A NULL message with message ID SNS_TILT_MSGID_SNS_TILT_EVENT is used to
//   publish tilt event
// - Tilt does not publish configuration events.

syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";


// @brief Message IDs for Wrist Tilt Gesture Sensor
enum sns_wrist_tilt_gesture_msgid {
  option (nanopb_enumopt).long_names = false;

  SNS_WRIST_TILT_GESTURE_MSGID_SNS_TILT_EVENT = 774;
}
