Created
September 4, 2014 21:28
-
-
Save amclain/c66e0820efa6ca8d2b28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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