C027_SupportTest_xively_locationで使用しているC027用ライブラリ
Fork of C027_Support by
下記のプログラムC027_SupportTest_xively_locationで使用しているC027用ライブラリです。
Import programC027_SupportTest_xively_location
インターフェース2014年10月号のu-blox C027で3G通信する記事で使用したプログラム。 CQ publishing Interface 2014.10 issue, C027 3G test program.
オリジナルのライブラリは下記を参照してください。
Import libraryC027_Support
support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.
Diff: Pipe.h
- Revision:
- 13:e2446fcdc246
- Parent:
- 9:e7a5959ffae1
- Child:
- 21:c4d64830bf02
--- a/Pipe.h Fri Nov 15 13:33:39 2013 +0000 +++ b/Pipe.h Tue Nov 19 08:34:51 2013 +0000 @@ -20,7 +20,7 @@ _b = b ? b : _a; _s = n; } - virtual ~Pipe() + virtual ~Pipe(void) { if (_a) delete [] _a; @@ -37,7 +37,7 @@ s += _s; return s - 1; } - void putc(T c) + T putc(T c) { int i = _w; int j = i; @@ -45,7 +45,8 @@ while (i == _r) // = !writeable() /*wait for space*/; _b[j] = c; - _w = i; + _w = i; + return c; } int put(const T* p, int n, bool t = false) {