Replacement for regular GPIO (DigitalIn, DigitalOut, DigitalInOut) classes which has superior speed.

Dependents:   Eavesdropper BitstreamGenerator SimpleDecimationFilter 11U68_MP3Player with TFTLCD ... more

Embed: (wiki syntax)

« Back to documentation index

FastInOut< pin > Class Template Reference

FastInOut< pin > Class Template Reference

Faster alternative compared to regular DigitalInOut. More...

#include <FastIO.h>

Inherited by FastIn< pin, pinmode >, and FastOut< pin, initial >.

Public Member Functions

 FastInOut ()
 Construct new FastInOut object.

Detailed Description

template<PinName pin>
class FastInOut< pin >

Faster alternative compared to regular DigitalInOut.

Except the constructor it is compatible with regular DigitalInOut. Code is based on Igor Skochinsky's code (http://mbed.org/users/igorsk/code/FastIO/)

Definition at line 32 of file FastIO.h.


Constructor & Destructor Documentation

FastInOut (  )

Construct new FastInOut object.

No initialization is done regarding input/output mode, FastIn/FastOut can be used if that is required

Parameters:
pinpin the FastOut object should be used for

Definition at line 47 of file FastIO.h.