Add PMBus class

This class provides the interfaces to read PMBus devices
via sysfs files.

This commit provides 3 interfaces:
 1) Write an integer (to provide: echo 1 > clear_faults)
 2) Read a file that represents a bit in a register.
 3) Read a file that represents a bit in a register within
    a PMBus page (or in something that acts like a page).

Additional ones may be added in the future.

ReadFailure/WriteFailure exceptions will be thrown on errors.

Change-Id: I7ea166da00ddc558a9f25c07e6ad9a16714cc3b6
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
3 files changed
tree: 82a84c8e33649b099de55a2dba162ba3df6232f1
  1. .gitignore
  2. argument.hpp
  3. bootstrap.sh
  4. configure.ac
  5. device.hpp
  6. device_monitor.hpp
  7. event.hpp
  8. LICENSE
  9. Makefile.am
  10. pmbus.cpp
  11. pmbus.hpp
  12. README.md
  13. timer.cpp
  14. timer.hpp
  15. utility.cpp
  16. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.