takashi yamanoue
/
XBee_API_ex3
Xbee API Test 3
> help h or help m <status-in-hex>,. ... Modem status l <cmd>,<val-in-hex>. ... exec <cmd> (AT) at this host. lset fid <val-in-hex>. ... set local frame id. default is 1. lset cmd <val-in-hex>. ... set local command. lset val <val-in-hex>. ... set local command value. q <cmd>,<val-in-hex>. ... set queue parameter value. r <cmd>,<val-in-hex>. ... exec <cmd> (AT)at remote host. rset a16 <val-in-hex>. ... set remote address high. rset a64 <val-in-hex>,<val-in-hex>. ... set remote address low. rset fid <val-in-hex>. ... set remote frame id. default is 1. > l D4,0x05 cmd=D4 val=0x05 apiId=88 object 100008c8:35 01 00 10 88 00 05 FE 04 01 00 FF l OK: > l D4,0x04 cmd=D4 val=0x04 apiId=88 object 100008c8:35 01 00 10 88 00 05 FE 04 01 00 FF l OK: >
CQueue.h
- Committer:
- takashiyamanoue
- Date:
- 2012-07-21
- Revision:
- 0:3edcfa3aba71
File content as of revision 0:3edcfa3aba71:
class CQueue{ private: char * buffer; int size; int head,tail; int number; int isInChars(char c, char *b); int lock; void getLock(); void releaseLock(); public: CQueue(int size); void init(int s); int isAvailable(); int putc(char x); int lookAHead1(); int getcNW(); int getc(); void clear(); int getSize(); int getCurrentPosition(); void setSize(int i); int getString(char *s,int max); int getStringBeforeBreak(char *s, int max, char *b); };