It's SPI for inter-process communication. Inspired by EventPipe from x86matthew.
Why not?
Instead of electrical wires we're using Windows event objects. The master side
(see spi_master.hpp
) bit-bangs the SCLK and MOSI "lines"
to transmit data to the slave side. The slave side
(see spi_slave.hpp
) monitors the SCLK line
(using WaitForSingleObject
) to synchronize with the master, and bit-bangs the MISO
line.
See the demo for a usage example.