Hi Sir
The product is nrf52840 and SDK15, If I'd want to do following SPI operation ( CS to L ---> MOSI data {0x60, 0x00, 0x00, 0x11} ---> CS to H )
1. How to setup nrf_drv_spi_transfer ? Is it like this?
uint8_t tx_buf[4] = {0x60, 0x00, 0x00, 0x11} ;
uint8_t rx_buf = 0x0;
nrf_drv_spi_transfer(&spi, tx_buf, 4, rx_buf, 0); is it correct ??
and Is it working too?
uint8_t tx_buf1[2] = {0x60, 0x00} ;
uint8_t tx_buf2[2] = {0x00, 0x11} ;
nrf_drv_spi_transfer(&spi, tx_buf1, 2, rx_buf, 0);
nrf_drv_spi_transfer(&spi, tx_buf2, 2, rx_buf, 0);
2. Could l set SPI data width to 16bit ?
3. The SPI peripheral device is BIG ENDIAN device, Should I set bit_order to NRF_DRV_SPI_BIT_ORDER_LSB_FIRST ?
Thanks.