Wiki

This version is outdated by a newer approved version.DiffThis version (07 May 2011 00:01) is a draft.
Approvals: 0/1

This is an old revision of the document!


Linux Configuration

  • Enable SPI support
  • Enable the chip driver,
Device Drivers  --->
  [*] Staging drivers  --->
    <*>     Industrial I/O support  --->
        <*>   Analog Devices ad2s1210 driver

Usage on Linux

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
resources/tools-software/linux-drivers/iio-resolver/ad2s1210.1304719303.txt.gz · Last modified: 07 May 2011 00:01 by andyr