|
int32_t | ad7616_select_channel_source (struct ad7616_dev *dev, enum ad7616_ch ch) |
| Select a new source for a channel. More...
|
|
int32_t | ad7616_read_channel_source (struct ad7616_dev *dev, enum ad7616_ch *ch_a, enum ad7616_ch *ch_b) |
| Read the current selected channels. More...
|
|
int32_t | ad7616_read (struct ad7616_dev *dev, uint8_t reg_addr, uint16_t *reg_data) |
|
int32_t | ad7616_write (struct ad7616_dev *dev, uint8_t reg_addr, uint16_t reg_data) |
|
int32_t | ad7616_read_mask (struct ad7616_dev *dev, uint8_t reg_addr, uint16_t mask, uint16_t *data) |
|
int32_t | ad7616_write_mask (struct ad7616_dev *dev, uint8_t reg_addr, uint16_t mask, uint16_t data) |
|
int32_t | ad7616_spi_read (struct ad7616_dev *dev, uint8_t reg_addr, uint16_t *reg_data) |
|
int32_t | ad7616_spi_write (struct ad7616_dev *dev, uint8_t reg_addr, uint16_t reg_data) |
|
int32_t | ad7616_reset (struct ad7616_dev *dev) |
|
int32_t | ad7616_set_range (struct ad7616_dev *dev, enum ad7616_ch ch, enum ad7616_range range) |
|
int32_t | ad7616_set_mode (struct ad7616_dev *dev, enum ad7616_mode mode) |
|
int32_t | ad7616_set_oversampling_ratio (struct ad7616_dev *dev, enum ad7616_osr osr) |
|
int32_t | ad7616_read_data_serial (struct ad7616_dev *dev, struct ad7616_conversion_result *results, uint32_t samples) |
| Read conversion result from device, checking with CRC if enabled. More...
|
|
int32_t | ad7616_par_read (struct ad7616_dev *dev, uint8_t reg_addr, uint16_t *reg_data) |
|
int32_t | ad7616_par_write (struct ad7616_dev *dev, uint8_t reg_addr, uint16_t reg_data) |
|
int32_t | ad7616_read_data_parallel (struct ad7616_dev *dev, uint32_t *buf, uint32_t samples) |
| Read from device in parallel mode. Enter register mode to read/write registers. More...
|
|
int32_t | ad7616_setup_sequencer (struct ad7616_dev *dev, struct ad7616_sequencer_layer *layers, uint32_t layers_nb, uint8_t burst) |
| Setup the sequencer layers. More...
|
|
int32_t | ad7616_disable_sequencer (struct ad7616_dev *dev) |
|
int32_t | ad7616_self_test (struct ad7616_dev *dev) |
| Perform a self test. Channels selection will be left untouched. More...
|
|
int32_t | ad7616_setup (struct ad7616_dev **device, struct ad7616_init_param *init_param) |
|
void | ad7616_remove (struct ad7616_dev *dev) |
|
Implementation of AD7616 Driver.
- Author
- DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)
-
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)
-
Esteban Blanc (eblan.nosp@m.c@ba.nosp@m.ylibr.nosp@m.e.co.nosp@m.m)
Copyright 2020(c) Analog Devices, Inc. Copyright 2023(c) BayLibre, SAS.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
- Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.