It is a good idea to try to delve deeper into the writing of AUTOSAR-based modules and try to understand the drivers of AUTOSAR systems. So in this project, I started writing two AUTOSAR drivers, SPI
and Dio
.
void Dio_WriteChannel(
Dio_ChannelType ChannelId,
Dio_LevelType Level
)
Dio_LevelType Dio_FlipChannel(
Dio_ChannelType ChannelId
)
void Spi_Init (
const Spi_ConfigType* ConfigPtr
)
Std_ReturnType Spi_ReadIB(
Spi_ChannelType Channel,
Spi_DataBufferType *DataBufferPointer
)
Std_ReturnType Spi_SetAsyncMode(
Spi_AsyncModeType Mode
)