I appreciate the currently recommended way of using SPI is via SPI transactions which can automatically handle different modes and clock speeds for a given SPI CS/SS pin, however I have a forthcoming project I am working on which I need to multiplex SPI CS pins.
I don't currently have the hardware, hence not started on the software support yet but I am starting to put some thought into how I am going to implement this.
Problems envisaged so far include being able to identify currently selected mode and clock speed such that when my functions finish, I can return those settings to how they were set before my interaction with the SPI bus so that any other devices on the SPI bus which may not use SPI transactions would not be affected.
My project will be DUE specific if this makes any difference.
Thanks.