AnsweredAssumed Answered

SPI0 fail with Framesize = 16

Question asked by Sandro Bastos on Dec 9, 2013
Latest reply on Dec 12, 2013 by Sandro Bastos

Hi,

 

I'm trying to set my SPI0 to 16 bits through:

 

// Framesize = 16
param = 16;
printf ("Changing the Framesize to %d bits ... ", param);
if (SPI_OK == ioctl (spifd, IO_IOCTL_SPI_SET_FRAMESIZE, &param))
{
printf ("OK\n");
}
else
{
printf ("ERROR\n");
}

The procedure is accepted and I receive an OK and read 16 when a GET_FRAMESIZE is issued.

 

The problem is I cannot write at the device; it always returns error, only with 16 bits, if 8 is set, it works fine.

 

How can I work with SPI in 16 bits?

 

Thank you...Bruno Castelucci

Outcomes