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:
17:296d94a006b4
Parent:
16:4a7ba1887e81
Child:
18:e5697801df29
--- a/SerialPipe.cpp	Fri Dec 06 09:28:43 2013 +0000
+++ b/SerialPipe.cpp	Fri Jan 31 09:49:51 2014 +0000
@@ -9,6 +9,16 @@
     attach(this, &SerialPipe::txIrqBuf, TxIrq);
 }
 
+SerialPipe::SerialPipe(PinName tx, PinName rx, PinName rts, PinName cts, 
+    int rxSize, int txSize) 
+    : _SerialPipeBase(tx,rx), _pipeRx(rxSize), _pipeTx(txSize)
+{
+    attach(this, &SerialPipe::rxIrqBuf, RxIrq);
+    attach(this, &SerialPipe::txIrqBuf, TxIrq);
+    
+    set_flow_control(RTSCTS, rts, cts);
+}
+
 SerialPipe::~SerialPipe(void)
 {
     attach(NULL, RxIrq);
@@ -94,10 +104,6 @@
 
 // -----------------------------------------------------------------------
 
-SerialPipeEx::SerialPipeEx(PinName tx, PinName rx, int rxSize, int txSize) 
-    : SerialPipe(tx,rx,rxSize,txSize)
-{}
-
 int SerialPipeEx::getLine(char* buffer, int length)
 {
     return getLine(buffer, length, &_pipeRx);