Skip to main content
hui
Visitor II
March 23, 2015
Question

What is the Max Read/Write Buffer Sizes for BlueNRG

  • March 23, 2015
  • 1 reply
  • 624 views
Posted on March 23, 2015 at 22:50

Hi-

Doc UM1755 says slave header on SPI indicates read/write buffer size by bytes 1-2 and 3-4. If ACI command pkt is bigger than 128 bytes then mast has to send it in 2 SPI write transactions. Does it mean the size for either read or write can't be greater than 0x007F? Or  only higher byte matters?

In function BlueNRG_SPI_Write_Raw() of SDK_EVAL_Spi_Driver.c from DK1.6.0:

       if (header_slave[1] >= (Nb_bytes1+Nb_bytes2)) {

Does the line above support the understanding that only higher byte matters?

thanks!

Hui
This topic has been closed for replies.

1 reply

marchese.graziella
Visitor II
April 3, 2015
Posted on April 03, 2015 at 15:17

Hi,

The max size of ACI command packet is fixed to 127 bytes.

regards,

GM

Hi-

Doc UM1755 says slave header on SPI indicates read/write buffer size by bytes 1-2 and 3-4. If ACI command pkt is bigger than 128 bytes then mast has to send it in 2 SPI write transactions. Does it mean the size for either read or write can't be greater than 0x007F? Or  only higher byte matters?

In function BlueNRG_SPI_Write_Raw() of SDK_EVAL_Spi_Driver.c from DK1.6.0:

       if (header_slave[1] >= (Nb_bytes1+Nb_bytes2)) {

Does the line above support the understanding that only higher byte matters?

thanks!

Hui