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.
Diff: Pipe.h
- Revision:
- 41:b94a1f410e71
- Parent:
- 40:295099ff5338
- Child:
- 74:208e3e32d263
--- a/Pipe.h Fri Apr 11 19:39:08 2014 +0000 +++ b/Pipe.h Fri Apr 11 19:41:05 2014 +0000 @@ -24,7 +24,7 @@ /** Destructor frees a allocated buffer. */ - virtual ~Pipe(void) + ~Pipe(void) { if (_a) delete [] _a; @@ -129,7 +129,7 @@ /** Get the number of values available in the buffer return the number of element available */ - virtual int size(void) + int size(void) { int s = _w - _r; if (s < 0) @@ -156,7 +156,7 @@ \param t set to true if blocking, false otherwise \return number elements extracted */ - virtual int get(T* p, int n, bool t = false) + int get(T* p, int n, bool t = false) { int c = n; while (c) @@ -191,7 +191,7 @@ \param ix the index to set. \return the number of elements starting at this position */ - virtual int set(int ix) + int set(int ix) { int sz = size(); ix = (ix > sz) ? sz : ix; @@ -202,7 +202,7 @@ /** get the next element from parsing position and increment parsing index \return the extracted element. */ - virtual T next(void) + T next(void) { int o = _o; T t = _b[o]; @@ -212,7 +212,7 @@ /** commit the index, mrk the current parsing index as consumed data. */ - virtual void done(void) + void done(void) { _r = _o; }