Packages

c

spinal.lib.com.usb

UsbTokenRxFsm

class UsbTokenRxFsm extends StateMachineSlave

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UsbTokenRxFsm
  2. StateMachineSlave
  3. StateMachine
  4. StateMachineAccessor
  5. Area
  6. OverridedEqualsHashCode
  7. ValCallbackRec
  8. ValCallback
  9. NameableByComponent
  10. Nameable
  11. ContextUser
  12. ScalaLocated
  13. GlobalDataUser
  14. OwnableRef
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UsbTokenRxFsm(rx: Flow[Bits], rxActive: Bool, rxStuffing: Bool, timeoutClear: Bool, timeoutEvent: Bool)

Type Members

  1. abstract type RefOwnerType
    Definition Classes
    OwnableRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val CHECK: State
  5. val DATA_0: State
  6. val DATA_1: State
  7. val ERROR: State
  8. val PID: State
  9. val _context: Capture
    Definition Classes
    Area
  10. def add(stateMachine: StateMachineAccessor): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  11. def add(state: State): Int
    Definition Classes
    StateMachineStateMachineAccessor
  12. val address: data.type
  13. def always(doThat: ⇒ Unit): UsbTokenRxFsm.this.type
    Definition Classes
    StateMachine
  14. val alwaysTasks: ArrayBuffer[() ⇒ Unit]
    Definition Classes
    StateMachine
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. var autoStart: Boolean
    Definition Classes
    StateMachine
  17. def build(): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  18. var builded: Boolean
    Definition Classes
    StateMachine
  19. val cache: HashMap[Any, Any]
    Definition Classes
    StateMachine
  20. def cacheGet(key: Any): Option[Any]
    Definition Classes
    StateMachineStateMachineAccessor
  21. def cacheGetOrElseUpdate(key: Any, op: ⇒ Any): Any
    Definition Classes
    StateMachineAccessor
  22. def cachePut(key: Any, value: Any): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  23. def checkState(state: State): Unit
    Definition Classes
    StateMachine
  24. def childNamePriority: Byte
    Definition Classes
    Area
  25. val childStateMachines: LinkedHashSet[StateMachineAccessor]
    Definition Classes
    StateMachine
  26. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  27. def component: Component
    Definition Classes
    ContextUser
  28. var corruptedState: Bool
    Definition Classes
    StateMachine
  29. val crc5: Crc
  30. val data: Bits
  31. def disableAutoStart(): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  32. val endpoint: UInt
  33. var entryState: State
    Definition Classes
    StateMachine
  34. val enumDef: StateMachineEnum
    Definition Classes
    StateMachine
  35. def enumOf(state: State): SpinalEnumElement[enumDef.type]
    Definition Classes
    StateMachine
  36. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  38. def exit(): Unit
    Definition Classes
    StateMachine
  39. def exitFsm(): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  40. def forceGoto(state: State): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  41. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit
    Definition Classes
    Nameable
  42. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  43. def getDisplayName(): String
    Definition Classes
    Nameable
  44. def getEntry(): State
    Definition Classes
    StateMachineStateMachineAccessor
  45. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  46. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  47. def getName(default: String): String
    Definition Classes
    NameableByComponentNameable
  48. def getName(): String
    Definition Classes
    NameableByComponentNameable
  49. def getPartialName(): String
    Definition Classes
    Nameable
  50. def getPath(from: Component, to: Component): Seq[Component]
    Definition Classes
    NameableByComponent
  51. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  52. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  53. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  54. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  55. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  56. def goto(state: State): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  57. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  58. implicit val implicitFsm: StateMachine
    Definition Classes
    StateMachine
  59. def inCorruptedState(): Bool
    Definition Classes
    StateMachine
  60. var inGeneration: Boolean
    Definition Classes
    StateMachine
  61. def isActive(state: State): Bool

    Returns True when the state machine is in the given state

    Returns True when the state machine is in the given state

    Definition Classes
    StateMachineStateMachineAccessor
  62. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  63. def isEntering(state: State): Bool

    Returns True when the state machine is entering the given state

    Returns True when the state machine is entering the given state

    Definition Classes
    StateMachineStateMachineAccessor
  64. def isExiting(state: State): Bool

    Returns True when the state machine is exiting the given state

    Returns True when the state machine is exiting the given state

    Definition Classes
    StateMachineStateMachineAccessor
  65. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  66. final def isNamed: Boolean
    Definition Classes
    Nameable
  67. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  68. def isRunning: Bool
    Definition Classes
    StateMachine
  69. def isStarted: Bool
    Definition Classes
    StateMachine
  70. def isStateNextBoot(): Bool
    Definition Classes
    StateMachineStateMachineAccessor
  71. def isStateRegBoot(): Bool
    Definition Classes
    StateMachineStateMachineAccessor
  72. def isStopped: Bool
    Definition Classes
    StateMachine
  73. def isUnnamed: Boolean
    Definition Classes
    NameableByComponentNameable
  74. def killFsm(): Unit
    Definition Classes
    StateMachine
  75. def makeInstantEntry(): State

    Returns the boot state, active directly after reset.

    Returns the boot state, active directly after reset.

    This allows to have the state machine directly booting into a user state.

    Note that the onEntry of that state will only be called when it transitions from another state to this state and not during boot.

    Definition Classes
    StateMachine
    See also

    FSM library boot documentation

  76. val name: String
    Definition Classes
    Nameable
  77. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  78. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  79. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  80. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  81. val ok: Bool
  82. def onStart(body: ⇒ Unit): State
    Definition Classes
    StateMachine
  83. def overrideLocalName(name: String): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  84. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  85. var parentStateMachine: StateMachineAccessor
    Definition Classes
    StateMachine
  86. val pid: Bits
  87. def postBuild(body: ⇒ Unit): Unit

    Allows to do define statement(s) after the elaboration fo the state machine.

    Allows to do define statement(s) after the elaboration fo the state machine.

    This could be useful if access to stateReg is needed:

    Definition Classes
    StateMachine
    Example:
    1. //  After or inside the fsm's definition.
      fsm.postBuild {
        io.status := fsm.stateReg.asBits // io.status is the signal user want to assigned to.
      }
    See also

    FSM library doc about accessing state value

  88. val postBuildTasks: ArrayBuffer[() ⇒ Unit]
    Definition Classes
    StateMachine
  89. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  90. def reflectNames(): Unit
    Definition Classes
    Nameable
  91. def rework[T](body: ⇒ T): T
    Definition Classes
    Area
  92. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  93. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  94. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  95. def setCompositeName(nameable: Nameable, postfix: String): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  96. def setCompositeName(nameable: Nameable, namePriority: Byte): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  97. def setCompositeName(nameable: Nameable, weak: Boolean): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  98. def setCompositeName(nameable: Nameable): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  99. def setEncoding(spec: (State, BigInt)*): Unit

    Sets a custom encoding for the state machine states.

    Sets a custom encoding for the state machine states.

    spec

    A mapping of states to their encoded values

    Definition Classes
    StateMachine
    Example:
    1. val fsm = new StateMachine {
        val stateA = new State with EntryPoint
        val stateB = new State
        ...
        setEncoding((stateA -> 0x23), (stateB -> 0x22))
      }
  100. def setEncoding(encoding: SpinalEnumEncoding): Unit

    Sets the encoding for the state machine states.

    Sets the encoding for the state machine states.

    By default the FSM state vector will be encoded using the native encoding of the language/tools the RTL is generated for (Verilog or VHDL). This default can be overridden by using the setEncoding(...) method which either takes a SpinalEnumEncoding or varargs of type (State, BigInt) for a custom encoding.

    Definition Classes
    StateMachine
  101. def setEntry(state: State): Unit

    Defines a State as the entry point.

    Defines a State as the entry point.

    Definition Classes
    StateMachineStateMachineAccessor
    See also

    EntryPoint

  102. def setLambdaName(isNameBody: ⇒ Boolean)(nameGen: ⇒ String): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  103. def setName(name: String, namePriority: Byte): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  104. def setName(name: String, weak: Boolean): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  105. def setName(name: String): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  106. def setNameAsWeak(): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  107. def setParentStateMachine(parent: StateMachineAccessor): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  108. def setPartialName(name: String, namePriority: Byte, owner: Any): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  109. def setPartialName(name: String, namePriority: Byte): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  110. def setPartialName(name: String, weak: Boolean): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  111. def setPartialName(owner: Nameable, name: String, namePriority: Byte): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  112. def setPartialName(owner: Nameable, name: String, weak: Boolean): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  113. def setPartialName(name: String): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  114. def setPartialName(owner: Nameable, name: String): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  115. def setPartialName(owner: Nameable): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  116. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  117. def setScalaLocated(source: ScalaLocated): UsbTokenRxFsm.this.type
    Definition Classes
    ScalaLocated
  118. def setTransitionCondition(condition: Bool): Unit

    Set the condition for state transitions.

    Set the condition for state transitions.

    goto() will only have an effect, if condition is True

    Definition Classes
    StateMachine
  119. def setWeakName(name: String): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  120. def startFsm(): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  121. var stateBoot: State
    Definition Classes
    StateMachine
  122. var stateNext: fsm.StateMachineEnum.C
    Definition Classes
    StateMachine
  123. var stateNextCand: fsm.StateMachineEnum.C
    Definition Classes
    StateMachine
  124. var stateReg: fsm.StateMachineEnum.C
    Definition Classes
    StateMachine
  125. val stateToEnumElement: HashMap[State, SpinalEnumElement[enumDef.type]]
    Definition Classes
    StateMachine
  126. val states: ArrayBuffer[State]
    Definition Classes
    StateMachine
  127. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  128. def toString(): String
    Definition Classes
    AreaNameable → AnyRef → Any
  129. var transitionCond: Bool
    Definition Classes
    StateMachine
  130. def unsetName(): UsbTokenRxFsm.this.type
    Definition Classes
    Nameable
  131. def valCallback[T](ref: T, name: String): T
    Definition Classes
    ValCallbackRec → ValCallback
  132. def valCallbackOn(ref: Any, name: String, refs: Set[Any]): Unit
    Definition Classes
    ValCallbackRec
  133. def valCallbackRec(obj: Any, name: String): Unit
    Definition Classes
    AreaValCallbackRec
  134. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  135. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  136. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  137. val wantExit: Bool
    Definition Classes
    StateMachine
  138. val wantKill: Bool
    Definition Classes
    StateMachine
  139. val wantStart: Bool
    Definition Classes
    StateMachine

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from StateMachineSlave

Inherited from StateMachine

Inherited from StateMachineAccessor

Inherited from Area

Inherited from OverridedEqualsHashCode

Inherited from ValCallbackRec

Inherited from ValCallback

Inherited from NameableByComponent

Inherited from Nameable

Inherited from ContextUser

Inherited from ScalaLocated

Inherited from GlobalDataUser

Inherited from OwnableRef

Inherited from AnyRef

Inherited from Any

Ungrouped