cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Max Read/Write Buffer Sizes for BlueNRG

hui
Associate II
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
1 REPLY 1
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