This program shows how to use the MODSERIAL library by Andy Kirkham to do canonical input processing. This allows you to enter and edit a command line (in the same way that you do in DOS or Linux) without tying up your main routine.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

MODSERIAL Internals

MODSERIAL Internals

Functions

int rxDiscardLastChar (void)
 Remove the last char placed into the rx buffer.

Variables

MODSERIAL_IRQ_INFO callbackInfo
 Used to pass information to callbacks.

Function Documentation

int rxDiscardLastChar ( void   ) [protected, inherited]

Remove the last char placed into the rx buffer.

This is an operation that can only be performed by an rxCallback function. To protect the buffers this function is defined protected so that a regular application cannot call it directly. It can only be called by the public version within a MODSERIAL_IRQ_INFO class.

Returns:
The byte removed from the buffer.

Variable Documentation

MODSERIAL_IRQ_INFO callbackInfo [protected, inherited]

Used to pass information to callbacks.

Definition at line 791 of file MODSERIAL.h.