SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
PmicAXP202.hpp File Reference

@license MIT License More...

Include dependency graph for PmicAXP202.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PmicAXP202
 Unified AXP202 PMIC driver. More...
 

Typedefs

using AXP202Irq = AXP1xxIrq< axp202_regs >
 Convenience alias: AXP202Irq::IRQ_ACIN_OV etc.
 
using AXP202Timer = AXP1xxTimer< axp202_regs >
 Convenience alias: AXP202Timer::setTimer() etc.
 

Detailed Description

@license MIT License

Copyright (c) 2026 lewis he

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Author
Lewis He (lewis.nosp@m.he@o.nosp@m.utloo.nosp@m.k.co.nosp@m.m)
Date
2026-04-29

AXP202 PMIC Unified Interface

Top-level class that aggregates all AXP202 functional blocks (ADC, charger, power, GPIO, channel, IRQ, LED, timer, power-on) into a single PmicBase-compatible interface. Provides platform-specific begin() overloads for Arduino (TwoWire), ESP-IDF (I2C legacy and new driver), and custom communication callbacks.

Capabilities

Note
All shared AXP1xx template classes are parameterised with axp202_regs to use AXP202-specific register addresses and constants.

Definition in file PmicAXP202.hpp.

Typedef Documentation

◆ AXP202Irq

Convenience alias: AXP202Irq::IRQ_ACIN_OV etc.

Definition at line 475 of file PmicAXP202.hpp.

◆ AXP202Timer

Convenience alias: AXP202Timer::setTimer() etc.

Definition at line 478 of file PmicAXP202.hpp.