Is it possible for GIO in asynchronous mode to have a timeout, if so how?
For example, if I have a Uart that I want to function asynchronously so I use the below code. However, I also want a timeout; say I use a huge buffer but I get several smaller buffers that I would like to start parsing. Is that possible?
#define BUFSIZE (1024)
static struct GIO_AppCallback gCB;
Ptr buf = (Ptr)MEM_calloc(0, BUFSIZE, BUFALIGN);
size_t len = BUFSIZE;
gCB.fxn = (GIO_TappCallback)UartRxCB;
gCB.arg = NULL;
GIO_submit(uartInHandle, IOM_READ, (Ptr)buf, &len, &gCB);
Cheers!