Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Public API for the MAX20362 PMIC regulator driver. More...

#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>

Go to the source code of this file.

Macros

MAX20362 INT / INT_MASK register bits (0x14 / 0x18)
#define MAX20362_INT_CAPOVLO_MASK   BIT(7)
 Cap over-voltage lockout.
#define MAX20362_INT_CAPUVLO_MASK   BIT(6)
 Cap under-voltage lockout.
#define MAX20362_INT_BBSTON_MASK   BIT(5)
 Buck-boost on.
#define MAX20362_INT_BBSTOFF_MASK   BIT(4)
 Buck-boost off.
#define MAX20362_INT_BBINUVLO_MASK   BIT(3)
 Buck-boost input UVLO.
#define MAX20362_INT_UVLO_MASK   BIT(2)
 Undervoltage lockout.
#define MAX20362_INT_BSTFLT_MASK   BIT(1)
 Boost fault.
#define MAX20362_INT_THMFLT_MASK   BIT(0)
 Thermal fault.
MAX20362 LDO_INT / LDO_INT_MASK register bits (0x17 / 0x1B)
#define MAX20362_LDOINT_DIV_MASK   BIT(3)
 Divider fault.
#define MAX20362_LDOINT_SHR_MASK   BIT(2)
 Short circuit.
#define MAX20362_LDOINT_THM_MASK   BIT(1)
 Thermal fault.
#define MAX20362_LDOINT_CLP_MASK   BIT(0)
 Current limit / clipping fault.
MAX20362 INGEN_INT / INGEN_INT_MASK register bits (0x16 / 0x1A)
#define MAX20362_INGENINT_OUTTMO_MASK   BIT(4)
 Output timeout.
#define MAX20362_INGENINT_DRPMIN_MASK   BIT(3)
 Droop min.
#define MAX20362_INGENINT_TNKTMO_MASK   BIT(2)
 Tank timeout.
#define MAX20362_INGENINT_SIMOPIN_MASK   BIT(1)
 SIMO pin.
#define MAX20362_INGENINT_DRPMAX_MASK   BIT(0)
 Droop max.
MAX20362 interrupt mask convenience values
#define MAX20362_INT_MASK_ALL   0xFF
 Mask all INT bits.
#define MAX20362_LDO_INT_MASK_ALL   0x0F
 Mask all LDO_INT bits (DIV | SHR | THM | CLP).
#define MAX20362_INGEN_INT_MASK_ALL   0x1F
 Mask all INGEN_INT bits (OUTTMO | DRPMIN | TNKTMO | SIMOPIN | DRPMAX).

Functions

int regulator_max20362_set_int_mask (const struct device *dev, uint8_t mask)
 Sets the main interrupt mask (INT_MASK register) of the MAX20362 device.
int regulator_max20362_set_ingen_int_mask (const struct device *dev, uint8_t mask)
 Sets the Ingenuity interrupt mask (INGEN_INT_MASK register) of the MAX20362 device.
int regulator_max20362_set_ldo_int_mask (const struct device *dev, uint8_t mask)
 Sets the LDO interrupt mask (LDO_INT_MASK register) of the MAX20362 device.

Detailed Description

Public API for the MAX20362 PMIC regulator driver.