Support for LISA-N101
Fork of C027_Support by
This is a variant of the C027 driver code for the C027N version, i.e. the one with the Neul/Huawei/u-blox Cellular Internet of Things module on board. The AT command interface for this module is entirely different to the AT interface for the other u-blox modules, hence this fork of the driver. Work is underway to rearchitect the original C027 driver so that a merge can be done.
SerialPipe.h
- Committer:
- mazgch
- Date:
- 2014-04-10
- Revision:
- 35:9275215a3a5b
- Parent:
- 19:2b5d097ca15d
- Child:
- 42:6786401ba18c
File content as of revision 35:9275215a3a5b:
#pragma once #include "mbed.h" #include "Pipe.h" #define _SerialPipeBase SerialBase class SerialPipe : public _SerialPipeBase { public: SerialPipe(PinName tx, PinName rx, int rxSize = 128, int txSize = 128); virtual ~SerialPipe(void); // tx channel int writeable(void); int putc(int c); // blocking int put(const void* buffer, int length, bool blocking); // rx channel int readable(void); int getc(void); // blocking int get(void* buffer, int length, bool blocking); protected: void rxIrqBuf(void); void txIrqBuf(void); void txStart(void); Pipe<char> _pipeRx; Pipe<char> _pipeTx; };