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

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

  SNS_POCKET_MSGID_SNS_POCKET_DATA = 1027;
}


// 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 pocket sensor.
message sns_pocket_data
{
  // pocket Vector along axis x,y,z
  repeated float pocket = 1 [(nanopb).max_count = 3];

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


