LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2013, 11:11 AM   #1
AJEllisuk
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Rep: Reputation: Disabled
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
 
Old 10-03-2013, 07:40 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Would the following be of any use?

http://hackaday.com/2009/09/22/intro...-bitbang-mode/
 
Old 10-10-2013, 11:34 AM   #3
AJEllisuk
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write a SPI driver ? baboundu81 Linux - Embedded & Single-board computer 1 02-01-2013 10:02 AM
linux-kernel/driver/spi - General question Disciple1102 Linux - General 0 07-18-2012 04:16 PM
Can i register a ssc driver (a serial interface device) to be a spi driver ? 5883 Programming 0 03-04-2012 06:14 PM
Communication with SPI driver Mactub Linux - Software 2 03-16-2010 02:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration