Enum DeviceFunction

java.lang.Object
java.lang.Enum<DeviceFunction>
org.metricshub.ipmi.client.DeviceFunction
All Implemented Interfaces:
Serializable, Comparable<DeviceFunction>

public enum DeviceFunction extends Enum<DeviceFunction>
A function the BMC provides, from the additional device support byte of Get Device ID (IPMI 2.0 table 20-2).
  • Enum Constant Details

    • SENSOR_DEVICE

      public static final DeviceFunction SENSOR_DEVICE
      The device has sensors (bit 0).
    • SDR_REPOSITORY_DEVICE

      public static final DeviceFunction SDR_REPOSITORY_DEVICE
      The device holds the SDR repository (bit 1).
    • SEL_DEVICE

      public static final DeviceFunction SEL_DEVICE
      The device holds the System Event Log (bit 2).
    • FRU_INVENTORY_DEVICE

      public static final DeviceFunction FRU_INVENTORY_DEVICE
      The device holds a FRU inventory (bit 3).
    • IPMB_EVENT_RECEIVER

      public static final DeviceFunction IPMB_EVENT_RECEIVER
      The device receives events over the IPMB (bit 4).
    • IPMB_EVENT_GENERATOR

      public static final DeviceFunction IPMB_EVENT_GENERATOR
      The device generates events over the IPMB (bit 5).
    • BRIDGE

      public static final DeviceFunction BRIDGE
      The device bridges messages to other channels (bit 6).
    • CHASSIS_DEVICE

      public static final DeviceFunction CHASSIS_DEVICE
      The device implements the chassis commands (bit 7).
  • Method Details

    • values

      public static DeviceFunction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DeviceFunction valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isSetIn

      public boolean isSetIn(byte additionalDeviceSupport)
      Tells whether this function is flagged in the additional device support byte.
      Parameters:
      additionalDeviceSupport - the byte
      Returns:
      true when the bit of this function is set