source code for a script that captures COPI/CIPO from the SPI analyzer and then crudely dissects it, implementing only a few commands from the SD card SPI protocol
https://files.mastodon.social/media_attachments/files/114/524/600/004/881/399/original/9ed0dbdad6681e5d.png