Lines Matching refs:output
775 void printCommonPDRHeader(const pldm_pdr_hdr* hdr, ordered_json& output) in printCommonPDRHeader() argument
777 output["recordHandle"] = hdr->record_handle; in printCommonPDRHeader()
778 output["PDRHeaderVersion"] = unsigned(hdr->version); in printCommonPDRHeader()
779 output["PDRType"] = getPDRType(hdr->type); in printCommonPDRHeader()
780 output["recordChangeNumber"] = hdr->record_change_num; in printCommonPDRHeader()
781 output["dataLength"] = hdr->length; in printCommonPDRHeader()
807 void printStateSensorPDR(const uint8_t* data, ordered_json& output) in printStateSensorPDR() argument
810 output["PLDMTerminusHandle"] = pdr->terminus_handle; in printStateSensorPDR()
811 output["sensorID"] = pdr->sensor_id; in printStateSensorPDR()
812 output["entityType"] = getEntityName(pdr->entity_type); in printStateSensorPDR()
813 output["entityInstanceNumber"] = pdr->entity_instance; in printStateSensorPDR()
814 output["containerID"] = pdr->container_id; in printStateSensorPDR()
815 output["sensorInit"] = sensorInit[pdr->sensor_init]; in printStateSensorPDR()
816 output["sensorAuxiliaryNamesPDR"] = in printStateSensorPDR()
818 output["compositeSensorCount"] = unsigned(pdr->composite_sensor_count); in printStateSensorPDR()
827 output.emplace(("stateSetID[" + std::to_string(compCount) + "]"), in printStateSensorPDR()
829 output.emplace( in printStateSensorPDR()
832 output.emplace( in printStateSensorPDR()
847 void printPDRFruRecordSet(uint8_t* data, ordered_json& output) in printPDRFruRecordSet() argument
863 output["PLDMTerminusHandle"] = unsigned(pdr->terminus_handle); in printPDRFruRecordSet()
864 output["FRURecordSetIdentifier"] = unsigned(pdr->fru_rsi); in printPDRFruRecordSet()
865 output["entityType"] = getEntityName(pdr->entity_type); in printPDRFruRecordSet()
866 output["entityInstanceNumber"] = unsigned(pdr->entity_instance); in printPDRFruRecordSet()
867 output["containerID"] = unsigned(pdr->container_id); in printPDRFruRecordSet()
870 void printPDREntityAssociation(uint8_t* data, ordered_json& output) in printPDREntityAssociation() argument
892 output["containerID"] = int(pdr->container_id); in printPDREntityAssociation()
895 output["associationType"] = in printPDREntityAssociation()
902 output["containerEntityType"] = in printPDREntityAssociation()
904 output["containerEntityInstanceNumber"] = in printPDREntityAssociation()
906 output["containerEntityContainerID"] = in printPDREntityAssociation()
908 output["containedEntityCount"] = in printPDREntityAssociation()
914 output.emplace("containedEntityType[" + std::to_string(i + 1) + "]", in printPDREntityAssociation()
916 output.emplace("containedEntityInstanceNumber[" + in printPDREntityAssociation()
919 output.emplace("containedEntityContainerID[" + in printPDREntityAssociation()
932 void printAuxNamePDR(uint8_t* data, ordered_json& output) in printAuxNamePDR() argument
949 output["terminusHandle"] = int(auxNamePdr->terminus_handle); in printAuxNamePDR()
950 output[sPrefix + "Id"] = int(auxNamePdr->effecter_id); in printAuxNamePDR()
951 output[sPrefix + "Count"] = int(auxNamePdr->effecter_count); in printAuxNamePDR()
981 output[nameLanguageTagKey] = nameLanguageTag; in printAuxNamePDR()
982 output[entityAuxNameKey] = nameString; in printAuxNamePDR()
987 void printNumericEffecterPDR(uint8_t* data, ordered_json& output) in printNumericEffecterPDR() argument
997 output["PLDMTerminusHandle"] = int(pdr->terminus_handle); in printNumericEffecterPDR()
998 output["effecterID"] = int(pdr->effecter_id); in printNumericEffecterPDR()
999 output["entityType"] = int(pdr->entity_type); in printNumericEffecterPDR()
1000 output["entityInstanceNumber"] = int(pdr->entity_instance); in printNumericEffecterPDR()
1001 output["containerID"] = int(pdr->container_id); in printNumericEffecterPDR()
1002 output["effecterSemanticID"] = int(pdr->effecter_semantic_id); in printNumericEffecterPDR()
1003 output["effecterInit"] = unsigned(pdr->effecter_init); in printNumericEffecterPDR()
1004 output["effecterAuxiliaryNames"] = in printNumericEffecterPDR()
1006 output["baseUnit"] = unsigned(pdr->base_unit); in printNumericEffecterPDR()
1007 output["unitModifier"] = unsigned(pdr->unit_modifier); in printNumericEffecterPDR()
1008 output["rateUnit"] = unsigned(pdr->rate_unit); in printNumericEffecterPDR()
1009 output["baseOEMUnitHandle"] = unsigned(pdr->base_oem_unit_handle); in printNumericEffecterPDR()
1010 output["auxUnit"] = unsigned(pdr->aux_unit); in printNumericEffecterPDR()
1011 output["auxUnitModifier"] = unsigned(pdr->aux_unit_modifier); in printNumericEffecterPDR()
1012 output["auxrateUnit"] = unsigned(pdr->aux_rate_unit); in printNumericEffecterPDR()
1013 output["auxOEMUnitHandle"] = unsigned(pdr->aux_oem_unit_handle); in printNumericEffecterPDR()
1014 output["isLinear"] = (unsigned(pdr->is_linear) ? true : false); in printNumericEffecterPDR()
1015 output["effecterDataSize"] = unsigned(pdr->effecter_data_size); in printNumericEffecterPDR()
1016 output["resolution"] = unsigned(pdr->resolution); in printNumericEffecterPDR()
1017 output["offset"] = unsigned(pdr->offset); in printNumericEffecterPDR()
1018 output["accuracy"] = unsigned(pdr->accuracy); in printNumericEffecterPDR()
1019 output["plusTolerance"] = unsigned(pdr->plus_tolerance); in printNumericEffecterPDR()
1020 output["minusTolerance"] = unsigned(pdr->minus_tolerance); in printNumericEffecterPDR()
1021 output["stateTransitionInterval"] = in printNumericEffecterPDR()
1023 output["TransitionInterval"] = unsigned(pdr->transition_interval); in printNumericEffecterPDR()
1028 output["maxSettable"] = unsigned(pdr->max_settable.value_u8); in printNumericEffecterPDR()
1029 output["minSettable"] = unsigned(pdr->min_settable.value_u8); in printNumericEffecterPDR()
1032 output["maxSettable"] = unsigned(pdr->max_settable.value_s8); in printNumericEffecterPDR()
1033 output["minSettable"] = unsigned(pdr->min_settable.value_s8); in printNumericEffecterPDR()
1036 output["maxSettable"] = unsigned(pdr->max_settable.value_u16); in printNumericEffecterPDR()
1037 output["minSettable"] = unsigned(pdr->min_settable.value_u16); in printNumericEffecterPDR()
1040 output["maxSettable"] = unsigned(pdr->max_settable.value_s16); in printNumericEffecterPDR()
1041 output["minSettable"] = unsigned(pdr->min_settable.value_s16); in printNumericEffecterPDR()
1044 output["maxSettable"] = unsigned(pdr->max_settable.value_u32); in printNumericEffecterPDR()
1045 output["minSettable"] = unsigned(pdr->min_settable.value_u32); in printNumericEffecterPDR()
1048 output["maxSettable"] = unsigned(pdr->max_settable.value_s32); in printNumericEffecterPDR()
1049 output["minSettable"] = unsigned(pdr->min_settable.value_s32); in printNumericEffecterPDR()
1055 output["rangeFieldFormat"] = unsigned(pdr->range_field_format); in printNumericEffecterPDR()
1056 output["rangeFieldSupport"] = unsigned(pdr->range_field_support.byte); in printNumericEffecterPDR()
1061 output["nominalValue"] = unsigned(pdr->nominal_value.value_u8); in printNumericEffecterPDR()
1062 output["normalMax"] = unsigned(pdr->normal_max.value_u8); in printNumericEffecterPDR()
1063 output["normalMin"] = unsigned(pdr->normal_min.value_u8); in printNumericEffecterPDR()
1064 output["ratedMax"] = unsigned(pdr->rated_max.value_u8); in printNumericEffecterPDR()
1065 output["ratedMin"] = unsigned(pdr->rated_min.value_u8); in printNumericEffecterPDR()
1068 output["nominalValue"] = unsigned(pdr->nominal_value.value_s8); in printNumericEffecterPDR()
1069 output["normalMax"] = unsigned(pdr->normal_max.value_s8); in printNumericEffecterPDR()
1070 output["normalMin"] = unsigned(pdr->normal_min.value_s8); in printNumericEffecterPDR()
1071 output["ratedMax"] = unsigned(pdr->rated_max.value_s8); in printNumericEffecterPDR()
1072 output["ratedMin"] = unsigned(pdr->rated_min.value_s8); in printNumericEffecterPDR()
1075 output["nominalValue"] = unsigned(pdr->nominal_value.value_u16); in printNumericEffecterPDR()
1076 output["normalMax"] = unsigned(pdr->normal_max.value_u16); in printNumericEffecterPDR()
1077 output["normalMin"] = unsigned(pdr->normal_min.value_u16); in printNumericEffecterPDR()
1078 output["ratedMax"] = unsigned(pdr->rated_max.value_u16); in printNumericEffecterPDR()
1079 output["ratedMin"] = unsigned(pdr->rated_min.value_u16); in printNumericEffecterPDR()
1082 output["nominalValue"] = unsigned(pdr->nominal_value.value_s16); in printNumericEffecterPDR()
1083 output["normalMax"] = unsigned(pdr->normal_max.value_s16); in printNumericEffecterPDR()
1084 output["normalMin"] = unsigned(pdr->normal_min.value_s16); in printNumericEffecterPDR()
1085 output["ratedMax"] = unsigned(pdr->rated_max.value_s16); in printNumericEffecterPDR()
1086 output["ratedMin"] = unsigned(pdr->rated_min.value_s16); in printNumericEffecterPDR()
1089 output["nominalValue"] = unsigned(pdr->nominal_value.value_u32); in printNumericEffecterPDR()
1090 output["normalMax"] = unsigned(pdr->normal_max.value_u32); in printNumericEffecterPDR()
1091 output["normalMin"] = unsigned(pdr->normal_min.value_u32); in printNumericEffecterPDR()
1092 output["ratedMax"] = unsigned(pdr->rated_max.value_u32); in printNumericEffecterPDR()
1093 output["ratedMin"] = unsigned(pdr->rated_min.value_u32); in printNumericEffecterPDR()
1096 output["nominalValue"] = unsigned(pdr->nominal_value.value_s32); in printNumericEffecterPDR()
1097 output["normalMax"] = unsigned(pdr->normal_max.value_s32); in printNumericEffecterPDR()
1098 output["normalMin"] = unsigned(pdr->normal_min.value_s32); in printNumericEffecterPDR()
1099 output["ratedMax"] = unsigned(pdr->rated_max.value_s32); in printNumericEffecterPDR()
1100 output["ratedMin"] = unsigned(pdr->rated_min.value_s32); in printNumericEffecterPDR()
1103 output["nominalValue"] = unsigned(pdr->nominal_value.value_f32); in printNumericEffecterPDR()
1104 output["normalMax"] = unsigned(pdr->normal_max.value_f32); in printNumericEffecterPDR()
1105 output["normalMin"] = unsigned(pdr->normal_min.value_f32); in printNumericEffecterPDR()
1106 output["ratedMax"] = unsigned(pdr->rated_max.value_f32); in printNumericEffecterPDR()
1107 output["ratedMin"] = unsigned(pdr->rated_min.value_f32); in printNumericEffecterPDR()
1114 void printStateEffecterPDR(const uint8_t* data, ordered_json& output) in printStateEffecterPDR() argument
1118 output["PLDMTerminusHandle"] = pdr->terminus_handle; in printStateEffecterPDR()
1119 output["effecterID"] = pdr->effecter_id; in printStateEffecterPDR()
1120 output["entityType"] = getEntityName(pdr->entity_type); in printStateEffecterPDR()
1121 output["entityInstanceNumber"] = pdr->entity_instance; in printStateEffecterPDR()
1122 output["containerID"] = pdr->container_id; in printStateEffecterPDR()
1123 output["effecterSemanticID"] = pdr->effecter_semantic_id; in printStateEffecterPDR()
1124 output["effecterInit"] = effecterInit[pdr->effecter_init]; in printStateEffecterPDR()
1125 output["effecterDescriptionPDR"] = in printStateEffecterPDR()
1127 output["compositeEffecterCount"] = in printStateEffecterPDR()
1138 output.emplace(("stateSetID[" + std::to_string(compEffCount) + "]"), in printStateEffecterPDR()
1140 output.emplace( in printStateEffecterPDR()
1143 output.emplace( in printStateEffecterPDR()
1221 void printTerminusLocatorPDR(const uint8_t* data, ordered_json& output) in printTerminusLocatorPDR() argument
1228 output["PLDMTerminusHandle"] = pdr->terminus_handle; in printTerminusLocatorPDR()
1229 output["validity"] = (pdr->validity ? "valid" : "notValid"); in printTerminusLocatorPDR()
1230 output["TID"] = unsigned(pdr->tid); in printTerminusLocatorPDR()
1231 output["containerID"] = pdr->container_id; in printTerminusLocatorPDR()
1232 output["terminusLocatorType"] = in printTerminusLocatorPDR()
1234 output["terminusLocatorValueSize"] = in printTerminusLocatorPDR()
1242 output["EID"] = unsigned(locatorValue->eid); in printTerminusLocatorPDR()
1269 ordered_json& output) in printNumericSensorPDR() argument
1279 output["PLDMTerminusHandle"] = pdr.terminus_handle; in printNumericSensorPDR()
1280 output["sensorID"] = pdr.sensor_id; in printNumericSensorPDR()
1281 output["entityType"] = getEntityName(pdr.entity_type); in printNumericSensorPDR()
1282 output["entityInstanceNumber"] = pdr.entity_instance_num; in printNumericSensorPDR()
1283 output["containerID"] = pdr.container_id; in printNumericSensorPDR()
1284 output["sensorInit"] = pdr.sensor_init; in printNumericSensorPDR()
1285 output["sensorAuxiliaryNamesPDR"] = in printNumericSensorPDR()
1287 output["baseUnit"] = pdr.base_unit; in printNumericSensorPDR()
1288 output["unitModifier"] = pdr.unit_modifier; in printNumericSensorPDR()
1289 output["rateUnit"] = pdr.rate_unit; in printNumericSensorPDR()
1290 output["baseOEMUnitHandle"] = pdr.base_oem_unit_handle; in printNumericSensorPDR()
1291 output["auxUnit"] = pdr.aux_unit; in printNumericSensorPDR()
1292 output["auxUnitModifier"] = pdr.aux_unit_modifier; in printNumericSensorPDR()
1293 output["auxrateUnit"] = pdr.aux_rate_unit; in printNumericSensorPDR()
1294 output["rel"] = pdr.rel; in printNumericSensorPDR()
1295 output["auxOEMUnitHandle"] = pdr.aux_oem_unit_handle; in printNumericSensorPDR()
1296 output["isLinear"] = (pdr.is_linear) ? true : false; in printNumericSensorPDR()
1297 output["sensorDataSize"] = pdr.sensor_data_size; in printNumericSensorPDR()
1298 output["resolution"] = pdr.resolution; in printNumericSensorPDR()
1299 output["offset"] = pdr.offset; in printNumericSensorPDR()
1300 output["accuracy"] = pdr.accuracy; in printNumericSensorPDR()
1301 output["plusTolerance"] = pdr.plus_tolerance; in printNumericSensorPDR()
1302 output["minusTolerance"] = pdr.minus_tolerance; in printNumericSensorPDR()
1307 output["hysteresis"] = pdr.hysteresis.value_u8; in printNumericSensorPDR()
1308 output["maxReadable"] = pdr.max_readable.value_u8; in printNumericSensorPDR()
1309 output["minReadable"] = pdr.min_readable.value_u8; in printNumericSensorPDR()
1312 output["hysteresis"] = pdr.hysteresis.value_s8; in printNumericSensorPDR()
1313 output["maxReadable"] = pdr.max_readable.value_s8; in printNumericSensorPDR()
1314 output["minReadable"] = pdr.min_readable.value_s8; in printNumericSensorPDR()
1317 output["hysteresis"] = pdr.hysteresis.value_u16; in printNumericSensorPDR()
1318 output["maxReadable"] = pdr.max_readable.value_u16; in printNumericSensorPDR()
1319 output["minReadable"] = pdr.min_readable.value_u16; in printNumericSensorPDR()
1322 output["hysteresis"] = pdr.hysteresis.value_s16; in printNumericSensorPDR()
1323 output["maxReadable"] = pdr.max_readable.value_s16; in printNumericSensorPDR()
1324 output["minReadable"] = pdr.min_readable.value_s16; in printNumericSensorPDR()
1327 output["hysteresis"] = pdr.hysteresis.value_u32; in printNumericSensorPDR()
1328 output["maxReadable"] = pdr.max_readable.value_u32; in printNumericSensorPDR()
1329 output["minReadable"] = pdr.min_readable.value_u32; in printNumericSensorPDR()
1332 output["hysteresis"] = pdr.hysteresis.value_s32; in printNumericSensorPDR()
1333 output["maxReadable"] = pdr.max_readable.value_s32; in printNumericSensorPDR()
1334 output["minReadable"] = pdr.min_readable.value_s32; in printNumericSensorPDR()
1340 output["supportedThresholds"] = pdr.supported_thresholds.byte; in printNumericSensorPDR()
1341 output["thresholAndHysteresisVolatility"] = in printNumericSensorPDR()
1343 output["stateTransitionInterval"] = pdr.state_transition_interval; in printNumericSensorPDR()
1344 output["updateInterval"] = pdr.update_interval; in printNumericSensorPDR()
1345 output["rangeFieldFormat"] = pdr.range_field_format; in printNumericSensorPDR()
1346 output["rangeFieldSupport"] = pdr.range_field_support.byte; in printNumericSensorPDR()
1351 output["nominalValue"] = pdr.nominal_value.value_u8; in printNumericSensorPDR()
1352 output["normalMax"] = pdr.normal_max.value_u8; in printNumericSensorPDR()
1353 output["normalMin"] = pdr.normal_min.value_u8; in printNumericSensorPDR()
1354 output["warningHigh"] = pdr.warning_high.value_u8; in printNumericSensorPDR()
1355 output["warningLow"] = pdr.warning_low.value_u8; in printNumericSensorPDR()
1356 output["criticalHigh"] = pdr.critical_high.value_u8; in printNumericSensorPDR()
1357 output["criticalLow"] = pdr.critical_low.value_u8; in printNumericSensorPDR()
1358 output["fatalHigh"] = pdr.fatal_high.value_u8; in printNumericSensorPDR()
1359 output["fatalLeow"] = pdr.fatal_low.value_u8; in printNumericSensorPDR()
1362 output["nominalValue"] = pdr.nominal_value.value_s8; in printNumericSensorPDR()
1363 output["normalMax"] = pdr.normal_max.value_s8; in printNumericSensorPDR()
1364 output["normalMin"] = pdr.normal_min.value_s8; in printNumericSensorPDR()
1365 output["warningHigh"] = pdr.warning_high.value_s8; in printNumericSensorPDR()
1366 output["warningLow"] = pdr.warning_low.value_s8; in printNumericSensorPDR()
1367 output["criticalHigh"] = pdr.critical_high.value_s8; in printNumericSensorPDR()
1368 output["criticalLow"] = pdr.critical_low.value_s8; in printNumericSensorPDR()
1369 output["fatalHigh"] = pdr.fatal_high.value_s8; in printNumericSensorPDR()
1370 output["fatalLeow"] = pdr.fatal_low.value_s8; in printNumericSensorPDR()
1373 output["nominalValue"] = pdr.nominal_value.value_u16; in printNumericSensorPDR()
1374 output["normalMax"] = pdr.normal_max.value_u16; in printNumericSensorPDR()
1375 output["normalMin"] = pdr.normal_min.value_u16; in printNumericSensorPDR()
1376 output["warningHigh"] = pdr.warning_high.value_u16; in printNumericSensorPDR()
1377 output["warningLow"] = pdr.warning_low.value_u16; in printNumericSensorPDR()
1378 output["criticalHigh"] = pdr.critical_high.value_u16; in printNumericSensorPDR()
1379 output["criticalLow"] = pdr.critical_low.value_u16; in printNumericSensorPDR()
1380 output["fatalHigh"] = pdr.fatal_high.value_u16; in printNumericSensorPDR()
1381 output["fatalLeow"] = pdr.fatal_low.value_u16; in printNumericSensorPDR()
1384 output["nominalValue"] = pdr.nominal_value.value_s16; in printNumericSensorPDR()
1385 output["normalMax"] = pdr.normal_max.value_s16; in printNumericSensorPDR()
1386 output["normalMin"] = pdr.normal_min.value_s16; in printNumericSensorPDR()
1387 output["warningHigh"] = pdr.warning_high.value_s16; in printNumericSensorPDR()
1388 output["warningLow"] = pdr.warning_low.value_s16; in printNumericSensorPDR()
1389 output["criticalHigh"] = pdr.critical_high.value_s16; in printNumericSensorPDR()
1390 output["criticalLow"] = pdr.critical_low.value_s16; in printNumericSensorPDR()
1391 output["fatalHigh"] = pdr.fatal_high.value_s16; in printNumericSensorPDR()
1392 output["fatalLeow"] = pdr.fatal_low.value_s16; in printNumericSensorPDR()
1395 output["nominalValue"] = pdr.nominal_value.value_u32; in printNumericSensorPDR()
1396 output["normalMax"] = pdr.normal_max.value_u32; in printNumericSensorPDR()
1397 output["normalMin"] = pdr.normal_min.value_u32; in printNumericSensorPDR()
1398 output["warningHigh"] = pdr.warning_high.value_u32; in printNumericSensorPDR()
1399 output["warningLow"] = pdr.warning_low.value_u32; in printNumericSensorPDR()
1400 output["criticalHigh"] = pdr.critical_high.value_u32; in printNumericSensorPDR()
1401 output["criticalLow"] = pdr.critical_low.value_u32; in printNumericSensorPDR()
1402 output["fatalHigh"] = pdr.fatal_high.value_u32; in printNumericSensorPDR()
1403 output["fatalLeow"] = pdr.fatal_low.value_u32; in printNumericSensorPDR()
1406 output["nominalValue"] = pdr.nominal_value.value_s32; in printNumericSensorPDR()
1407 output["normalMax"] = pdr.normal_max.value_s32; in printNumericSensorPDR()
1408 output["normalMin"] = pdr.normal_min.value_s32; in printNumericSensorPDR()
1409 output["warningHigh"] = pdr.warning_high.value_s32; in printNumericSensorPDR()
1410 output["warningLow"] = pdr.warning_low.value_s32; in printNumericSensorPDR()
1411 output["criticalHigh"] = pdr.critical_high.value_s32; in printNumericSensorPDR()
1412 output["criticalLow"] = pdr.critical_low.value_s32; in printNumericSensorPDR()
1413 output["fatalHigh"] = pdr.fatal_high.value_s32; in printNumericSensorPDR()
1414 output["fatalLeow"] = pdr.fatal_low.value_s32; in printNumericSensorPDR()
1417 output["nominalValue"] = pdr.nominal_value.value_f32; in printNumericSensorPDR()
1418 output["normalMax"] = pdr.normal_max.value_f32; in printNumericSensorPDR()
1419 output["normalMin"] = pdr.normal_min.value_f32; in printNumericSensorPDR()
1420 output["warningHigh"] = pdr.warning_high.value_f32; in printNumericSensorPDR()
1421 output["warningLow"] = pdr.warning_low.value_f32; in printNumericSensorPDR()
1422 output["criticalHigh"] = pdr.critical_high.value_f32; in printNumericSensorPDR()
1423 output["criticalLow"] = pdr.critical_low.value_f32; in printNumericSensorPDR()
1424 output["fatalHigh"] = pdr.fatal_high.value_f32; in printNumericSensorPDR()
1425 output["fatalLeow"] = pdr.fatal_low.value_f32; in printNumericSensorPDR()
1437 void printCompactNumericSensorPDR(const uint8_t* data, ordered_json& output) in printCompactNumericSensorPDR() argument
1447 output["PLDMTerminusHandle"] = int(pdr->terminus_handle); in printCompactNumericSensorPDR()
1448 output["sensorID"] = int(pdr->sensor_id); in printCompactNumericSensorPDR()
1449 output["entityType"] = getEntityName(pdr->entity_type); in printCompactNumericSensorPDR()
1450 output["entityInstanceNumber"] = int(pdr->entity_instance); in printCompactNumericSensorPDR()
1451 output["containerID"] = int(pdr->container_id); in printCompactNumericSensorPDR()
1452 output["sensorNameStringByteLength"] = int(pdr->sensor_name_length); in printCompactNumericSensorPDR()
1455 output["Name"] = std::format("PLDM_Device_TID{}_SensorId{}", in printCompactNumericSensorPDR()
1463 output["Name"] = sTemp; in printCompactNumericSensorPDR()
1465 output["baseUnit"] = unsigned(pdr->base_unit); in printCompactNumericSensorPDR()
1466 output["unitModifier"] = signed(pdr->unit_modifier); in printCompactNumericSensorPDR()
1467 output["occurrenceRate"] = unsigned(pdr->occurrence_rate); in printCompactNumericSensorPDR()
1468 output["rangeFieldSupport"] = unsigned(pdr->range_field_support.byte); in printCompactNumericSensorPDR()
1471 output["warningHigh"] = int(pdr->warning_high); in printCompactNumericSensorPDR()
1475 output["warningLow"] = int(pdr->warning_low); in printCompactNumericSensorPDR()
1479 output["criticalHigh"] = int(pdr->critical_high); in printCompactNumericSensorPDR()
1483 output["criticalLow"] = int(pdr->critical_low); in printCompactNumericSensorPDR()
1487 output["fatalHigh"] = int(pdr->fatal_high); in printCompactNumericSensorPDR()
1491 output["fatalLow"] = int(pdr->fatal_low); in printCompactNumericSensorPDR()
1504 ordered_json output; in printPDRMsg() local
1505 output["nextRecordHandle"] = nextRecordHndl; in printPDRMsg()
1506 output["responseCount"] = respCnt; in printPDRMsg()
1546 printCommonPDRHeader(pdr, output); in printPDRMsg()
1551 printTerminusLocatorPDR(data, output); in printPDRMsg()
1554 printStateSensorPDR(data, output); in printPDRMsg()
1557 printNumericEffecterPDR(data, output); in printPDRMsg()
1560 printNumericSensorPDR(data, respCnt, output); in printPDRMsg()
1564 printAuxNamePDR(data, output); in printPDRMsg()
1567 printStateEffecterPDR(data, output); in printPDRMsg()
1570 printPDREntityAssociation(data, output); in printPDRMsg()
1573 printPDRFruRecordSet(data, output); in printPDRMsg()
1576 printCompactNumericSensorPDR(data, output); in printPDRMsg()
1581 pldmtool::helper::DisplayInJson(output); in printPDRMsg()
1832 ordered_json output; in parseResponseMsg() local
1833 output["compositeSensorCount"] = (int)compSensorCount; in parseResponseMsg()
1839 output.emplace(("sensorOpState[" + std::to_string(i) + "]"), in parseResponseMsg()
1845 output.emplace(("presentState[" + std::to_string(i) + "]"), in parseResponseMsg()
1851 output.emplace( in parseResponseMsg()
1858 output.emplace(("eventState[" + std::to_string(i) + "]"), in parseResponseMsg()
1863 pldmtool::helper::DisplayInJson(output); in parseResponseMsg()
1932 ordered_json output; in parseResponseMsg() local
1933 output["sensorDataSize"] = in parseResponseMsg()
1935 output["sensorOperationalState"] = in parseResponseMsg()
1937 output["sensorEventMessageEnable"] = in parseResponseMsg()
1939 output["presentState"] = getSensorState(presentState, &sensorPresState); in parseResponseMsg()
1940 output["previousState"] = in parseResponseMsg()
1942 output["eventState"] = getSensorState(eventState, &sensorPresState); in parseResponseMsg()
1948 output["presentReading"] = in parseResponseMsg()
1954 output["presentReading"] = in parseResponseMsg()
1960 output["presentReading"] = in parseResponseMsg()
1966 output["presentReading"] = in parseResponseMsg()
1972 output["presentReading"] = in parseResponseMsg()
1978 output["presentReading"] = in parseResponseMsg()
1990 pldmtool::helper::DisplayInJson(output); in parseResponseMsg()
2073 ordered_json output; in parseResponseMsg() local
2075 output["compositeEffecterCount"] = comp_effecter_count; in parseResponseMsg()
2079 output[std::format("effecterOpState[{}])", i)] = in parseResponseMsg()
2082 output[std::format("pendingState[{}]", i)] = in parseResponseMsg()
2085 output[std::format("presentState[{}]", i)] = in parseResponseMsg()
2089 pldmtool::helper::DisplayInJson(output); in parseResponseMsg()
2153 ordered_json output; in parseResponseMsg() local
2154 output["effecterDataSize"] = static_cast<int>(effecterDataSize); in parseResponseMsg()
2155 output["effecterOperationalState"] = in parseResponseMsg()
2162 output["pendingValue"] = in parseResponseMsg()
2164 output["presentValue"] = in parseResponseMsg()
2170 output["pendingValue"] = in parseResponseMsg()
2172 output["presentValue"] = in parseResponseMsg()
2178 output["pendingValue"] = in parseResponseMsg()
2180 output["presentValue"] = in parseResponseMsg()
2186 output["pendingValue"] = in parseResponseMsg()
2188 output["presentValue"] = in parseResponseMsg()
2194 output["pendingValue"] = in parseResponseMsg()
2196 output["presentValue"] = in parseResponseMsg()
2202 output["pendingValue"] = in parseResponseMsg()
2204 output["presentValue"] = in parseResponseMsg()
2216 pldmtool::helper::DisplayInJson(output); in parseResponseMsg()