• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// sensor common config template
2root {
3    sensorConfig {
4        template sensorDeviceInfo {
5            sensorName = "sensor"; // max string length is 16 bytes
6            vendorName = "vendorXXX_XXX"; // max string length is 16 bytes
7            firmwareVersion = "1.0";
8            hardwareVersion = "1.0";
9            sensorTypeId = 0; // enum SensorTypeTag
10            sensorId = 0; // user define sensor id, defaultenum SensorTypeTag
11            maxRange = 8;
12            accuracy = 0;
13            power = 0;
14        }
15
16        template sensorBusInfo {
17            busType = 0; // 0:i2c 1:spi
18            busNum = 6;
19            busAddr = 0;
20            regWidth = 1;
21            regBigEndian = 0;
22        }
23
24        template sensorIdInfo {
25            chipName = "";
26            chipIdRegister = 0xf;
27            chipIdValue = 0xd1;
28        }
29    }
30}
31