How do I set up an object class in code composer studio such as
class Battery
{
public:
int batvolt;
int batpcnt;
void getbatpcnt(void);
};
void Battery::getbatpcnt()
{
batvolt=scanadc(channel);
batpcnt=batvolt*0.5;
}
CCS does not recognize "class". It recognize "struct" but not class. Am I missing some include file? I can not find declaration for keyword "class".
Thanks
dkcheung@arrisnet.com