On Thu, May 11, 2023 at 8:01 PM Corey Minyard via pacsat-dev pacsat-dev@amsat.org wrote:
For Chris, mostly,
In my AX25 code, the two queues are named read_data and write_data, you can search for those values. The length, position, and size are right after it and described in the comment above.
There are also some functions named "sub_seq", "add_seq" and "seq_in_range" that handle the wraparound. In particular, seq_in_range is a little tricky. And I see that I should comment those better.
Just to be clear, those are used for both sequence number handling and for circular buffer handling. I've added some comments to document them a little better.
And if you want, I can look at splitting up my code into a library that has the state machine that could be re-used. It may be some overkill, though, it does all the extended sequencing, XID, and such that we don't need.
-corey
pacsat-dev mailing list -- pacsat-dev@amsat.org View archives of this mailing list at https://mailman.amsat.org/hyperkitty/list/pacsat-dev@amsat.org To unsubscribe send an email to pacsat-dev-leave@amsat.org Manage all of your AMSAT-NA mailing list preferences at https://mailman.amsat.org
participants (1)
-
Corey Minyard