SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
axp192_regs::pmu Struct Reference

Power Management Unit (PMU) registers. More...

#include <AXP192Regs.hpp>

Static Public Member Functions

static uint8_t encodeInputCurrentLimit (uint32_t mA)
 
static uint32_t decodeInputCurrentLimit (uint8_t reg)
 

Static Public Attributes

static constexpr uint8_t IPS_SET = 0x30
 
static constexpr uint8_t VOFF_SET = 0x31
 
static constexpr uint8_t OFF_CTL = 0x32
 
static constexpr uint8_t POK_SET = 0x36
 
static constexpr uint8_t INPUT_CURR_MASK = 0x03
 

Detailed Description

Power Management Unit (PMU) registers.

Definition at line 76 of file AXP192Regs.hpp.

Member Function Documentation

◆ decodeInputCurrentLimit()

static uint32_t axp192_regs::pmu::decodeInputCurrentLimit ( uint8_t  reg)
inlinestatic

Definition at line 98 of file AXP192Regs.hpp.

References INPUT_CURR_MASK.

◆ encodeInputCurrentLimit()

static uint8_t axp192_regs::pmu::encodeInputCurrentLimit ( uint32_t  mA)
inlinestatic

Definition at line 86 of file AXP192Regs.hpp.

Member Data Documentation

◆ INPUT_CURR_MASK

constexpr uint8_t axp192_regs::pmu::INPUT_CURR_MASK = 0x03
staticconstexpr

Definition at line 84 of file AXP192Regs.hpp.

Referenced by decodeInputCurrentLimit().

◆ IPS_SET

constexpr uint8_t axp192_regs::pmu::IPS_SET = 0x30
staticconstexpr

Definition at line 77 of file AXP192Regs.hpp.

◆ OFF_CTL

constexpr uint8_t axp192_regs::pmu::OFF_CTL = 0x32
staticconstexpr

Definition at line 79 of file AXP192Regs.hpp.

Referenced by PmicAXP192::reset(), and PmicAXP192::shutdown().

◆ POK_SET

constexpr uint8_t axp192_regs::pmu::POK_SET = 0x36
staticconstexpr

Definition at line 80 of file AXP192Regs.hpp.

◆ VOFF_SET

constexpr uint8_t axp192_regs::pmu::VOFF_SET = 0x31
staticconstexpr

Definition at line 78 of file AXP192Regs.hpp.


The documentation for this struct was generated from the following file: