30#include "../../../SensorBuildOpt.h"
31#if !SENSORLIB_EXCLUDE_PMIC_AXP517
100 default:
return false;
109 uint8_t modeBits = regVal & 0x07;
110 if (modeBits != 0x06) {
113 uint8_t manualBits = (regVal >> 3) & 0x07;
114 switch (manualBits) {
AXP517 low-level core driver.
AXP517Led(AXP517Core &core)
Construct an AXP517 LED driver.
bool setOutputType(OutputType type) override
Set the LED output type.
bool setManualState(ManualState state) override
Set the LED manual state.
Mode getMode() override
Get LED operating mode.
ManualState getManualState() override
Get manual LED state (only meaningful when Mode::Manual is active).
bool setMode(Mode mode) override
Set the LED mode.
ManualState
Manual LED state (portable subset).
Mode
High-level LED operating mode (portable subset).
@ VENDOR
Unknown/implementation-specific mode.
@ BREATH
Breath/blink mode controlled by PMIC/hardware (if supported).
@ MANUAL
Manual control through registers.
@ AUTO
PMIC controls LED automatically (e.g.
@ DISABLE
LED is disabled (if supported).
bool clrRegBit(uint8_t reg, uint8_t bit)
bool getRegBit(uint8_t reg, uint8_t bit)
int readReg(uint8_t reg) const
int updateBits(uint8_t reg, uint8_t mask, uint8_t value_shifted)
bool setRegBit(uint8_t reg, uint8_t bit)
static constexpr uint8_t MODULE_EN1
Module enable control1.
static constexpr uint8_t CHGLED_CFG
CHGLED configure.