Module com.pi4j

Enum Class SpiChipSelect

java.lang.Object
java.lang.Enum<SpiChipSelect>
com.pi4j.io.spi.SpiChipSelect
All Implemented Interfaces:
Serializable, Comparable<SpiChipSelect>, Constable

public enum SpiChipSelect extends Enum<SpiChipSelect>

SpiChipSelect class.

Version:
$Id: $Id
Author:
Robert Savage (http://www.savagehomeautomation.com)
  • Enum Constant Details

  • Method Details

    • values

      public static SpiChipSelect[] 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 SpiChipSelect 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
    • getChipSelect

      public int getChipSelect()

      Getter for the field chipSelect.

      Returns:
      a int.
    • getByNumber

      public static SpiChipSelect getByNumber(short address)

      getByNumber.

      Parameters:
      address - a short.
      Returns:
      a SpiChipSelect object.
    • getByNumber

      public static SpiChipSelect getByNumber(int address)

      getByNumber.

      Parameters:
      address - a int.
      Returns:
      a SpiChipSelect object.
    • parse

      public static SpiChipSelect parse(String bus)

      parse.

      Parameters:
      bus - a String object.
      Returns:
      a SpiChipSelect object.