Merge pull request #1 from abraha2d/development

Add files from borconi/AAProto
pull/1/head
Emil Borconi-Szedressy 2019-07-04 21:16:57 +01:00 committed by GitHub
commit 8ffa3d351b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
89 changed files with 289 additions and 264 deletions

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AVStreamTypeEnum.proto";
import "AudioTypeEnum.proto";
@ -27,9 +27,9 @@ package f1x.aasdk.proto.data;
message AVChannel
{
enums.AVStreamType.Enum stream_type = 1;
enums.AudioType.Enum audio_type = 2;
required enums.AVStreamType.Enum stream_type = 1;
optional enums.AudioType.Enum audio_type = 2;
repeated AudioConfig audio_configs = 3;
repeated VideoConfig video_configs = 4;
bool available_while_in_call = 5;
optional bool available_while_in_call = 5;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message AVChannelSetupRequest
{
uint32 config_index = 1;
required uint32 config_index = 1;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message AVChannelStartIndication
{
int32 session = 1;
uint32 config = 2;
required int32 session = 1;
required uint32 config = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AVStreamTypeEnum.proto";
import "AudioConfigData.proto";
@ -25,7 +25,7 @@ package f1x.aasdk.proto.data;
message AVInputChannel
{
enums.AVStreamType.Enum stream_type = 1;
AudioConfig audio_config = 2;
bool available_while_in_call = 3;
required enums.AVStreamType.Enum stream_type = 1;
required AudioConfig audio_config = 2;
optional bool available_while_in_call = 3;
}

View File

@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message AVInputOpenRequest
{
bool open = 1;
bool anc = 2;
bool ec = 3;
int32 max_unacked = 4;
required bool open = 1;
required bool anc = 2;
required bool ec = 3;
required int32 max_unacked = 4;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message AbsoluteInputEvent
{
uint32 scan_code = 1;
int32 value = 2;
required uint32 scan_code = 1;
required int32 value = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AbsoluteInputEventData.proto";

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Accel
{
int32 acceleration_x = 1;
int32 acceleration_y = 2;
int32 acceleration_z = 3;
required int32 acceleration_x = 1;
required int32 acceleration_y = 2;
required int32 acceleration_z = 3;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message AudioConfig
{
uint32 sample_rate = 1;
uint32 bit_depth = 2;
uint32 channel_count = 3;
required uint32 sample_rate = 1;
required uint32 bit_depth = 2;
required uint32 channel_count = 3;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AudioFocusTypeEnum.proto";
@ -24,5 +24,5 @@ package f1x.aasdk.proto.messages;
message AudioFocusRequest
{
enums.AudioFocusType.Enum audio_focus_type = 1;
required enums.AudioFocusType.Enum audio_focus_type = 1;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AudioFocusStateEnum.proto";
@ -24,5 +24,5 @@ package f1x.aasdk.proto.messages;
message AudioFocusResponse
{
enums.AudioFocusState.Enum audio_focus_state = 1;
required enums.AudioFocusState.Enum audio_focus_state = 1;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "BluetoothPairingMethodEnum.proto";
@ -24,6 +24,6 @@ package f1x.aasdk.proto.data;
message BluetoothChannel
{
string adapter_address = 1;
required string adapter_address = 1;
repeated enums.BluetoothPairingMethod.Enum supported_pairing_methods = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "BluetoothPairingMethodEnum.proto";
@ -24,6 +24,6 @@ package f1x.aasdk.proto.messages;
message BluetoothPairingRequest
{
string phone_address = 1;
enums.BluetoothPairingMethod.Enum pairing_method = 2;
required string phone_address = 1;
required enums.BluetoothPairingMethod.Enum pairing_method = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "BluetoothPairingStatusEnum.proto";
@ -24,6 +24,6 @@ package f1x.aasdk.proto.messages;
message BluetoothPairingResponse
{
bool already_paired = 1;
enums.BluetoothPairingStatus.Enum status = 2;
required bool already_paired = 1;
required enums.BluetoothPairingStatus.Enum status = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message ButtonEvent
{
uint32 scan_code = 1;
bool is_pressed = 2;
uint32 meta = 3;
bool long_press = 4;
required uint32 scan_code = 1;
required bool is_pressed = 2;
optional uint32 meta = 3;
optional bool long_press = 4;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "ButtonEventData.proto";

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
option optimize_for=SPEED;
@ -27,26 +27,21 @@ import "AVInputChannelData.proto";
import "BluetoothChannelData.proto";
import "NavigationChannelData.proto";
import "VendorExtensionChannelData.proto";
import "MediaChannelData.proto";
import "WifiChannelData.proto";
package gb.xxy.hr.proto.data;
message MediaPlayBackChannel
{
uint32 enabled = 1;
}
package f1x.aasdk.proto.data;
message ChannelDescriptor
{
uint32 channel_id = 1;
SensorChannel sensor_channel = 2;
AVChannel av_channel = 3;
InputChannel input_channel = 4;
AVInputChannel av_input_channel = 5;
BluetoothChannel bluetooth_channel = 6;
NavigationChannel navigation_channel = 8;
MediaPlayBackChannel mediainfo_channel = 9;
VendorExtensionChannel vendor_extension_channel = 12;
WifiChannel wifi_channel=16;
required uint32 channel_id = 1;
optional SensorChannel sensor_channel = 2;
optional AVChannel av_channel = 3;
optional InputChannel input_channel = 4;
optional AVInputChannel av_input_channel = 5;
optional BluetoothChannel bluetooth_channel = 6;
optional NavigationChannel navigation_channel = 8;
optional MediaInfoChannel media_infoChannel = 9;
optional VendorExtensionChannel vendor_extension_channel = 12;
optional WifiChannel wifi_channel=16;
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message ChannelOpenRequest
{
int32 priority = 1;
int32 channel_id = 2;
required int32 priority = 1;
required int32 channel_id = 2;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Compass
{
int32 bearing =1;
int32 pitch = 2;
int32 roll = 3;
required int32 bearing =1;
required int32 pitch = 2;
required int32 roll = 3;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Diagnostics
{
bytes diagnostics = 1;
required bytes diagnostics = 1;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Door
{
bool hood_open = 1;
bool boot_open = 2;
required bool hood_open = 1;
required bool boot_open = 2;
repeated bool door_open = 3;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Environment
{
int32 temperature =1;
int32 pressure = 2;
int32 rain = 3;
required int32 temperature =1;
required int32 pressure = 2;
required int32 rain = 3;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message FuelLevel
{
int32 fuel_level = 1;
int32 range = 2;
bool low_fuel = 3;
required int32 fuel_level = 1;
required int32 range = 2;
required bool low_fuel = 3;
}

View File

@ -16,17 +16,17 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message GPSLocation
{
uint64 timestamp = 1;
int32 latitude = 2;
int32 longitude = 3;
uint32 accuracy = 4;
int32 altitude = 5;
int32 speed = 6;
int32 bearing = 7;
required uint64 timestamp = 1;
required int32 latitude = 2;
required int32 longitude = 3;
required uint32 accuracy = 4;
optional int32 altitude = 5;
optional int32 speed = 6;
optional int32 bearing = 7;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "GearEnum.proto";
@ -24,5 +24,5 @@ package f1x.aasdk.proto.data;
message Gear
{
enums.Gear.Enum gear = 1;
required enums.Gear.Enum gear = 1;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Gyro
{
int32 rotation_speed_x = 1;
int32 rotation_speed_y = 2;
int32 rotation_speed_z = 3;
required int32 rotation_speed_x = 1;
required int32 rotation_speed_y = 2;
required int32 rotation_speed_z = 3;
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message HVAC
{
int32 target_temperature = 1;
int32 current_temperature = 2;
required int32 target_temperature = 1;
required int32 current_temperature = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "TouchConfigData.proto";
@ -25,6 +25,6 @@ package f1x.aasdk.proto.data;
message InputChannel
{
repeated uint32 supported_keycodes = 1;
TouchConfig touch_screen_config = 2;
TouchConfig touch_pad_config = 3;
optional TouchConfig touch_screen_config = 2;
optional TouchConfig touch_pad_config = 3;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;
@ -28,5 +28,6 @@ message InputChannelMessage
INPUT_EVENT_INDICATION = 0x8001;
BINDING_REQUEST = 0x8002;
BINDING_RESPONSE = 0x8003;
}
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "TouchEventData.proto";
import "ButtonEventsData.proto";
@ -27,10 +27,10 @@ package f1x.aasdk.proto.messages;
message InputEventIndication
{
uint64 timestamp = 1;
int32 disp_channel = 2;
data.TouchEvent touch_event = 3;
data.ButtonEvents button_event = 4;
data.AbsoluteInputEvents absolute_input_event = 5;
data.RelativeInputEvents relative_input_event = 6;
required uint64 timestamp = 1;
optional int32 disp_channel = 2;
optional data.TouchEvent touch_event = 3;
optional data.ButtonEvents button_event = 4;
optional data.AbsoluteInputEvents absolute_input_event = 5;
optional data.RelativeInputEvents relative_input_event = 6;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "HeadlightStatusEnum.proto";
import "IndicatorStatusEnum.proto";
@ -25,7 +25,7 @@ package f1x.aasdk.proto.data;
message Light
{
enums.HeadlightStatus.Enum headlight = 1;
enums.IndicatorStatus.Enum indicator = 2;
bool hazard_light_on = 3;
required enums.HeadlightStatus.Enum headlight = 1;
required enums.IndicatorStatus.Enum indicator = 2;
required bool hazard_light_on = 3;
}

View File

@ -0,0 +1,26 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package f1x.aasdk.proto.data;
message MediaInfoChannel
{
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "NavigationImageOptionsData.proto";
@ -24,7 +24,7 @@ package f1x.aasdk.proto.data;
message NavigationChannel
{
uint32 minimum_interval_ms = 1;
uint32 type = 2;
NavigationImageOptions image_options = 3;
required uint32 minimum_interval_ms = 1;
required uint32 type = 2;
required NavigationImageOptions image_options = 3;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message NavigationFocusRequest
{
uint32 type = 1;
required uint32 type = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message NavigationFocusResponse
{
uint32 type = 1;
required uint32 type = 1;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message NavigationImageOptions
{
int32 width = 1;
int32 height = 2;
int32 colour_depth_bits = 3;
required int32 width = 1;
required int32 height = 2;
required int32 colour_depth_bits = 3;
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Odometer
{
int32 total_mileage = 1;
int32 trip_mileage = 2;
required int32 total_mileage = 1;
required int32 trip_mileage = 2;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message ParkingBrake
{
bool parking_brake = 1;
required bool parking_brake = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Passenger
{
bool passenger_present = 1;
required bool passenger_present = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message PingRequest
{
int64 timestamp = 1;
required int64 timestamp = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message PingResponse
{
int64 timestamp = 1;
required int64 timestamp = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message RPM
{
int32 rpm = 1;
required int32 rpm = 1;
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message RelativeInputEvent
{
uint32 scan_code = 1;
int32 delta = 2;
required uint32 scan_code = 1;
required int32 delta = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "RelativeInputEventData.proto";

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "SensorData.proto";

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "SensorTypeEnum.proto";
@ -24,5 +24,5 @@ package f1x.aasdk.proto.data;
message Sensor
{
enums.SensorType.Enum type = 1;
required enums.SensorType.Enum type = 1;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "GPSLocationData.proto";
import "CompassData.proto";

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "SensorTypeEnum.proto";
@ -24,6 +24,6 @@ package f1x.aasdk.proto.messages;
message SensorStartRequestMessage
{
enums.SensorType.Enum sensor_type = 1;
int64 refresh_interval = 2;
required enums.SensorType.Enum sensor_type = 1;
required int64 refresh_interval = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
message ServiceDiscoveryRequest
{
string device_name = 4;
string device_brand = 5;
required string device_name = 4;
required string device_brand = 5;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "ChannelDescriptorData.proto";
@ -25,15 +25,15 @@ package f1x.aasdk.proto.messages;
message ServiceDiscoveryResponse
{
repeated data.ChannelDescriptor channels = 1;
string head_unit_name = 2;
string car_model = 3;
string car_year = 4;
string car_serial = 5;
bool left_hand_drive_vehicle = 6;
string headunit_manufacturer = 7;
string headunit_model = 8;
string sw_build = 9;
string sw_version = 10;
bool can_play_native_media_during_vr = 11;
bool hide_clock = 12;
required string head_unit_name = 2;
required string car_model = 3;
required string car_year = 4;
required string car_serial = 5;
required bool left_hand_drive_vehicle = 6;
required string headunit_manufacturer = 7;
required string headunit_model = 8;
required string sw_build = 9;
required string sw_version = 10;
required bool can_play_native_media_during_vr = 11;
optional bool hide_clock = 12;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "ShutdownReasonEnum.proto";
@ -24,5 +24,5 @@ package f1x.aasdk.proto.messages;
message ShutdownRequest
{
enums.ShutdownReason.Enum reason = 1;
required enums.ShutdownReason.Enum reason = 1;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message Speed
{
int32 speed = 1;
bool cruise_engaged = 2;
bool cruise_set_speed = 3;
required int32 speed = 1;
optional bool cruise_engaged = 2;
optional bool cruise_set_speed = 3;
}

View File

@ -1,3 +1,4 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
@ -16,7 +17,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message SteeringWheel
{
int32 steering_angle = 1;
int32 wheel_speed = 2;
required int32 steering_angle = 1;
required int32 wheel_speed = 2;
}

View File

@ -1,31 +1,33 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.enums;
message TouchAction
{
enum Enum
{
PRESS = 0;
RELEASE = 1;
DRAG = 2;
}
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package f1x.aasdk.proto.enums;
message TouchAction
{
enum Enum
{
PRESS = 0;
RELEASE = 1;
DRAG = 2;
POINTER_DOWN=5;
POINTER_UP=6;
}
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message TouchConfig
{
uint32 width = 1;
uint32 height = 2;
required uint32 width = 1;
required uint32 height = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "TouchLocationData.proto";
import "TouchActionEnum.proto";
@ -26,6 +26,6 @@ package f1x.aasdk.proto.data;
message TouchEvent
{
repeated data.TouchLocation touch_location = 1;
uint32 action_index = 2;
enums.TouchAction.Enum touch_action = 3;
required uint32 action_index = 2;
required enums.TouchAction.Enum touch_action = 3;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message TouchLocation
{
uint32 x = 1;
uint32 y = 2;
uint32 pointer_id = 3;
required uint32 x = 1;
required uint32 y = 2;
required uint32 pointer_id = 3;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
message VendorExtensionChannel
{
string name = 1;
required string name = 1;
repeated string package_white_list = 2;
bytes data = 3;
optional bytes data = 3;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "VideoResolutionEnum.proto";
import "VideoFPSEnum.proto";
@ -25,10 +25,10 @@ package f1x.aasdk.proto.data;
message VideoConfig
{
enums.VideoResolution.Enum video_resolution = 1;
enums.VideoFPS.Enum video_fps = 2;
uint32 margin_width = 3;
uint32 margin_height = 4;
uint32 dpi = 5;
uint32 additional_depth = 6;
required enums.VideoResolution.Enum video_resolution = 1;
required enums.VideoFPS.Enum video_fps = 2;
required uint32 margin_width = 3;
required uint32 margin_height = 4;
required uint32 dpi = 5;
optional uint32 additional_depth = 6;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "VideoFocusModeEnum.proto";
@ -24,6 +24,6 @@ package f1x.aasdk.proto.messages;
message VideoFocusIndication
{
enums.VideoFocusMode.Enum focus_mode = 1;
bool unrequested = 2;
required enums.VideoFocusMode.Enum focus_mode = 1;
required bool unrequested = 2;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "VideoFocusModeEnum.proto";
import "VideoFocusReasonEnum.proto";
@ -25,7 +25,7 @@ package f1x.aasdk.proto.messages;
message VideoFocusRequest
{
int32 disp_index = 1;
enums.VideoFocusMode.Enum focus_mode = 2;
enums.VideoFocusReason.Enum focus_reason = 3;
required int32 disp_index = 1;
required enums.VideoFocusMode.Enum focus_mode = 2;
required enums.VideoFocusReason.Enum focus_reason = 3;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;

View File

@ -22,9 +22,9 @@ option optimize_for=SPEED;
package gb.xxy.hr.proto.data;
package f1x.aasdk.proto.data;
message WifiChannel
{
string ssid = 1;
}
}