Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: GPL-2.0-or-later
0002 
0003 Kernel driver max127
0004 ====================
0005 
0006 Author:
0007 
0008   * Tao Ren <rentao.bupt@gmail.com>
0009 
0010 Supported chips:
0011 
0012   * Maxim MAX127
0013 
0014     Prefix: 'max127'
0015 
0016     Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX127-MAX128.pdf
0017 
0018 Description
0019 -----------
0020 
0021 The MAX127 is a multirange, 12-bit data acquisition system (DAS) providing
0022 8 analog input channels that are independently software programmable for
0023 a variety of ranges. The available ranges are {0,5V}, {0,10V}, {-5,5V}
0024 and {-10,10V}.
0025 
0026 The MAX127 features a 2-wire, I2C-compatible serial interface that allows
0027 communication among multiple devices using SDA and SCL lines.
0028 
0029 Sysfs interface
0030 ---------------
0031 
0032   ============== ==============================================================
0033   in[0-7]_input  The input voltage (in mV) of the corresponding channel.
0034                  RO
0035 
0036   in[0-7]_min    The lower input limit (in mV) for the corresponding channel.
0037                  ADC range and LSB will be updated when the limit is changed.
0038                  For the MAX127, it will be adjusted to -10000, -5000, or 0.
0039                  RW
0040 
0041   in[0-7]_max    The higher input limit (in mV) for the corresponding channel.
0042                  ADC range and LSB will be updated when the limit is changed.
0043                  For the MAX127, it will be adjusted to 0, 5000, or 10000.
0044                  RW
0045   ============== ==============================================================