Lines Matching full:pdr
157 std::shared_ptr<pldm_numeric_sensor_value_pdr> pdr, std::string& sensorName, in NumericSensor() argument
160 if (!pdr) in NumericSensor()
165 sensorId = pdr->sensor_id; in NumericSensor()
168 setSensorUnit(pdr->base_unit); in NumericSensor()
211 getSensorDataValue(pdr->sensor_data_size, pdr->max_readable); in NumericSensor()
213 getSensorDataValue(pdr->sensor_data_size, pdr->min_readable); in NumericSensor()
214 hysteresis = getSensorDataValue(pdr->sensor_data_size, pdr->hysteresis); in NumericSensor()
223 if (pdr->supported_thresholds.bits.bit0) in NumericSensor()
227 getRangeFieldValue(pdr->range_field_format, pdr->warning_high); in NumericSensor()
230 if (pdr->supported_thresholds.bits.bit3) in NumericSensor()
234 getRangeFieldValue(pdr->range_field_format, pdr->warning_low); in NumericSensor()
237 if (pdr->supported_thresholds.bits.bit1) in NumericSensor()
241 getRangeFieldValue(pdr->range_field_format, pdr->critical_high); in NumericSensor()
244 if (pdr->supported_thresholds.bits.bit4) in NumericSensor()
248 getRangeFieldValue(pdr->range_field_format, pdr->critical_low); in NumericSensor()
251 resolution = pdr->resolution; in NumericSensor()
252 offset = pdr->offset; in NumericSensor()
253 baseUnitModifier = pdr->unit_modifier; in NumericSensor()
261 if (std::isfinite(pdr->update_interval)) in NumericSensor()
263 updateTime = pdr->update_interval * 1000000; in NumericSensor()
305 if (!createInventoryPath(associationPath, sensorName, pdr->entity_type, in NumericSensor()
306 pdr->entity_instance_num, pdr->container_id)) in NumericSensor()
380 std::shared_ptr<pldm_compact_numeric_sensor_pdr> pdr, in NumericSensor() argument
384 if (!pdr) in NumericSensor()
389 sensorId = pdr->sensor_id; in NumericSensor()
392 setSensorUnit(pdr->base_unit); in NumericSensor()
442 if (pdr->range_field_support.bits.bit0) in NumericSensor()
445 warningHigh = pdr->warning_high; in NumericSensor()
447 if (pdr->range_field_support.bits.bit1) in NumericSensor()
450 warningLow = pdr->warning_low; in NumericSensor()
453 if (pdr->range_field_support.bits.bit2) in NumericSensor()
456 criticalHigh = pdr->critical_high; in NumericSensor()
459 if (pdr->range_field_support.bits.bit3) in NumericSensor()
462 criticalLow = pdr->critical_low; in NumericSensor()
467 baseUnitModifier = pdr->unit_modifier; in NumericSensor()
516 if (!createInventoryPath(associationPath, sensorName, pdr->entity_type, in NumericSensor()
517 pdr->entity_instance, pdr->container_id)) in NumericSensor()