LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Using SPI bitbanging in Linux driver (https://www.linuxquestions.org/questions/programming-9/using-spi-bitbanging-in-linux-driver-4175479081/)

AJEllisuk 09-30-2013 11:11 AM

Using SPI bitbanging in Linux driver
 
Hi,

I writing a Linux driver, and I need to make use of the spi bitbang. I'm not sure where to start with configuring and using the SPI bitbang interface.

I have searched for some information on using spi, and in particular the bit banging interface, but have not found anything useful. Can someone please point me to a tutorial or a some sample code that does this.

I have looked under /kernel/include/linux/spi/spi_bitbang.h But I'm not sure how to use the structure.

Andrew

corp769 10-03-2013 07:40 AM

Would the following be of any use?

http://hackaday.com/2009/09/22/intro...-bitbang-mode/

AJEllisuk 10-10-2013 11:34 AM

Hi,

sorry for the delayed reply.

Unfortunately that point didn't point me in the right direction. My linux kernel already has spi bit bang drivers. I'm not sure how to make use of the interface provided and send and receive data.


All times are GMT -5. The time now is 03:38 PM.