summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasafro2017-01-26 13:37:39 -0600
committerasafro2017-01-27 17:49:44 -0600
commit3d71813eb27b7df354d3d2650997d02f3903b415 (patch)
tree15849c1254b5df224826170a15ad71ccb113d7f6 /vehicle
parente3fc6e07950bc587cd90c0fdfd51b24b1d45e60a (diff)
downloadplatform-hardware-interfaces-3d71813eb27b7df354d3d2650997d02f3903b415.tar.gz
platform-hardware-interfaces-3d71813eb27b7df354d3d2650997d02f3903b415.tar.xz
platform-hardware-interfaces-3d71813eb27b7df354d3d2650997d02f3903b415.zip
Adding VMS message type and a structure to the VMS messages.
Test: will add set/get values to DefaultHalImpl Bug: 34465596 Change-Id: I9fded644dc482a5ed429ba1766d9d01b083f9d87
Diffstat (limited to 'vehicle')
-rw-r--r--vehicle/2.0/types.hal39
1 files changed, 38 insertions, 1 deletions
diff --git a/vehicle/2.0/types.hal b/vehicle/2.0/types.hal
index 071fc05a..3c2437e7 100644
--- a/vehicle/2.0/types.hal
+++ b/vehicle/2.0/types.hal
@@ -1713,7 +1713,15 @@ enum VehicleProperty: int32_t {
1713 | VehicleArea:GLOBAL), 1713 | VehicleArea:GLOBAL),
1714 1714
1715 /* 1715 /*
1716 * Vehicle Maps Data Service (VMDS) message 1716 * Vehicle Maps Service (VMS) message
1717 *
1718 * This property uses COMPLEX data to communicate vms messages.
1719 *
1720 * Its contents are to be interpreted as follows:
1721 * the indices defined in VmsMessageIntegerValuesIndex are to be used to
1722 * read from int32Values;
1723 * stringValue is a serialized VMS message as defined in the vms protocol
1724 * which is opaque to the framework;
1717 * 1725 *
1718 * @change_mode VehiclePropertyChangeMode:ON_CHANGE 1726 * @change_mode VehiclePropertyChangeMode:ON_CHANGE
1719 * @access VehiclePropertyAccess:READ_WRITE 1727 * @access VehiclePropertyAccess:READ_WRITE
@@ -3043,3 +3051,32 @@ enum Obd2FloatSensorIndex : int32_t {
3043 3051
3044 VENDOR_START_INDEX = LAST_SYSTEM_INDEX + 1, 3052 VENDOR_START_INDEX = LAST_SYSTEM_INDEX + 1,
3045}; 3053};
3054
3055/*
3056 * This enum lists the types of supported VMS messages.
3057 */
3058enum VmsMessageType : int32_t {
3059 /* A client subscribes to a layer. */
3060 SUBSCRIBE = 1,
3061
3062 /* A client unsubscribes from a layer. */
3063 UNSUBSCRIBE = 2,
3064
3065 /* A client publishes a data packet. */
3066 DATA = 3,
3067};
3068
3069/*
3070 * This enum provides the canonical mapping for VMS properties that have an
3071 * integer value.
3072 */
3073enum VmsMessageIntegerValuesIndex : int32_t {
3074 /* The message type as enumerated by VmsMessageType enum. */
3075 VMS_MESSAGE_TYPE = 1,
3076
3077 /* The layer ID as defined in the vms protocol. */
3078 VMS_LAYER_ID = 2,
3079
3080 /* The version of the VMS layer. */
3081 VMS_LAYER_VERSION = 3,
3082};