* From rhodep_g-user 13 T1SUS33.1-124-6-14 a15be release-keys. Change-Id: Ifc556fab4a2d0afba881d7edcfb7137113d62622
44 lines
1.1 KiB
Protocol Buffer
44 lines
1.1 KiB
Protocol Buffer
// @file mot_chopchop.proto
|
|
//
|
|
// Defines message types for the Motorola ChopChop Gesture Sensor.
|
|
//
|
|
// Copyright (c) 2017 Motorola Mobility
|
|
// All Rights Reserved.
|
|
// Confidential and Proprietary - Motorola Mobility
|
|
|
|
syntax = "proto2";
|
|
import "nanopb.proto";
|
|
import "sns_std_sensor.proto";
|
|
|
|
// Mot_chopchop detects the double chop gesture to trigger the torch
|
|
// This is actually a special trigger sensor, but it is treated as
|
|
// on-change in SEE.
|
|
|
|
// Sensor Attribute Requirements:
|
|
// SNS_STD_SENSOR_ATTRID_TYPE: "mot_chopchop"
|
|
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE
|
|
|
|
// Stream Requests:
|
|
// - SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG is used to enable the sensor
|
|
|
|
// Message IDs
|
|
enum mot_chopchop_msgid {
|
|
option (nanopb_enumopt).long_names = false;
|
|
|
|
MOT_CHOPCHOP_MSGID_MOT_CHOPCHOP_EVENT = 772;
|
|
}
|
|
|
|
message mot_chopchop_event
|
|
{
|
|
// Event output
|
|
required uint32 abort_count = 1;
|
|
required float peak1 = 2;
|
|
required float peak2 = 3;
|
|
}
|
|
|
|
// Stream events:
|
|
//
|
|
// The mot_chopchop_event message is used to publish updated state
|
|
//
|
|
// This sensor does not publish configuration events.
|
|
|