Re: [問題] spi function

看板LinuxDev作者 (eleghost)時間13年前 (2012/06/08 14:46), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/4 (看更多)
但我參考LXR的.. spi_sync, spi_async好像也不能雙向. http://lxr.linux.no/#linux+v3.4/drivers/spi/spi.c#L1098 因為如果在struct spi_message *message的 tx_buf, rx_buf都放的話. 就會回傳error了 ...@_@ thanks! ※ 引述《juichangkuo (..)》之銘言: : 你的spi master 與 slave device 都支援full duplex trasnfer嗎? : 如果是的話,可以在你的spi protocol driver裡面使用 : spi_sync - blocking mode : spi_async - non-blocking mode : ※ 引述《eleghost (eleghost)》之銘言: : : SPI 是雙向的, 但kernel所提供的api依然是單向的. : : 請問像spi_read, spi_write怎樣在讀寫中同時可以獲得 : : 對向的資料呢?謝謝. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.136.197.143
文章代碼(AID): #1FqP-p6i (LinuxDev)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 3 之 4 篇):
文章代碼(AID): #1FqP-p6i (LinuxDev)