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

Misc MODSERIAL functions

Misc MODSERIAL functions

Functions

char txGetLastChar (void)
 Function: txGetLastChar.
char rxGetLastChar (void)
 Function: rxGetLastChar.

Function Documentation

char rxGetLastChar ( void   ) [inherited]

Function: rxGetLastChar.

Return the last byte to pass through the RX interrupt handler.

Returns:
The byte

Definition at line 685 of file MODSERIAL.h.

char txGetLastChar ( void   ) [inherited]

Function: txGetLastChar.

Rteurn the last byte to pass through the TX interrupt handler.

Returns:
The byte

Definition at line 675 of file MODSERIAL.h.