Lines Matching full:rail
18 #include "rail.hpp"
64 std::vector<std::unique_ptr<Rail>> rails) : in StandardDeviceImpl()
82 * Creates a Rail object that checks for a pgood fault using STATUS_VOUT.
84 * @param name Unique name for the rail
85 * @param isPowerSupplyRail Specifies whether the rail is produced by a
87 * @param pageNum PMBus PAGE number of the rail
88 * @return Rail object
90 std::unique_ptr<Rail> createRailStatusVout( in createRailStatusVout()
98 return std::make_unique<Rail>(name, presence, page, isPowerSupplyRail, in createRailStatusVout()
103 * Creates a Rail object that checks for a pgood fault using a GPIO.
105 * @param name Unique name for the rail
106 * @param isPowerSupplyRail Specifies whether the rail is produced by a
108 * @param gpio GPIO line to read to determine the pgood status of the rail
109 * @return Rail object
111 std::unique_ptr<Rail> createRailGPIO( in createRailGPIO()
120 return std::make_unique<Rail>(name, presence, page, isPowerSupplyRail, in createRailGPIO()
125 * Creates a Rail object that checks for a pgood fault using output voltage.
127 * @param name Unique name for the rail
128 * @param isPowerSupplyRail Specifies whether the rail is produced by a
130 * @param pageNum PMBus PAGE number of the rail
131 * @return Rail object
133 std::unique_ptr<Rail> createRailOutputVoltage( in createRailOutputVoltage()
141 return std::make_unique<Rail>(name, presence, page, isPowerSupplyRail, in createRailOutputVoltage()
149 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
158 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
174 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
184 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
192 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
207 // No rail has a pgood fault in TEST()
209 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
236 // First rail has a pgood fault detected via GPIO in TEST()
237 // Is a PSU rail: No PSU error specified in TEST()
239 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
261 "Pgood fault found in rail monitored by device abc_pseq")) in TEST()
263 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail PSU")) in TEST()
268 "Rail PSU pgood GPIO line offset 2 has inactive value 0")) in TEST()
285 // First rail has a pgood fault detected via GPIO in TEST()
286 // Is a PSU rail: PSU error specified in TEST()
288 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
310 "Pgood fault found in rail monitored by device abc_pseq")) in TEST()
312 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail PSU")) in TEST()
317 "Rail PSU pgood GPIO line offset 2 has inactive value 0")) in TEST()
333 // Second rail has a pgood fault detected via output voltage in TEST()
334 // Not a PSU rail: PSU error specified in TEST()
336 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
361 "Pgood fault found in rail monitored by device abc_pseq")) in TEST()
363 EXPECT_CALL(services, logInfoMsg("Rail VDD STATUS_WORD: 0xbeef")) in TEST()
365 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail VDD")) in TEST()
370 "Rail VDD output voltage 1.1V is <= UV fault limit 1.2V")) in TEST()
388 // Third rail has a pgood fault detected via STATUS_VOUT in TEST()
392 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
413 "Pgood fault found in rail monitored by device abc_pseq")) in TEST()
415 EXPECT_CALL(services, logInfoMsg("Rail VIO STATUS_WORD: 0xbeef")) in TEST()
417 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail VIO")) in TEST()
421 logErrorMsg("Rail VIO has fault bits set in STATUS_VOUT: 0x11")) in TEST()
437 // Third rail has a pgood fault detected via STATUS_VOUT in TEST()
441 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
461 "Pgood fault found in rail monitored by device abc_pseq")) in TEST()
463 EXPECT_CALL(services, logInfoMsg("Rail VIO STATUS_WORD: 0xbeef")) in TEST()
465 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail VIO")) in TEST()
469 logErrorMsg("Rail VIO has fault bits set in STATUS_VOUT: 0x11")) in TEST()
485 // All three rails appear to have a pgood fault. Verify third rail is in TEST()
489 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
510 "Pgood fault found in rail monitored by device abc_pseq")) in TEST()
512 EXPECT_CALL(services, logInfoMsg("Rail VIO STATUS_WORD: 0xbeef")) in TEST()
514 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail VIO")) in TEST()
518 logErrorMsg("Rail VIO has fault bits set in STATUS_VOUT: 0x11")) in TEST()
536 // and one is found via a GPIO. Verify the first rail in the sequence with in TEST()
539 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
564 "Pgood fault found in rail monitored by device abc_pseq")) in TEST()
566 EXPECT_CALL(services, logInfoMsg("Rail VDD STATUS_WORD: 0xbeef")) in TEST()
568 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail VDD")) in TEST()
573 "Rail VDD output voltage 1.1V is <= UV fault limit 1.2V")) in TEST()
593 std::vector<std::unique_ptr<Rail>> rails{}; in TEST()
624 "Unable to read STATUS_VOUT value for rail VIO: " in TEST()