Simple and tiny framework of a synchronous, non-hierarchical, finite state maschine to manage system states
-
Updated
Feb 16, 2025 - C
A finite-state machine (FSM), finite-state automaton (FSA), or simply state machine is a mathematical model of computation and an abstract machine that can be in exactly one of a finite number of states at any given time.
The FSM can change from one state to another in response to some inputs; the change from one state to another is called a transition.
An FSM is defined by a list of its states, its initial state, and the inputs that trigger each transition.
In computer science, FSM are widely used in modeling of application behavior (control theory), design of hardware digital systems, software engineering, compilers, network protocols, and computational linguistics.
Simple and tiny framework of a synchronous, non-hierarchical, finite state maschine to manage system states
An oscilloscope capturing data from Ethernet and graphing it alongside with Fourier Transform
This is an implementation of c's famous printf function. It uses system calls, pointer, functions, structs, loops, conditions, finite state machines and so much more. The purpose is to have a better understanding of the printf function and appreciate the complexities of the builtin function.
a framework for event trigger finite state machine
Finite state machine example
Application skeleton for services written in C
This program implements a traffic light state machine on an RP2040 microcontroller using hardware timers. The traffic light consist of a RED, YELLOW and GREEN LEDs for the car lights and a RED and GREEN LEDs for the pedestrian ligths.
lightweight finite state machine
The C code that obtains an NFA machine from a regular expression using the Thompson construction algorithm has been shared.
FSM vending machine, it dispenses products based on user input and provides change based on the money introduced.
Battleship alike two-player terminal game
Minimalistic implementation of Active Object pattern + FSM for embedded systems.