hi, my issue is that I want create a method that returns by given Port and Port_numb a calculation of sensor data.
I want to call with something like
int a;
a=Data(PINA,0);
My question is how the signature of the method Data has to look like for Argument "PINA".
What must I replace the "
?" in the following code to get the prog running?
int Data( ???? P, int N)
{
int erg;
if(bit_is_set(P,N)){
//do something math stuff
}
return erg;
}