Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas

Embed: (wiki syntax)

« Back to documentation index

Terminal Class Reference

Terminal Class Reference

This class provides terminal style access to a serial interface on the processor. More...

#include <Terminal.h>

Public Member Functions

 Terminal (MTSBufferedIO *io)
 This constructs a Terminal object that connects the standard mbed USB serial inteface to the passed in serial interface.
 ~Terminal ()
 Destructs an Terminal object and frees all created resources.
void start ()
 This starts the terminal functionality and is a blocking call until you send the exit sequence "emtech" through you terminal program, at which point this method returns.

Detailed Description

This class provides terminal style access to a serial interface on the processor.

This is done by seamlessly "connecting" the data traffic between the mbed debug interface, usually accessed through the USB port, and the serial interface in question. Once started you can also exit this mode by sending the appropraite exit sequence through your terminal program. This sequence is: emtech

Definition at line 19 of file Terminal.h.


Constructor & Destructor Documentation

Terminal ( MTSBufferedIO *  io )

This constructs a Terminal object that connects the standard mbed USB serial inteface to the passed in serial interface.

In odrder for this class to function you must call the start method.

Parameters:
iothe serial interface to connect to the console as an MTSBufferedIO object.

Definition at line 7 of file Terminal.cpp.

~Terminal (  )

Destructs an Terminal object and frees all created resources.

Definition at line 12 of file Terminal.cpp.


Member Function Documentation

void start (  )

This starts the terminal functionality and is a blocking call until you send the exit sequence "emtech" through you terminal program, at which point this method returns.

Definition at line 17 of file Terminal.cpp.