1# HdfSensorInformation 2 3 4## 概述 5 6定义传感器的基本信息。 7 8传感器的信息包括传感器名称、供应商、固件版本、硬件版本、传感器类型ID、传感器ID、最大测量范围、精度和功率。 9 10**起始版本:** 2.2 11 12**相关模块:**[HdiSensor](_hdi_sensor_v20.md) 13 14 15## 汇总 16 17 18### Public 属性 19 20| 名称 | 描述 | 21| -------- | -------- | 22| String [sensorName](#sensorname) | 传感器名称。 | 23| String [vendorName](#vendorname) | 传感器供应商。 | 24| String [firmwareVersion](#firmwareversion) | 传感器固件版本。 | 25| String [hardwareVersion](#hardwareversion) | 传感器硬件版本。 | 26| int [sensorTypeId](#sensortypeid) | 传感器类型ID(在[HdfSensorTypeTag](_hdi_sensor_v20.md#hdfsensortypetag)中描述)。 | 27| int [sensorId](#sensorid) | 传感器ID,由传感器驱动程序开发人员定义。 | 28| float [maxRange](#maxrange) | 传感器的最大测量范围。 | 29| float [accuracy](#accuracy) | 传感器精度。 | 30| float [power](#power) | 传感器功率。 | 31| long [minDelay](#mindelay) | 允许的最小采样周期(微秒) | 32| long [maxDelay](#maxdelay) | 允许的最大采样周期(微秒) | 33| unsigned int [fifoMaxEventCount](#fifomaxeventcount) | 此传感器可批处理的最大事件数 | 34| unsigned int [reserved](#reserved) | 保留字段 | 35 36 37## 类成员变量说明 38 39 40### accuracy 41 42``` 43float HdfSensorInformation::accuracy 44``` 45 46**描述** 47 48 49传感器精度。 50 51 52### fifoMaxEventCount 53 54``` 55unsigned int HdfSensorInformation::fifoMaxEventCount 56``` 57 58**描述** 59 60 61此传感器可批处理的最大事件数 62 63 64### firmwareVersion 65 66``` 67String HdfSensorInformation::firmwareVersion 68``` 69 70**描述** 71 72 73传感器固件版本。 74 75 76### hardwareVersion 77 78``` 79String HdfSensorInformation::hardwareVersion 80``` 81 82**描述** 83 84 85传感器硬件版本。 86 87 88### maxDelay 89 90``` 91long HdfSensorInformation::maxDelay 92``` 93 94**描述** 95 96 97允许的最大采样周期(微秒) 98 99 100### maxRange 101 102``` 103float HdfSensorInformation::maxRange 104``` 105 106**描述** 107 108 109传感器的最大测量范围。 110 111 112### minDelay 113 114``` 115long HdfSensorInformation::minDelay 116``` 117 118**描述** 119 120 121允许的最小采样周期(微秒) 122 123 124### power 125 126``` 127float HdfSensorInformation::power 128``` 129 130**描述** 131 132 133传感器功率。 134 135 136### reserved 137 138``` 139unsigned int HdfSensorInformation::reserved 140``` 141 142**描述** 143 144 145保留字段 146 147 148### sensorId 149 150``` 151int HdfSensorInformation::sensorId 152``` 153 154**描述** 155 156 157传感器ID,由传感器驱动程序开发人员定义。 158 159 160### sensorName 161 162``` 163String HdfSensorInformation::sensorName 164``` 165 166**描述** 167 168 169传感器名称。 170 171 172### sensorTypeId 173 174``` 175int HdfSensorInformation::sensorTypeId 176``` 177 178**描述** 179 180 181传感器类型ID(在[HdfSensorTypeTag](_hdi_sensor_v20.md#hdfsensortypetag)中描述)。 182 183 184### vendorName 185 186``` 187String HdfSensorInformation::vendorName 188``` 189 190**描述** 191 192 193传感器供应商。 194