All of lore.kernel.org
 help / color / mirror / Atom feed
From: "GRENON Loïc" <difool@rs2i.net>
To: linux-input@vger.kernel.org
Subject: Rotary encoder platform device driver code examples
Date: Wed, 21 Aug 2013 22:50:16 +0200	[thread overview]
Message-ID: <52152808.1000608@rs2i.net> (raw)

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

             reply	other threads:[~2013-08-21 21:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-21 20:50 GRENON Loïc [this message]
2013-08-27 10:39 ` Rotary encoder platform device driver code examples Christian Gmeiner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52152808.1000608@rs2i.net \
    --to=difool@rs2i.net \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.