Wiki

No renderer 'pdf' found for mode 'pdf'
This version (20 Nov 2015 16:33) was approved by Lars-Peter Clausen.The Previously approved version (20 Nov 2015 16:33) is available.Diff

AD2S1200 IIO Resolver-to-Digital Converter Linux Driver

Supported Devices

Evaluation Boards

Description

This is a Linux industrial I/O (IIO) subsystem driver, targeting Resolver-to-Digital Converters. The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc). See IIO for more information.

Source Code

Status

Source Mainlined?
git Yes

Files

Adding Linux driver support

Configure kernel with “make menuconfig” (alternatively use “make xconfig” or “make qconfig”)

The Driver depends on CONFIG_SPI

Linux Kernel Configuration
	Device Drivers  --->
		[*] Staging drivers  --->
			<*>     Industrial I/O support --->
			    --- Industrial I/O support
			    -*-   Enable ring buffer support within IIO
			    -*-     Industrial I/O lock free software ring
			    -*-   Enable triggered sampling support

			          *** Resolver to digital converters ***
			    [--snip--]

			    <*>   Analog Devices AD2S120x driver

			    [--snip--]

Driver Usage

The device file path may looks like,

/sys/devices/platform/bfin-spi.0/spi0.3/iio/device0/ad2s120x>

There are two files:

File Name Permission Usage
pos_vel read only 12 bits unsigned angular value and 12 bits signed velocity value
pos read only 12 bits unsigned angular value
vel read only 12 bits signed velocity value
description read only description about this chip

More Information

resources/tools-software/linux-drivers/iio-resolver/ad2s1200.txt · Last modified: 20 Nov 2015 16:33 by Lars-Peter Clausen