|
| int | max22915_reg_read (struct max22915_desc *desc, uint8_t reg_addr, uint8_t *reg_data) |
| | Read register data from MAX22915.
|
| |
| int | max22915_reg_write (struct max22915_desc *desc, uint8_t reg_addr, uint8_t reg_data) |
| | Write register data to MAX22915.
|
| |
| int | max22915_reg_write_mask (struct max22915_desc *desc, uint8_t reg_addr, uint8_t mask, uint8_t reg_data) |
| | Write register data to MAX22915 with mask.
|
| |
| int | max22915_set_sw_state (struct max22915_desc *dev, uint8_t channel, enum max22915_sw_state state) |
| | Set the switch state of a channel.
|
| |
| int | max22915_set_owon_config (struct max22915_desc *dev, uint8_t channel, bool owon_enable) |
| | Set the open-wire on detection configuration for a channel.
|
| |
| int | max22915_set_owoff_config (struct max22915_desc *dev, uint8_t channel, bool owoff_enable) |
| | Set the open-wire off detection configuration for a channel.
|
| |
| int | max22915_set_shvdd_config (struct max22915_desc *dev, uint8_t channel, bool shtvdd_enable) |
| | Set the short to VDD detection configuration for a channel.
|
| |
| int | max22915_set_current_config (struct max22915_desc *dev, struct max22915_current_config *config) |
| | Set the current measurement configuration.
|
| |
| int | max22915_set_temperature_config (struct max22915_desc *dev, struct max22915_temp_config *config) |
| | Set the temperature measurement configuration.
|
| |
| int | max22915_init (struct max22915_desc **device, struct max22915_init_param *init_param) |
| | Initialize and configure the MAX22915 device.
|
| |
| int | max22915_remove (struct max22915_desc *dev) |
| | Remove resources allocated for MAX22915.
|
| |
Source file of MAX22915 Driver.
- Author
- Janani Sunil (janan.nosp@m.i.su.nosp@m.nil@a.nosp@m.nalo.nosp@m.g.com)
Copyright 2025-2026(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.