Enum Class FPGALinkRegisters

java.lang.Object
java.lang.Enum<FPGALinkRegisters>
uk.ac.manchester.spinnaker.messages.model.FPGALinkRegisters
All Implemented Interfaces:
Serializable, Comparable<FPGALinkRegisters>, Constable

@SARKStruct("spio") public enum FPGALinkRegisters extends Enum<FPGALinkRegisters>
FPGA registers within a register bank.
Author:
Donal Fellows
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Packet dispatcher busy counter.
    Local channel flow control status.
    Remote channel flow control status.
    CRC error counter.
    Credit.
    Frame disassembler valid frame counter.
    Empty frame assembler queues.
    Frame error counter.
    Full frame assembler queues.
    Handshake.
    IDle Sentinel Input value.
    IDle Sentinel Output value.
    Local ack'd frame counter.
    Local nack'd frame counter.
    Local out-of-credit counter.
    Remote ack counter.
    Link reconnection (re-handshake) counter.
    Packet dispatcher valid received frame counter.
    Remote nack counter.
    Remote out-of-credit counter.
    Frame assembler valid sent frame counter.
    1 = Stop sending data frames.
    Frame transmitter frame counter.
    Version.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The base addresses of register banks are all multiples of this.
    final int
    The offset of the register within the bank of registers.
    final int
    Size of register, in bits.
    final boolean
    Whether this is a writable register.
  • Method Summary

    Modifier and Type
    Method
    Description
    address(int registerBank)
    Compute the address of the register in a particular register bank.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

    • BANK_OFFSET_MULTIPLIER

      public static final int BANK_OFFSET_MULTIPLIER
      The base addresses of register banks are all multiples of this.
      See Also:
    • offset

      public final int offset
      The offset of the register within the bank of registers.
    • writable

      public final boolean writable
      Whether this is a writable register.
    • size

      public final int size
      Size of register, in bits.
  • Method Details

    • values

      public static FPGALinkRegisters[] 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 FPGALinkRegisters 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
    • address

      public MemoryLocation address(int registerBank)
      Compute the address of the register in a particular register bank.
      Parameters:
      registerBank - Which register bank. Must be 0, 1, or 2.
      Returns:
      The address in the FPGA's address space.
      Throws:
      IllegalArgumentException - If a bad register bank is given.