Hi all!

I need to set a SPI which is 159 bits long. This is the code:
Code:
SpiTransfer(FALSE, SPI_SETTING_, F_1KHZ_, Spi_Word, Spi_Readback, DATA_LENGTH_);
And this is the array which keeps the SPI word:
Code:
uint8_t Spi_Word[20]=
{ 
0x00, 0x00, 0x26, 0x05, 0x00,
0x01, 0x68, 0x00, 0x0F, 0x80,
0x00, 0x00, 0x00, 0x00, 0xC1,
0xCF, 0x72, 0xE8, 0x60, 0x20,
};
The problem is that the SPi_Word gets truncated, but I don't know why... Besides I don't know why it gets truncated, I don't know how to solf this issue.

Any help would be appreciated,

Regards,

Coen