Hi,
I wrote an external to read in values from a MCP3208 A/D converter IC via SPI on the GPIOS of a Raspberry Pi
https://github.com/HerrSteiner/wiringPD
its based on PD-Wiring Pi by Jaime Oliver La Rosa and research on diverse forum threads.
Cheers,
Malte