How to use “enum” within Arduino IDE?

When I try to write a enum function it looks like arduino IDE does not recognise it.

Any suggestion on how this works?

This might help:

http://forum.arduino.cc/index.php?topic=88087.0

A function talking a enum parameter or returning one, may not compile without help.

Add a prototype for the function below the enum to prevent the IDE creating one above it (before its declared).
More info: http://arduino.land/FAQ/content/2/13/en/my-class_reference-won_t-work-in-the-sketch.html

am582:
When I try to write a enum function it looks like arduino IDE does not recognise it.

The Arduino IDE uses C++ as the default language. So your question is really "how do I write an enum function in C++"?

No code posted. No error message posted.

How to use this forum