Skip to content

Instantly share code, notes, and snippets.

@amclain
Created September 4, 2014 21:28
Show Gist options
  • Save amclain/c66e0820efa6ca8d2b28 to your computer and use it in GitHub Desktop.
Save amclain/c66e0820efa6ca8d2b28 to your computer and use it in GitHub Desktop.
structure _Queue // generic queue structure - must init in define_start
{
char sCommand[200][100]
integer nHead
integer nTail
integer nBusy
integer nBusyTime // how long queue locks out before next command
integer nHeadMax // maximum size of queue (can't be more than first index of .sCommand)
integer nQueReady // true if response from device is an ack otherwise timeout the Que
integer nDebug // you KNOW what this does...
integer nDebugHex // if true, debug will send ascii representation of hex
char sDescription[20] // used for debug messages
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment