nanotool: accept events from InvenSense ICM406xx IMU driver

Define the vendor code used by InvenSense and allows
to accept events from ICM406xx IMU driver.

Test: tested on reworked nexus6p
Change-Id: I239386a4d548c0ac573f5395a418813980a1b46f
Signed-off-by: Eiji Iwatsuki <eiwatsuki@invensense.com>
diff --git a/util/nanotool/apptohostevent.cpp b/util/nanotool/apptohostevent.cpp
index d7ef575..af9c4cc 100644
--- a/util/nanotool/apptohostevent.cpp
+++ b/util/nanotool/apptohostevent.cpp
@@ -53,7 +53,8 @@
     switch (sensor_type) {
       case SensorType::Accel:
       case SensorType::Gyro:
-        if (GetAppId() != kAppIdBoschBmi160Bmm150 && GetAppId() != kAppIdSTMicroLsm6dsm) {
+        if (GetAppId() != kAppIdBoschBmi160Bmm150 && GetAppId() != kAppIdSTMicroLsm6dsm &&
+            GetAppId() != kAppIdInvnIcm40600) {
             return false;
         }
         break;
diff --git a/util/nanotool/apptohostevent.h b/util/nanotool/apptohostevent.h
index 54c61b6..89a78e3 100644
--- a/util/nanotool/apptohostevent.h
+++ b/util/nanotool/apptohostevent.h
@@ -59,6 +59,7 @@
 
 constexpr uint64_t kAppIdVendorGoogle = 0x476f6f676cULL; // "Googl"
 constexpr uint64_t kAppIdVendorSTMicro = 0x53544d6963ULL; // "STMic"
+constexpr uint64_t kAppIdVendorInvn = 0x496E76656EULL; // "Inven"
 
 constexpr uint64_t kAppIdBoschBmi160Bmm150 = MakeAppId(kAppIdVendorGoogle, 2);
 constexpr uint64_t kAppIdBoschBmp280       = MakeAppId(kAppIdVendorGoogle, 5);
@@ -68,6 +69,7 @@
 constexpr uint64_t kAppIdSTMicroLsm6dsm    = MakeAppId(kAppIdVendorSTMicro, 0);
 constexpr uint64_t kAppIdSTMicroLps22hb    = MakeAppId(kAppIdVendorSTMicro, 1);
 constexpr uint64_t kAppIdSTMicroMag40      = MakeAppId(kAppIdVendorSTMicro, 3);
+constexpr uint64_t kAppIdInvnIcm40600      = MakeAppId(kAppIdVendorInvn, 2);
 
 constexpr uint64_t kAppIdBridge = MakeAppId(kAppIdVendorGoogle, 50);