java.lang.Object
java.lang.Enum<FIControlEnum>
io.github.lunasaw.gb28181.common.entity.control.instruction.enums.FIControlEnum
All Implemented Interfaces:
Serializable, Comparable<FIControlEnum>, java.lang.constant.Constable

public enum FIControlEnum extends Enum<FIControlEnum>
FI(聚焦Focus/光圈Iris)控制指令枚举 根据 A.3.3 FI指令 规范实现

字节4位定义: Bit7-Bit6: 固定为01 Bit5-Bit4: 固定为00 Bit3-Bit2: 光圈控制 (Iris) Bit1-Bit0: 聚焦控制 (Focus)

  • Enum Constant Details

  • Method Details

    • values

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

      public static FIControlEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getByCode

      public static FIControlEnum getByCode(byte code)
      根据指令码查找枚举
    • getByName

      public static FIControlEnum getByName(String name)
      根据名称查找枚举
    • hasIrisControl

      public boolean hasIrisControl()
      检查是否包含光圈控制
    • hasFocusControl

      public boolean hasFocusControl()
      检查是否包含聚焦控制
    • getIrisDirection

      public FIControlEnum.IrisDirection getIrisDirection()
      获取光圈控制类型
    • getFocusDirection

      public FIControlEnum.FocusDirection getFocusDirection()
      获取聚焦控制类型