C027_SupportTest_xively_locationで使用しているC027用ライブラリ

Fork of C027_Support by u-blox

下記のプログラム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.

Revision:
74:208e3e32d263
Parent:
70:0a87d256cd24
Child:
75:ce6e12067d0c
--- a/SerialPipe.cpp	Thu May 15 08:25:45 2014 +0000
+++ b/SerialPipe.cpp	Thu May 15 22:20:42 2014 +0000
@@ -2,10 +2,13 @@
 
 #include "SerialPipe.h"
 
-SerialPipe::SerialPipe(PinName tx, PinName rx, int rxSize, int txSize) 
-    : _SerialPipeBase(tx,rx), _pipeRx(rxSize), _pipeTx(txSize)
+SerialPipe::SerialPipe(PinName tx, PinName rx, int rxSize, int txSize) : 
+            _SerialPipeBase(tx,rx), 
+            _pipeRx( (rx!=NC) ? rxSize : 0), 
+            _pipeTx( (tx!=NC) ? txSize : 0)
 {
-    attach(this, &SerialPipe::rxIrqBuf, RxIrq);
+    if (rx!=NC)
+        attach(this, &SerialPipe::rxIrqBuf, RxIrq);
 }
 
 SerialPipe::~SerialPipe(void)