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.

Committer:
mazgch
Date:
Fri Mar 14 13:07:48 2014 +0000
Revision:
18:e5697801df29
Parent:
17:296d94a006b4
Child:
19:2b5d097ca15d
extend Api for GPS and GNSS

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mazgch 0:cb2d45baaca3 1 #pragma once
mazgch 0:cb2d45baaca3 2
mazgch 2:b6012cd91657 3 #include "mbed.h"
mazgch 0:cb2d45baaca3 4 #include "Pipe.h"
mazgch 0:cb2d45baaca3 5
mazgch 15:5eda64e5b9d1 6 #define _SerialPipeBase SerialBase
mazgch 15:5eda64e5b9d1 7
mazgch 15:5eda64e5b9d1 8 class SerialPipe : public _SerialPipeBase
mazgch 0:cb2d45baaca3 9 {
mazgch 9:e7a5959ffae1 10 public:
mazgch 15:5eda64e5b9d1 11 SerialPipe(PinName tx, PinName rx, int rxSize = 128, int txSize = 128);
mazgch 17:296d94a006b4 12 SerialPipe(PinName tx, PinName rx, PinName rts, PinName cts, int rxSize = 128, int txSize = 128);
mazgch 9:e7a5959ffae1 13 virtual ~SerialPipe(void);
mazgch 9:e7a5959ffae1 14 // tx channel
mazgch 13:e2446fcdc246 15 int writeable(void);
mazgch 13:e2446fcdc246 16 int putc(int c); // blocking
mazgch 15:5eda64e5b9d1 17 int put(const void* buffer, int length, bool blocking);
mazgch 9:e7a5959ffae1 18 // rx channel
mazgch 9:e7a5959ffae1 19 int readable(void);
mazgch 13:e2446fcdc246 20 int getc(void); // blocking
mazgch 15:5eda64e5b9d1 21 int get(void* buffer, int length, bool blocking);
mazgch 13:e2446fcdc246 22 protected:
mazgch 9:e7a5959ffae1 23 void rxIrqBuf(void);
mazgch 9:e7a5959ffae1 24 void txIrqBuf(void);
mazgch 13:e2446fcdc246 25 void txStart(void);
mazgch 9:e7a5959ffae1 26 Pipe<char> _pipeRx;
mazgch 9:e7a5959ffae1 27 Pipe<char> _pipeTx;
mazgch 9:e7a5959ffae1 28 };