I have been reading the autosar documentation to better understand the autosar architecture.So, in the implementation of autosar classic, I have doubts regarding the construction of the code, as I am not able to understand the clear difference between Port Driver and Dio Driver.
See what I understand, in my implementation, I developed a function called Dio_Write(channelID, Level) and the function Port_Write(ChannelId, Level). So, should I place the port function inside the Dio function to be called or does the Dio function have another function other than calling the Port functions?
For example, I developed the initializations with Port_Initand to write a Channel I use the following
void Dio_WriteChannel (Dio_ChannelType ChannelId,Dio_LevelType Level){ Port_WriteChannel(ChannelId, Level);}void Port_WriteChannel (Dio_ChannelType ChannelId,Dio_LevelType Level){ //for example: Arduino registered PORTS set STD_HIGH in bit x}