linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Rotary encoder platform device driver code examples
@ 2013-08-21 20:50 GRENON Loïc
  2013-08-27 10:39 ` Christian Gmeiner
  0 siblings, 1 reply; 2+ messages in thread
From: GRENON Loïc @ 2013-08-21 20:50 UTC (permalink / raw)
  To: linux-input

Hi guys,

I want to interface a magnetic scale position sensor with a BeagleBone 
Black (an ARM development platform).
While I was reading this following article : 
http://bwgz57.wordpress.com/2012/04/11/beaglebone-with-a-rotary-encoder/ 
I discovered that linux has built-in support for rotary encoders 
connected via GPIO.

The magnetic scale position sensor can be considered like a rotary 
encoder so I would use the rotary_encoder platform device driver.

I've read the code example at the end of this document : 
https://www.kernel.org/doc/Documentation/input/rotary-encoder.txt
But I don't know how to access to the "pos" value of the rotary encoder.

Do you have some code example of use of this driver ? Or anything that 
can be helpful for me.

Thanks,
Regards,

Loïc
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-27 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 20:50 Rotary encoder platform device driver code examples GRENON Loïc
2013-08-27 10:39 ` Christian Gmeiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).