You can have the SCB in unconfigured mode and configure it real time.
If you are wanting more than two devices connected together, why not just have the PI be the master and both the PSoC and the LM be slaves?
That being said, as HIMA said above, you can leave the component in unconfigured mode and configure it between slave and master real-time. (You might not even need it to start in unconfigured mode, but might as well)
Thank you for your reply e.pratt_1639216.
I want to make communication between PSOC and LM but LM can only be slave.
AS said you and HIMA "leave the component in unconfigured mode and configure it between slave and master real-time."
Are there any limitation in using them?
They take time to switch between, and code space (Flash,RAM, etc). So, the limitation is mostly the overhead for switching between the two setups.
There is of course the issue of having multiple masters driving the same clock/data/lines.
As long as you don't have the PI and PSOC both driving voltages at the same time, then there shouldn't be any issues for switching between slave and master on the SCB configuration.
Thank you e.pratt_1639216 for your reply.
But just to make sure, is it possible to use the PSOC SPI master bidirectional (one at a time) as a slave for Pi and master for LM74?
It should be runtime configureable to switch it between master and slave on the PSoC SPI component (Tldr Yes.).
I haven't done it with the SPI specifically, but I have done something similar with the BLE component.