mbikovitsky / spi

Serial Process Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serial Process Interface

It's SPI for inter-process communication. Inspired by EventPipe from x86matthew.

Recording of a master and slave programs sending data back and forth

Why?

Why not?

How?

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.

About

Serial Process Interface

License:MIT License


Languages

Language:C++ 100.0%