|
int | max22196_reg_write (struct max22196_desc *desc, uint32_t reg, uint32_t val) |
| MAX22196 register write function. More...
|
|
int | max22196_reg_read (struct max22196_desc *desc, uint32_t reg, uint32_t *val) |
| MAX22196 register read function. More...
|
|
int | max22196_reg_update (struct max22196_desc *desc, uint32_t reg, uint32_t mask, uint32_t val) |
|
- MAX22196 register update function
More...
|
|
int | max22196_set_mode (struct max22196_desc *desc, uint32_t ch, enum max22196_mode mode) |
|
- MAX22196 function that helps setting the mode of the device.
More...
|
|
int | max22196_chan_cfg (struct max22196_desc *desc, uint32_t ch, uint32_t hi_thr, enum max22196_curr curr) |
|
- MAX22196 channel configuration function
More...
|
|
int | max22196_filter_set (struct max22196_desc *desc, uint32_t ch, uint32_t flt_en, uint32_t clr_filtr, enum max22196_delay delay) |
|
- MAX22196 filter set function
More...
|
|
int | max22196_filter_get (struct max22196_desc *desc, uint32_t ch, uint32_t *flt_en, uint32_t *clr_filtr, enum max22196_delay *delay) |
|
- MAX22196 filter get function
More...
|
|
int | max22196_fault_mask_set (struct max22196_desc *desc, enum max22196_fault_mask fault_mask, bool enabled) |
| Set fault mask bits in the fault mask registers. More...
|
|
int | max22196_fault_mask_get (struct max22196_desc *desc, enum max22196_fault_mask fault_mask, bool *enabled) |
| Get fault mask bits from the fault mask registers. More...
|
|
int | max22196_global_cfg (struct max22196_desc *desc, enum max22196_global_cfg global_cfg, bool enabled) |
| Set global configuration. More...
|
|
int | max22196_set_chan_cnt (struct max22196_desc *desc, uint32_t ch, uint16_t cnt_msb_lsb_bytes) |
|
- MAX22196 channel counter set function
More...
|
|
int | max22196_get_chan_cnt (struct max22196_desc *desc, uint32_t ch, uint16_t *cnt_msb_lsb_bytes) |
| MAX22196 channel counter get function. More...
|
|
int | max22196_init (struct max22196_desc **desc, struct max22196_init_param *param) |
| Initialize and configure the MAX22196 device. More...
|
|
int | max22196_remove (struct max22196_desc *desc) |
| Free the resources allocated during init. More...
|
|
Source file of MAX22196 Driver.
- Author
- Radu Sabau (radu..nosp@m.saba.nosp@m.u@ana.nosp@m.log..nosp@m.com)
Copyright 2023(c) Analog Devices, Inc.
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.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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.