/* attempts to write up to len bytes to the SPI channel  */
int spi_Write(Fd_t fd, unsigned char *pBuff, int len)
/* attempts to write up to len bytes to the SPI channel  */
int spi_Write(Fd_t fd, unsigned char *pBuff, int len)
{
    if (fd != 1 || g_SpiFd != 1) {
        return -1;
    }
    return spi_Write_CPU(pBuff,len);
}