Module com.pi4j

Interface SpiConfig

All Superinterfaces:
AddressConfig<SpiConfig>, Config<SpiConfig>, IOConfig<SpiConfig>

public interface SpiConfig extends AddressConfig<SpiConfig>, IOConfig<SpiConfig>

SpiConfig interface.

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

  • Method Details

    • newBuilder

      static SpiConfigBuilder newBuilder(Context context)

      newBuilder.

      Parameters:
      context - Context
      Returns:
      a I2CConfigBuilder object.
    • baud

      Integer baud()

      baud.

      Returns:
      a Integer object.
    • getBaud

      default Integer getBaud()

      getBaud.

      Returns:
      a Integer object.
    • bus

      SpiBus bus()

      bus.

      If the Bus value is configured, that SpiBus value will be set in the flags flags() bit 'A' 8

      Returns:
      a SpiBus object.
    • getBus

      default SpiBus getBus()

      getBus.

      Returns:
      a SpiBus object.
    • busUserProvided

      boolean busUserProvided()

      busUserProvided.

      Returns:
      a boolean.
    • getBusUserProvided

      default boolean getBusUserProvided()

      getBusUserProvided.

      Returns:
      a Boolean object.
    • mode

      SpiMode mode()

      mode.

      If the Mode value is configured, that SpiMode value will be set in the flags mode() bit 'm m' 1:0

      Returns:
      a SpiMode object.
    • getMode

      default SpiMode getMode()

      getMode.

      Returns:
      a SpiMode object.
    • modeUserProvided

      boolean modeUserProvided()

      modeUserProvided.

      Returns:
      a boolean.
    • getModeUserProvided

      default boolean getModeUserProvided()

      bgetModeUserProvided.

      Returns:
      a Boolean object.
    • flags

      Long flags()

      flags.

      Returns:
      a Long object.
    • getFlags

      default Long getFlags()

      getFlags.

      Returns:
      a Long object.
    • channel

      Integer channel()

      channel. (ALIAS for 'address')

      Returns:
      a Integer object.
    • getChannel

      default Integer getChannel()

      getFlags. (ALIAS for 'getAddress')

      Returns:
      a Long object.
    • chipSelect

      SpiChipSelect chipSelect()

      chipSelect. (ALIAS for 'address')

      Returns:
      a SpiChipSelect object.
    • getChipSelect

      default SpiChipSelect getChipSelect()

      getFlags. (ALIAS for 'getAddress')

      Returns:
      a SpiChipSelect object.