1*14fe6698SNan Zhou// Copyright 2021 Google LLC 2*14fe6698SNan Zhou// 3*14fe6698SNan Zhou// Licensed under the Apache License, Version 2.0 (the "License"); 4*14fe6698SNan Zhou// you may not use this file except in compliance with the License. 5*14fe6698SNan Zhou// You may obtain a copy of the License at 6*14fe6698SNan Zhou// 7*14fe6698SNan Zhou// http://www.apache.org/licenses/LICENSE-2.0 8*14fe6698SNan Zhou// 9*14fe6698SNan Zhou// Unless required by applicable law or agreed to in writing, software 10*14fe6698SNan Zhou// distributed under the License is distributed on an "AS IS" BASIS, 11*14fe6698SNan Zhou// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*14fe6698SNan Zhou// See the License for the specific language governing permissions and 13*14fe6698SNan Zhou// limitations under the License. 14*14fe6698SNan Zhou 15*14fe6698SNan Zhousyntax = "proto2"; 16*14fe6698SNan Zhou 17*14fe6698SNan Zhou// Note: it is important that the application is resilient to 18*14fe6698SNan Zhou// incorrectly encoded protobuf's. 19*14fe6698SNan Zhou 20*14fe6698SNan Zhoumessage EventSeries { 21*14fe6698SNan Zhou enum PostCodeProtocol { 22*14fe6698SNan Zhou PROTOCOL_UNSPECIFIED = 0; 23*14fe6698SNan Zhou EIGHT_BIT_WITH_EXTENDED_CODES = 1; 24*14fe6698SNan Zhou NATIVE_32_BIT = 2; 25*14fe6698SNan Zhou } 26*14fe6698SNan Zhou // A fixed integer to confirm the type of this protobuf: 0x890ebd38ec325800 27*14fe6698SNan Zhou optional fixed64 magic = 1; 28*14fe6698SNan Zhou // Firmware version of the device reporting this data. 29*14fe6698SNan Zhou optional int32 fw_version = 2; 30*14fe6698SNan Zhou // Primary MAC address of the server this data is from (in network order). 31*14fe6698SNan Zhou optional bytes mac = 3; 32*14fe6698SNan Zhou // Time message was sent in microseconds. 33*14fe6698SNan Zhou optional int64 sent_time_us = 4; 34*14fe6698SNan Zhou // Zero or more POST codes. Some codes may be missed because the host can 35*14fe6698SNan Zhou // send out codes faster than the EC handles them. While standard values are 36*14fe6698SNan Zhou // only 8-bits, non-standard values above 255 may be used. 37*14fe6698SNan Zhou repeated int32 postcodes = 5; 38*14fe6698SNan Zhou reserved 6 to 13; 39*14fe6698SNan Zhou optional PostCodeProtocol postcodes_protocol = 14; 40*14fe6698SNan Zhou} 41*14fe6698SNan Zhou 42*14fe6698SNan Zhoupackage platforms.nemora.proto; 43