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

FastOut< pin, initial > Class Template Reference

FastOut< pin, initial > Class Template Reference

Faster alternative compared to regular DigitalOut. More...

#include <FastIO.h>

Inherits FastInOut< pin >.

Public Member Functions

 FastOut ()
 Construct new FastOut object.

Detailed Description

template<PinName pin, int initial = 0>
class FastOut< pin, initial >

Faster alternative compared to regular DigitalOut.

Except the constructor it is compatible with regular DigitalOut. 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 99 of file FastIO.h.


Constructor & Destructor Documentation

FastOut (  )

Construct new FastOut object.

Parameters:
pinpin the FastOut object should be used for
initial(optional) initial state of the pin after construction: default is 0 (low)

Definition at line 112 of file FastIO.h.