Class WsI2COutputConfig

java.lang.Object
org.wildstang.hardware.roborio.outputs.config.WsI2COutputConfig
All Implemented Interfaces:
OutputConfig

public class WsI2COutputConfig extends Object implements OutputConfig
Contains configurations for I2C Outputs.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WsI2COutputConfig(edu.wpi.first.wpilibj.I2C.Port p_port, int p_address)
    Construct the I2C config.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the I2C address.
    edu.wpi.first.wpilibj.I2C.Port
    Return the I2C hardware port number, kOnboard or kMXP.
    Builds a JSON String describing the I2C config.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WsI2COutputConfig

      public WsI2COutputConfig(edu.wpi.first.wpilibj.I2C.Port p_port, int p_address)
      Construct the I2C config.
      Parameters:
      p_port - I2C hardware port number.
      p_address - I2C address, normally static by device.
  • Method Details

    • getPort

      public edu.wpi.first.wpilibj.I2C.Port getPort()
      Return the I2C hardware port number, kOnboard or kMXP.
      Returns:
      The I2C port number.
    • getAddress

      public int getAddress()
      Return the I2C address.
      Returns:
      The I2C address.
    • toString

      public String toString()
      Builds a JSON String describing the I2C config.
      Overrides:
      toString in class Object
      Returns:
      Port number and address.