There are at least 3 different ways this could be done.
Drivers for SPI peripheral may have been rewritten a couple of times since I was looking at it,
so I have no idea what is there now.
Use MSSEN, This more or less implies use of Framed mode, with one synch pulse on the _SS line for each word transferred, either 32 bit word, 16 bit word or 8 bit.
When a SPI driver object is created and configured,
the driver might offer options to define which Port and Pin is to be used for Chip Select signal,
together with possible options for how it is to be used.
SPI driver might offer hooks for Callback function pointers,
such that a function that you provide, is called by the driver when transfer is ready to be started,
have ended, or something interesting happen.
Such callback functions should be coded, and reside in your code, but will be executed by the driver,
or by the driver's ISR code and context.
Write and use your own driver, independent of what Harmony might offer.
post edited by Mysil - 2019/12/17 08:01:39