devicespi.cpp modified for LDP6803