|
int | max22190_filter_set (struct max22190_desc *desc, uint32_t ch, uint32_t clrf, uint32_t fbp, enum max22190_delay delay) |
| Set filter delay, wite break detection and if the filter is used or bypassed. More...
|
|
int | max22190_filter_get (struct max22190_desc *desc, uint32_t ch, uint32_t *clrf, uint32_t *fbp, enum max22190_delay *delay) |
| Get filter delay, wite break detection and if the filter is used or bypassed. More...
|
|
int | max22190_chan_state (struct max22190_desc *desc, uint32_t ch, enum max22190_ch_state state) |
| Switch selected channel's state to disabled or enabled. More...
|
|
int | max22190_wbe_get (struct max22190_desc *desc, uint32_t ch, bool *enabled) |
| Get Wire Break detection for requested channel. More...
|
|
int | max22190_wbe_set (struct max22190_desc *desc, uint32_t ch, bool enabled) |
| Set Wire Break detection for requested channel. More...
|
|
int | max22190_fault_enable_get (struct max22190_desc *desc, enum max22190_fault_enable fault_enable, bool *enabled) |
| Get fault enable from the fault registers. More...
|
|
int | max22190_fault_enable_set (struct max22190_desc *desc, enum max22190_fault_enable fault_enable, bool enabled) |
| Set fault enable in the fault registers. More...
|
|
int | max22190_reg_read (struct max22190_desc *desc, uint32_t addr, uint32_t *val) |
| Register read function for MAX22190. More...
|
|
int | max22190_reg_write (struct max22190_desc *desc, uint32_t addr, uint32_t val) |
| Register write function for MAX22190. More...
|
|
int | max22190_reg_update (struct max22190_desc *desc, uint32_t addr, uint32_t mask, uint32_t val) |
| Register update function for MAX22190. More...
|
|
int | max22190_init (struct max22190_desc **desc, struct max22190_init_param *param) |
| MAX22190 Initialization function. More...
|
|
int | max22190_remove (struct max22190_desc *desc) |
| Free the resources allocated by initialization. More...
|
|
Source file of MAX22190 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.