I guess I never actually made a post about this before, whoops.
Anyways, srldrvce is a library for interacting with USB serial devices on the CE, and for using the CE as a virtual serial device for a computer. It's been sorta working for a while, and has a branch on the toolchain repo.
Recently, I decided to rewrite it, as that seemed easier than diagnosing and fixing the issues with the old version, which is a bit of a mess.
I'm looking for feedback on the API, before I get too far into implementing it. This is the old API, and this is the current (WIP) API.
I'm considering removing the srl_Available function after Mateo voiced concerns about it potentially leading to bug-prone user code. srl_Read returns the number of bytes transferred, so it's not hard to rewrite code that uses srl_Available to use that instead.
If you guys have any feedback about srl_Available and the rest of the API, I'd love to hear it.
Anyways, srldrvce is a library for interacting with USB serial devices on the CE, and for using the CE as a virtual serial device for a computer. It's been sorta working for a while, and has a branch on the toolchain repo.
Recently, I decided to rewrite it, as that seemed easier than diagnosing and fixing the issues with the old version, which is a bit of a mess.
I'm looking for feedback on the API, before I get too far into implementing it. This is the old API, and this is the current (WIP) API.
I'm considering removing the srl_Available function after Mateo voiced concerns about it potentially leading to bug-prone user code. srl_Read returns the number of bytes transferred, so it's not hard to rewrite code that uses srl_Available to use that instead.
If you guys have any feedback about srl_Available and the rest of the API, I'd love to hear it.