Creating a Transmit Queue
TurnipTruck
Posts: 1,485
Greetings,
I need to queue my commands to a slow serial device. I knew that sooner or later I would run into this.
Are there any generic methods for this? All of my commands end with a CR, so picking them from an outgoing buffer should be simple.
Thank you.
I need to queue my commands to a slow serial device. I knew that sooner or later I would run into this.
Are there any generic methods for this? All of my commands end with a CR, so picking them from an outgoing buffer should be simple.
Thank you.
0
Comments
The logic should be there, but it's late and I'm programming off the top of my head. Need brain food (Taco Bell!!!)
I know its an old post, but I like this nice simple and elegant way to handle a queue.
thanks for sharing.
Nothing wrong with your example. Just a include file we use here at AMX full of helper functions. I thought it would be helpful...
BTW - the above example that I had - certainly not what I use now.