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.

Dependents:   HTTPClient_Cellular_HelloWorld Cellular_HelloMQTT MbedSmartRestMain Car_Bon_car_module ... more

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 852 of file MDM.h.


Member Function Documentation

virtual void lock ( void   ) [protected, virtual]

lock a mutex when accessing the modem

Definition at line 861 of file MDM.h.

virtual void unlock ( void   ) [protected, virtual]

unlock the modem when done accessing it

Definition at line 863 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 856 of file MDM.h.