SPI slave driver

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I'm trying to write SPI slave driver for SAMD51 controller .In ASF4 API reference manual it is mentioned that,

"Two driver variants are available for the SPI Slave: Synchronous and Asynchronous.
• SPI Slave Synchronous Driver: The driver supports polling for hardware changes. The functionality is synchronous to the main clock of the MCU.
• SPI Slave Asynchronous Driver: The driver supports a callback handler for the IRQ caused by
hardware state changes. The functionality is asynchronous to the main clock of the MCU."

 

 

By knowing  the functionality ,i couldn't conclude  which type of (asynchronous(or)synchronous) slave driver i have to choose.

could  anyone help me on this?

Karthi

Last Edited: Wed. Nov 21, 2018 - 12:39 PM