Packages

c

spinal.lib.com.usb

UsbDataRxFsm

class UsbDataRxFsm extends StateMachine

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

Instance Constructors

  1. new UsbDataRxFsm(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 DATA: State
  5. val IDLE: State
  6. val PID: State
  7. val _context: Capture
    Definition Classes
    Area
  8. def add(stateMachine: StateMachineAccessor): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  9. def add(state: State): Int
    Definition Classes
    StateMachineStateMachineAccessor
  10. def always(doThat: ⇒ Unit): UsbDataRxFsm.this.type
    Definition Classes
    StateMachine
  11. val alwaysTasks: ArrayBuffer[() ⇒ Unit]
    Definition Classes
    StateMachine
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. var autoStart: Boolean
    Definition Classes
    StateMachine
  14. def build(): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  15. var builded: Boolean
    Definition Classes
    StateMachine
  16. val cache: HashMap[Any, Any]
    Definition Classes
    StateMachine
  17. def cacheGet(key: Any): Option[Any]
    Definition Classes
    StateMachineStateMachineAccessor
  18. def cacheGetOrElseUpdate(key: Any, op: ⇒ Any): Any
    Definition Classes
    StateMachineAccessor
  19. def cachePut(key: Any, value: Any): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  20. def checkState(state: State): Unit
    Definition Classes
    StateMachine
  21. def childNamePriority: Byte
    Definition Classes
    Area
  22. val childStateMachines: LinkedHashSet[StateMachineAccessor]
    Definition Classes
    StateMachine
  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  24. def component: Component
    Definition Classes
    ContextUser
  25. var corruptedState: Bool
    Definition Classes
    StateMachine
  26. val crc16: Crc
  27. val crcError: Bool
  28. val data: Flow[Bits]
  29. def disableAutoStart(): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  30. var entryState: State
    Definition Classes
    StateMachine
  31. val enumDef: StateMachineEnum
    Definition Classes
    StateMachine
  32. def enumOf(state: State): SpinalEnumElement[enumDef.type]
    Definition Classes
    StateMachine
  33. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  35. def exit(): Unit
    Definition Classes
    StateMachine
  36. def exitFsm(): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  37. def forceGoto(state: State): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  38. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit
    Definition Classes
    Nameable
  39. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  40. def getDisplayName(): String
    Definition Classes
    Nameable
  41. def getEntry(): State
    Definition Classes
    StateMachineStateMachineAccessor
  42. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  43. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  44. def getName(default: String): String
    Definition Classes
    NameableByComponentNameable
  45. def getName(): String
    Definition Classes
    NameableByComponentNameable
  46. def getPartialName(): String
    Definition Classes
    Nameable
  47. def getPath(from: Component, to: Component): Seq[Component]
    Definition Classes
    NameableByComponent
  48. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  49. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  50. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  51. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  52. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  53. def goto(state: State): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  54. val hasError: Bool
  55. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  56. val history: Vec[Bits]
  57. implicit val implicitFsm: StateMachine
    Definition Classes
    StateMachine
  58. def inCorruptedState(): Bool
    Definition Classes
    StateMachine
  59. var inGeneration: Boolean
    Definition Classes
    StateMachine
  60. 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
  61. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  62. 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
  63. 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
  64. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  65. final def isNamed: Boolean
    Definition Classes
    Nameable
  66. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  67. def isRunning: Bool
    Definition Classes
    StateMachine
  68. def isStarted: Bool
    Definition Classes
    StateMachine
  69. def isStateNextBoot(): Bool
    Definition Classes
    StateMachineStateMachineAccessor
  70. def isStateRegBoot(): Bool
    Definition Classes
    StateMachineStateMachineAccessor
  71. def isStopped: Bool
    Definition Classes
    StateMachine
  72. def isUnnamed: Boolean
    Definition Classes
    NameableByComponentNameable
  73. def killFsm(): Unit
    Definition Classes
    StateMachine
  74. 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

  75. val name: String
    Definition Classes
    Nameable
  76. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  77. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  78. val notResponding: Bool
  79. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  80. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  81. def onStart(body: ⇒ Unit): State
    Definition Classes
    StateMachine
  82. def overrideLocalName(name: String): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  83. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  84. var parentStateMachine: StateMachineAccessor
    Definition Classes
    StateMachine
  85. val pid: Bits
  86. val pidError: Bool
  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): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  94. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  95. def setCompositeName(nameable: Nameable, postfix: String): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  96. def setCompositeName(nameable: Nameable, namePriority: Byte): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  97. def setCompositeName(nameable: Nameable, weak: Boolean): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  98. def setCompositeName(nameable: Nameable): UsbDataRxFsm.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): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  103. def setName(name: String, namePriority: Byte): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  104. def setName(name: String, weak: Boolean): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  105. def setName(name: String): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  106. def setNameAsWeak(): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  107. def setParentStateMachine(parent: StateMachineAccessor): Unit
    Definition Classes
    StateMachineStateMachineAccessor
  108. def setPartialName(name: String, namePriority: Byte, owner: Any): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  109. def setPartialName(name: String, namePriority: Byte): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  110. def setPartialName(name: String, weak: Boolean): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  111. def setPartialName(owner: Nameable, name: String, namePriority: Byte): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  112. def setPartialName(owner: Nameable, name: String, weak: Boolean): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  113. def setPartialName(name: String): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  114. def setPartialName(owner: Nameable, name: String): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  115. def setPartialName(owner: Nameable): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  116. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  117. def setScalaLocated(source: ScalaLocated): UsbDataRxFsm.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): UsbDataRxFsm.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. val stuffingError: Bool
  128. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  129. def toString(): String
    Definition Classes
    AreaNameable → AnyRef → Any
  130. var transitionCond: Bool
    Definition Classes
    StateMachine
  131. def unsetName(): UsbDataRxFsm.this.type
    Definition Classes
    Nameable
  132. def valCallback[T](ref: T, name: String): T
    Definition Classes
    ValCallbackRec → ValCallback
  133. def valCallbackOn(ref: Any, name: String, refs: Set[Any]): Unit
    Definition Classes
    ValCallbackRec
  134. def valCallbackRec(obj: Any, name: String): Unit
    Definition Classes
    AreaValCallbackRec
  135. val valids: Bits
  136. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  137. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  138. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  139. val wantExit: Bool
    Definition Classes
    StateMachine
  140. val wantKill: Bool
    Definition Classes
    StateMachine
  141. 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 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