|
| NO_OS_DECLARE_CRC8_TABLE (max42500_crc8) |
|
int | max42500_set_state (struct max42500_dev *desc, enum max42500_state state) |
| Set device state through EN0 and EN1 pins. More...
|
|
int | max42500_reg_read (struct max42500_dev *desc, uint8_t reg_addr, uint8_t *reg_data) |
| Read a raw value from a register. More...
|
|
int | max42500_reg_write (struct max42500_dev *desc, uint8_t reg_addr, uint8_t data) |
| Write a raw value to a register. More...
|
|
int | max42500_reg_update (struct max42500_dev *desc, uint8_t reg_addr, uint8_t mask, uint8_t data) |
| Update a register's value based on a mask. More...
|
|
int | max42500_set_nominal_voltage (struct max42500_dev *desc, enum max42500_vm_input vm_in, float voltage) |
| Set nominal voltage for VM1 to VM5. More...
|
|
int | max42500_get_comp_status (struct max42500_dev *desc, enum max42500_vm_input vm_in, enum max42500_comp_stat comp_stat, uint8_t *status) |
| Get the status of the voltage monitor input. More...
|
|
int | max42500_set_ov_thresh1 (struct max42500_dev *desc, enum max42500_vm_input vm_in, float thresh) |
| Set the overvoltage threshold of VM1 to VM5. More...
|
|
int | max42500_set_ov_thresh2 (struct max42500_dev *desc, enum max42500_vm_input vm_in, float thresh) |
| Set the overvoltage threshold of VM6 and VM7. More...
|
|
int | max42500_set_uv_thresh1 (struct max42500_dev *desc, enum max42500_vm_input vm_in, float thresh) |
| Set the undervoltage threshold of VM1 to VM5. More...
|
|
int | max42500_set_uv_thresh2 (struct max42500_dev *desc, enum max42500_vm_input vm_in, float thresh) |
| Set the undervoltage threshold of VM6 and VM7. More...
|
|
int | max42500_get_power_up_timestamp (struct max42500_dev *desc, enum max42500_vm_input vm_in, uint8_t *timestamp) |
| Get the power-up timestamp for a specified voltage monitor input. More...
|
|
int | max42500_get_power_down_timestamp (struct max42500_dev *desc, enum max42500_vm_input vm_in, uint8_t *timestamp) |
| Get the power-down timestamp for a specified voltage monitor input. More...
|
|
int | max42500_set_watchdog_enable (struct max42500_dev *desc, bool wd_enable) |
| Enable/Disable watchdog. More...
|
|
int | max42500_set_watchdog_key (struct max42500_dev *desc) |
| Update the watchdog key based on the mode and current value. More...
|
|
int | max42500_set_watchdog_rhld (struct max42500_dev *desc, enum max42500_wd_rhld rhld) |
| Set watchdog reset hold time. More...
|
|
int | max42500_init (struct max42500_dev **desc, struct max42500_init_param *init_param) |
| Initialize the device structure. More...
|
|
int | max42500_remove (struct max42500_dev *desc) |
| Free the device descriptor. More...
|
|
Source file of MAX42500 Driver.
- Author
- Mark Sapungan (Mark..nosp@m.Sapu.nosp@m.ngan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)
-
Joshua Maniti (Joshu.nosp@m.a.Ma.nosp@m.niti@.nosp@m.anal.nosp@m.og.co.nosp@m.m)
Copyright 2024(c) Analog Devices, Inc.
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.