Could someone could provides us a simple Serial Port
real-time program that transfer a bunch of bytes back and forth,
and that automatically callback a C function
void (*fn)( char *buf, size_t sz ),
once it gets some data.
Basically, I would really like to have something like:
Could someone could provides us a simple Serial Port
real-time program that transfer a bunch of bytes back and forth,
and that automatically callback a C function
void (*fn)( char *buf, size_t sz ),
once it gets some data.
Basically, I would really like to have something like: