Skip to content
#

c51

Here are 41 public repositories matching this topic...

一种有限状态机(Mealy)的精简实现,编码遵循 ANSI C,易于扩展和学习,非常适用于资源有限的场景。 其工作过程如下: 1、使用指定起始状态和最终状态初始化状态机,并设置状态机的当前状态为起始状态。状态机开始工作。 2、在相关事件发生时,把事件关联的变量值传递给状态机并执行状态转换活动。 3、如果状态机进入最终状态(使用当前状态是否等于最终状态来判断),则状态机停机;否则继续工作。

  • Updated Jun 18, 2022
  • C

Improve this page

Add a description, image, and links to the c51 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the c51 topic, visit your repo's landing page and select "manage topics."

Learn more