Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

CC2541 SPI使用疑问

$
0
0

我在使用BLE_Bridge的democode,使用SPI进行通信的时候发现一个问题,在从机发送过程中,假设要发送0x01 0x02两个字节,在主机端则接收到的三个字节:0x00 0x01 0x02。。前面多了个0x00。在代码中有这么一条:HAL_DMA_SET_LEN(ch, SPI_PKT_LEN(spiTxPkt) + 1); /* slave DMA TX might drop the last byte */表明是发送3个字节。我想问一下其中的缘由。

谢谢。


Viewing all articles
Browse latest Browse all 7485

Trending Articles