C027_SupportTest_xively_locationで使用しているC027用ライブラリ

Fork of C027_Support by u-blox

Embed: (wiki syntax)

« Back to documentation index

MDMRtos< T > Class Template Reference

MDMRtos< T > Class Template Reference

Use this template to override the lock and wait functions of the modem driver in a Rtos system. More...

#include <MDM.h>

Protected Member Functions

virtual void wait_ms (int ms)
 we assume that the modem runs in a thread so we yield when waiting
virtual void lock (void)
 lock a mutex when accessing the modem
virtual void unlock (void)
 unlock the modem when done accessing it

Detailed Description

template<class T>
class MDMRtos< T >

Use this template to override the lock and wait functions of the modem driver in a Rtos system.

For example declare it the modem object as MDMRtos<MDMSerial> instead of MDMSerial.

Definition at line 645 of file MDM.h.


Member Function Documentation

virtual void lock ( void   ) [protected, virtual]

lock a mutex when accessing the modem

Definition at line 654 of file MDM.h.

virtual void unlock ( void   ) [protected, virtual]

unlock the modem when done accessing it

Definition at line 656 of file MDM.h.

virtual void wait_ms ( int  ms ) [protected, virtual]

we assume that the modem runs in a thread so we yield when waiting

Definition at line 649 of file MDM.h.