|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
PMBus 1.3 power-management command set over SMBus. More...
#include "protocore_config.h"Go to the source code of this file.
PMBus 1.3 power-management command set over SMBus.
PMBus is SMBus with the command codes fixed and the numbers given an encoding, so a digital point-of-load converter, a hot-swap controller or a power supply reports its input voltage, output current, temperature and faults through one set of commands instead of a register map per part.
Three encodings carry the numbers, and all three are decoded here rather than in a driver:
Values are returned in micro-units (microvolts, microamps, microwatts) and temperatures in milli-degrees Celsius, which is what the other sensor drivers here report in. No float is involved: the exponent is a shift.
The encodings are pure and host-tested. The commands ride the SMBus shapes, so a build with no bus seam refuses them.
Definition in file pmbus.h.