❔ Deserialize serial data to struct (port from C)
Hello,
I'm not sure how you do this in C#:
I have this code I'm porting to C#. It's basically a stream from a serial port that needs to be de-serialized into a struct.
This is the C code for the struct:
You can explore the code better if you want on this header file and this C file. This is a bit of an on-going work that's a bit rough. Since I want to move to C# and all the code is doing is writing and reading to serial, I thought I could just do away with the base C(++) library.
What tools in C# do you use to define and de-serialize a
Thanks
I'm not sure how you do this in C#:
I have this code I'm porting to C#. It's basically a stream from a serial port that needs to be de-serialized into a struct.
This is the C code for the struct:
You can explore the code better if you want on this header file and this C file. This is a bit of an on-going work that's a bit rough. Since I want to move to C# and all the code is doing is writing and reading to serial, I thought I could just do away with the base C(++) library.
What tools in C# do you use to define and de-serialize a
struct like this?Thanks