Firefly开源社区

标题: SPI怎么发送16位数据 [打印本页]

作者: 沙漠中的夜行者    时间: 2017-3-13 21:36
标题: SPI怎么发送16位数据
使用内核在documentation/spi目录下有spidev的例子做测试,使用.bits_per_word = 8时,能够完整的在SecureCRT中端上看到发送的数组,但使用.bits_per_word = 16时,中断上只能看到前面一半的数组元素,后一半全部为0x00,需要怎么修改才能发送16位的数据?

per_bit_word8.PNG (7.96 KB, 下载次数: 41)

per_bit_word8.PNG

per_bit_word16.PNG (9.25 KB, 下载次数: 35)

per_bit_word16.PNG





欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1