Lines Matching full:rail
17 #include "rail.hpp"
29 bool Rail::isPresent(Services& services) in isPresent()
31 // Initially assume rail is present in isPresent()
45 "Unable to determine presence of rail {} using inventory path {}: {}", in isPresent()
53 uint16_t Rail::getStatusWord(PowerSequencerDevice& device) in getStatusWord()
64 std::format("Unable to read STATUS_WORD value for rail {}: {}", in getStatusWord()
70 uint8_t Rail::getStatusVout(PowerSequencerDevice& device) in getStatusVout()
81 std::format("Unable to read STATUS_VOUT value for rail {}: {}", in getStatusVout()
87 double Rail::getReadVout(PowerSequencerDevice& device) in getReadVout()
98 "Unable to read READ_VOUT value for rail {}: {}", name, e.what())}; in getReadVout()
103 double Rail::getVoutUVFaultLimit(PowerSequencerDevice& device) in getVoutUVFaultLimit()
114 "Unable to read VOUT_UV_FAULT_LIMIT value for rail {}: {}", name, in getVoutUVFaultLimit()
120 bool Rail::hasPgoodFault(PowerSequencerDevice& device, Services& services, in hasPgoodFault()
129 bool Rail::hasPgoodFaultStatusVout( in hasPgoodFaultStatusVout()
135 // If rail is present and we are checking the value of STATUS_VOUT in hasPgoodFaultStatusVout()
146 "Rail {} has fault bits set in STATUS_VOUT: {:#04x}", name, in hasPgoodFaultStatusVout()
155 "Rail {} has warning bits set in STATUS_VOUT: {:#04x}", name, in hasPgoodFaultStatusVout()
163 bool Rail::hasPgoodFaultGPIO(PowerSequencerDevice& device, Services& services, in hasPgoodFaultGPIO()
169 // If rail is present and a GPIO is defined for checking pgood status in hasPgoodFaultGPIO()
178 "Invalid GPIO line offset {} for rail {}: Device only has {} GPIO values", in hasPgoodFaultGPIO()
188 "Rail {} pgood GPIO line offset {} has inactive value {}", name, in hasPgoodFaultGPIO()
199 bool Rail::hasPgoodFaultOutputVoltage( in hasPgoodFaultOutputVoltage()
205 // If rail is present and we are comparing output voltage to UV limit in hasPgoodFaultOutputVoltage()
217 "Rail {} output voltage {}V is <= UV fault limit {}V", name, in hasPgoodFaultOutputVoltage()
229 void Rail::verifyHasPage() in verifyHasPage()
234 std::format("No PAGE number defined for rail {}", name)}; in verifyHasPage()
238 void Rail::storePgoodFaultDebugData( in storePgoodFaultDebugData()
242 services.logErrorMsg(std::format("Pgood fault detected in rail {}", name)); in storePgoodFaultDebugData()
250 std::format("Rail {} STATUS_WORD: {:#06x}", name, statusWord)); in storePgoodFaultDebugData()