Closed MangoIV closed 2 years ago
The function is called (by the harware via an interruption) each time a character is ready to be read.
We get this character in the if let.
We push the character at the end of the buffer, removing the first character to make place.
If the last character is \n then our command is complete. We parse it and send the deserialized event to the layout handler.
For the serialization of an event see the ser function. For the deserialization see the de function.
Thanks for your quick answer and sorry if the question is stupid. Now that I know what the functions are doing it's much easier on the eyes.. :D
Hi! I've had a hard time understanding your code for the communication between the halves. Would you give me an insight on how it's happening? I'm especially curious about this function:
What exactly is written to and read from the Buffer? Thanks in advance :)