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

FastIn< pin, pinmode > Class Template Reference

FastIn< pin, pinmode > Class Template Reference

Faster alternative compared to regular DigitalIn. More...

#include <FastIO.h>

Inherits FastInOut< pin >.

Public Member Functions

 FastIn ()
 Construct new FastIn object.

Detailed Description

template<PinName pin, PinMode pinmode = PullDefault>
class FastIn< pin, pinmode >

Faster alternative compared to regular DigitalIn.

Except the constructor it is compatible with regular DigitalIn. Aditionally all functions from DigitalInOut are also available (only initialization is different) Code is based on Igor Skochinsky's code (http://mbed.org/users/igorsk/code/FastIO/)

Definition at line 136 of file FastIO.h.


Constructor & Destructor Documentation

FastIn (  )

Construct new FastIn object.

 FastIn<LED1> led1;
Parameters:
pinpin the FastIn object should be used for
pinmode(optional) initial mode of the pin after construction: default is PullDefault

Definition at line 149 of file FastIO.h.