Giter VIP home page Giter VIP logo

feallee / fsmtiny Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 3.0 16 KB

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

C 100.00%
ansi-c arm c51 final-state-machine risc-v

fsmtiny's Introduction

摘要

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

更新日志

Version 1.0 2022/06/18 [email protected] 1、增加支持多状态机同时工作功能。 2、修改演示例程。

Version 1.0 2022/06/17 [email protected] 1、创建项目,实现核心功能,取名为 FsmTny,定版本为 1.0。 2、增加演示例程。

fsmtiny's People

Contributors

feallee avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.