Applications of Unions in Microcontroller Programming

Applications of Unions in Microcontroller Programming

01Union In the previous article “Combining Enumerations and Structures”, it was mentioned that a structure is like a packaging that encapsulates variables with common characteristics. A structure is a composite or complex type that can contain multiple members of different types. In C language, there is another syntax that is very similar to structures, called … Read more

C# State Machine: A Tool for Parsing Binary Protocols

C# State Machine: A Tool for Parsing Binary Protocols

C# State Machine: A Tool for Parsing Binary Protocols Hello everyone! Today I want to share a very useful technique – using a state machine to parse binary protocols. In our work, we often need to handle various communication protocols, such as serial communication and network protocols. Using a state machine to tackle these problems … Read more