// @file sns_op_motion_detect.proto
//
// Defines standard message types for the OP_MOTION_DETECT
//
// Copyright (c) 2018 OnePlus Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - OnePlus Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";

enum sns_op_motion_detect_msgid
{
  option (nanopb_enumopt).long_names = false;

  SNS_OP_MOTION_DETECT_MSGID_SNS_OP_MOTION_DETECT_DATA = 1029;

}


// Configuration Message
// Used to either request for a certain configuration of the Sim Sensor or
// alter an already existing configuration of the Simulation 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 Sim sensor in hertz

// Data Message
// Output data event generated by the op_motion_detect sensor.
message sns_op_motion_detect_data
{
  // op_motion_detect Vector along axis x,y,z
  repeated float op_motion_detect = 1 [(nanopb).max_count = 3];

  // Accuracy of the data
  required sns_std_sensor_sample_status accuracy = 2;
}


