×

AD2S1210 IIO旋转变压器-数字转换器Linux驱动程序

消耗积分:0 | 格式:pdf | 大小:62.71KB | 2021-05-13

好名字

分享资料个

This version (25 Sep 2019 14:33) was approved by Michael Hennerich.The Previously approved version (20 Nov 2015 16:28) is available.Diff

AD2S1210 IIO Resolver-to-Digital Converter Linux Driver

Supported Devices

Evaluation Boards

Reference Circuits

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 AD2S1210 driver

			    [--snip--]

Driver Usage

The device file path may looks like,

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

There are two files:

File Name Permission Usage
raw_io read/write raw SPI read/write
reset write only soft reset
fclkin read/write show/store input clock
fexcit read/write show/store excitation clock
control read/write show/store control register
bits read/write show/store resolution
fault read only show fault register
pos read only 10/12/14/16 bits unsigned angular value
vel read only 10/12/14/16 bits signed velocity value
pos_vel read only 10/12/14/16 bits unsigned angular and signed velocity value
los_thrd read/write show/store los threshold register
dos_ovr_thrd read/write show/store dos overange register
dos_mis_thrd read/write show/store dos mismatch register
dos_rst_max_thrd read/write show/store dos reset maximum register
dos_rst_min_thrd read/write show/store dos reset minimum register
lot_high_thrd read/write show/store lot high threshold
lot_low_thrd read/write show/store lot low threshold
description read only description about this chip

More Information

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !