I want a particular function to be executed and return a value to another SWC in AUTOSAR architecture. for example :
SWC-1
boolean operation(int a, int b)
{
if (a == b)
return true;
else
return false;
}
SWC - 2
int main()
{
int a = 2, b = 3;
boolean ret = false;
ret = operation(2,3);
if(ret == true)
{
//perform some activity
}
}
I want to a perform operation function call
in SWC-2
. The function is defined in SWC-1
. In AUTOSAR
architecture, how can i configure these functions? Can i do it as sender receiver
method or client- server
method ? Which is the best way to design in AUTOSAR
?