2015-03-23 02:50 PM
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! Hui2015-04-03 06:17 AM
Hi,
The max size of ACI command packet is fixed to 127 bytes.
regards,
GMHi-
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