blob: c610a2b8f71afc7ac9cae7658a3a4960e485c910 (
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
31
32
33
34
35
36
37
38
39
40
|
// @file sns_bring_to_ear.proto
//
// Defines message types for the the Bring_To_Ear sensor
//
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
syntax = "proto2";
import "nanopb.proto";
import "sns_std_sensor.proto";
// Bring_to_ear sensor detects bring to ear event,
// When a device has been held in a face-up position,
// afterwhich the device is brought to the user's ear, with the top of the device facing upwards.
// Bring to ear Sensor Attribute Requirements:
// SNS_STD_SENSOR_ATTRID_TYPE: "bring_to_ear"
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE
//
// ## Request Message: SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG
// No configuration is available for this sensor.
// ## Event Message: SNS_BRING_TO_EAR_MSGID_SNS_BRING_TO_EAR_EVENT
// Reported upon new detection of bring_to_ear event
// Message IDs for Bring to ear Sensor
enum sns_bring_to_ear_msgid
{
option (nanopb_enumopt).long_names = false;
// Empty Message
SNS_BRING_TO_EAR_MSGID_SNS_BRING_TO_EAR_EVENT = 1024;
}
// Stream events:
//
// The sns_bring_to_ear_event message is used to publish updated state
//
// Bring_to_ear sensor does not publish configuration events.
|