SPI_NBITS_SINGLE ?
I am looking for better explanation what tx_nbits and rx_nbits do.
Perhaps they are talking about "bytes"?
tx_nbits
number of bits used for writing. If 0 the default (SPI_NBITS_SINGLE) is used.
rx_nbits
number of bits used for reading. If 0 the default (SPI_N
struct spi_transfer {
const void * tx_buf;
void * rx_buf;
unsigned len;
dma_addr_t tx_dma;
dma_addr_t rx_dma;
struct sg_table tx_sg;
struct sg_table rx_sg;
unsigned cs_change:1;
unsigned tx_nbits:3;
unsigned rx_nbits:3;
#define SPI_NBITS_SINGLE 0x01
#define SPI_NBITS_DUAL 0x02
#define SPI_NBITS_QUAD 0x04
u8 bits_per_word;
u16 delay_usecs;
u32 speed_hz;
struct list_head transfer_list;
};
FYI here is a link to ONE of few copies of SAME article on the web
https://manpages.debian.org/wheezy-b...sfer.9.en.html