![]() |
no-OS
|
MAX77985/MAX77986 charger setup for EVAL-POWRMS project. More...
#include "powrms_max77986.h"#include "no_os_error.h"#include "no_os_delay.h"#include "no_os_print_log.h"Macros | |
| #define | MAX77986_WRITE_DELAY_MS 50 |
Functions | |
| int | max77986_init (struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param) |
| Initialize the MAX77986 over I2C in MODE 6 with maximum current. | |
| int | max77986_remove (struct no_os_i2c_desc *desc) |
| Free the resources allocated by max77986_init(). | |
MAX77985/MAX77986 charger setup for EVAL-POWRMS project.
Copyright 2025(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define MAX77986_WRITE_DELAY_MS 50 |
| int max77986_init | ( | struct no_os_i2c_desc ** | desc, |
| const struct no_os_i2c_init_param * | param ) |
Initialize the MAX77986 over I2C in MODE 6 with maximum current.
Brings up the adapter->SYS synchronous buck (no battery) regulated to a fixed 5.0 V with the adapter input current limit set to its maximum (5.5 A). The charger config registers are unlocked first, the voltage and current limits configured, the BATT-to-SYS FET forced off, and MODE = 0x6 enabled last.
| desc | - Will be set to the allocated I2C descriptor on success. The caller owns it and must release it with max77986_remove(). |
| param | - I2C bus initialization parameters (slave address 0x6B). |
| int max77986_remove | ( | struct no_os_i2c_desc * | desc | ) |
Free the resources allocated by max77986_init().
| desc | - I2C descriptor returned by max77986_init(). |