I have an enum declared as:
typedef enum
{
NORMAL = 0,
EXTENDED
} CyclicPrefixType_t;
CyclicPrefixType_t cpType;
I need a function that takes this as an argument:
fun(CyclicPrefixType_t cpType);
The function declaration is:
void fun(CyclicPrefixType_t cpType);
How can I fix it? I don't think it is correct.