-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If an ADC channel measures the midpoint of a voltage divider, the interesting voltage is often the voltage over the full resistance. E.g. if the full voltage is too big for the ADC to handle. Likewise, if an ADC channel measures the voltage across a shunt resistor, with or without amplification, the interesting value is often the current through the resistor. This driver solves these problems by allowing to linearly scale a channel and/or by allowing changes to the type of the channel. Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
- Loading branch information
Peter Rosin
authored and
Jonathan Cameron
committed
Apr 28, 2018
1 parent
2e9a128
commit 8b74816
Showing
6 changed files
with
387 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Analog Front End drivers | ||
# | ||
# When adding new entries keep the list in alphabetical order | ||
|
||
menu "Analog Front Ends" | ||
|
||
config IIO_RESCALE | ||
tristate "IIO rescale" | ||
depends on OF || COMPILE_TEST | ||
help | ||
Say yes here to build support for the IIO rescaling | ||
that handles voltage dividers, current sense shunts and | ||
current sense amplifiers. | ||
|
||
To compile this driver as a module, choose M here: the | ||
module will be called iio-rescale. | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# Makefile for industrial I/O Analog Front Ends (AFE) | ||
# | ||
|
||
# When adding new entries keep the list in alphabetical order | ||
obj-$(CONFIG_IIO_RESCALE) += iio-rescale.o |
Oops, something went wrong.