Hello
Here am using SPI PAL driver with PE configuration, am i need to non blocking function call transferring data over SPI. but would like to get notified when SPI transaction is done.
please help me on how to achieve it.
Thanks in advance !.
Solved! Go to Solution.
Hello @Saitej,
When you set the SPI to call a callback is possible to achieve this. If you set a name to the callback:
And in your main code you will need to set a function with the following syntax:
SPI1_Callback(void *driverState, spi_event_t event, void *userData);
In the event parameter, the SPI_EVENT_END_TRANSFER event is called if the transfer is finished.
Let me know if this helps you.
Best Regards,
Alexis Andalon
Hello @Saitej,
When you set the SPI to call a callback is possible to achieve this. If you set a name to the callback:
And in your main code you will need to set a function with the following syntax:
SPI1_Callback(void *driverState, spi_event_t event, void *userData);
In the event parameter, the SPI_EVENT_END_TRANSFER event is called if the transfer is finished.
Let me know if this helps you.
Best Regards,
Alexis Andalon