Add a bunch of APNs

Fork of C027_Support by Xinlei Cao

Committer:
mazgch
Date:
Mon Mar 24 07:38:05 2014 +0000
Revision:
19:2b5d097ca15d
Parent:
18:e5697801df29
Child:
35:9275215a3a5b
prepare for native C027 platform support; add api to get lat/lon; better separation of mdm libarary from serial

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 19:2b5d097ca15d 12 #if DEVICE_SERIAL_FC
mazgch 17:296d94a006b4 13 SerialPipe(PinName tx, PinName rx, PinName rts, PinName cts, int rxSize = 128, int txSize = 128);
mazgch 19:2b5d097ca15d 14 #endif
mazgch 9:e7a5959ffae1 15 virtual ~SerialPipe(void);
mazgch 9:e7a5959ffae1 16 // tx channel
mazgch 13:e2446fcdc246 17 int writeable(void);
mazgch 13:e2446fcdc246 18 int putc(int c); // blocking
mazgch 15:5eda64e5b9d1 19 int put(const void* buffer, int length, bool blocking);
mazgch 9:e7a5959ffae1 20 // rx channel
mazgch 9:e7a5959ffae1 21 int readable(void);
mazgch 13:e2446fcdc246 22 int getc(void); // blocking
mazgch 15:5eda64e5b9d1 23 int get(void* buffer, int length, bool blocking);
mazgch 13:e2446fcdc246 24 protected:
mazgch 9:e7a5959ffae1 25 void rxIrqBuf(void);
mazgch 9:e7a5959ffae1 26 void txIrqBuf(void);
mazgch 13:e2446fcdc246 27 void txStart(void);
mazgch 9:e7a5959ffae1 28 Pipe<char> _pipeRx;
mazgch 9:e7a5959ffae1 29 Pipe<char> _pipeTx;
mazgch 9:e7a5959ffae1 30 };