看板 LinuxDev 關於我們 聯絡資訊
但我參考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