From: Piotr S on
Hi,

Can anyone tell me how to create an S-function which would accept enumerated data type as one of its inputs?
If you could tell me how to do this from 'Legacy code tool' that would just be perfect.

Here's an example to make the question clearer:
______________________________________
*** MyCFunction.h ***

typedef enum {
Value1 = 0,
Value2
} MyEnumeration;

float MyFunction(MyEnumeration myEnum, float myFloat);
_______________________________________

_______________________________________
*** MyCFunction.h ***

#include "MyCFunction.h"

float MyFunction(MyEnumeration myEnum, float myFloat)
{
// some functionality here
return myFloat;
}
________________________________________