Files
OpenNetworkLinux/onlp/implementors/psui.md
Jeffrey Townsend b432e98cd1 Update doxygen urls.
2019-01-10 07:58:18 -08:00

1.5 KiB

psui

The purpose of this module is to implement platform properties of the PSU OID.

There are only two functions which you must implement:

onlp_psui_hdr_get()

This returns the oid header for the given PSU oid.

  • If the PSU is present then you must set the PRESENT flag. Otherwise it is assumed to be absent and no further operations will be performed.
  • If the PSU is present but unplugged you must set the UNPLUGGED flag. No operations are attempting on an unplugged PSU.
  • IF the PSU has failed then you must set the FAILED flag. No operations are performed on a failed PSU.

If the PSU has Fan and or LED children they should be added to the coid table.

onlp_psui_info_get()

This returns the full information structure for the PSU. This includes the capability flags and current values for all available fields:

  • Power, Voltage, and Current - PIN, POUT, VIN, VOUT, IIN, IOUT (in milli-units)
  • AC, DC12, or DC48

PSU Set APIs

There are no defined APIs for setting any PSU values. This may change in the future.

PSUi Documentation


Return to APIs