|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
#include <PmicButtonBase.hpp>
Public Member Functions | |
| virtual | ~PmicButtonBase ()=default |
| Virtual destructor. | |
| virtual bool | setOnDurationMs (uint16_t ms)=0 |
| Set button power-on press duration. | |
| virtual bool | getOnDurationMs (uint16_t &ms) const =0 |
| Get button power-on press duration. | |
| virtual bool | setOffDurationMs (uint16_t ms)=0 |
| Set button power-off press duration. | |
| virtual bool | getOffDurationMs (uint16_t &ms) const =0 |
| Get button power-off press duration. | |
| virtual bool | setIrqDurationMs (uint16_t ms)=0 |
| Set button IRQ trigger duration. | |
| virtual bool | getIrqDurationMs (uint16_t &ms) const =0 |
| Get button IRQ trigger duration. | |
Definition at line 44 of file PmicButtonBase.hpp.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Get button IRQ trigger duration.
Retrieves the current button press duration configured for interrupt generation.
| [out] | ms | Output variable receiving the duration in milliseconds |
Implemented in AXP1xxPwron< Regs >, AXP1xxPwron< axp192_regs >, AXP1xxPwron< axp202_regs >, AXP2101Pwron, and AXP517Pwron.
|
pure virtual |
Get button power-off press duration.
Retrieves the current minimum button press duration required to trigger a power-off event.
| [out] | ms | Output variable receiving the duration in milliseconds |
Implemented in AXP1xxPwron< Regs >, AXP1xxPwron< axp192_regs >, AXP1xxPwron< axp202_regs >, AXP2101Pwron, and AXP517Pwron.
|
pure virtual |
Get button power-on press duration.
Retrieves the current minimum button press duration required to trigger a power-on event.
| [out] | ms | Output variable receiving the duration in milliseconds |
Implemented in AXP1xxPwron< Regs >, AXP1xxPwron< axp192_regs >, AXP1xxPwron< axp202_regs >, AXP2101Pwron, and AXP517Pwron.
|
pure virtual |
Set button IRQ trigger duration.
Configures the duration for button-related interrupt generation. Some PMICs generate IRQs on button press, release, or both.
| ms | Duration in milliseconds (chip-specific valid range) |
Implemented in AXP1xxPwron< Regs >, AXP1xxPwron< axp192_regs >, AXP1xxPwron< axp202_regs >, AXP2101Pwron, and AXP517Pwron.
|
pure virtual |
Set button power-off press duration.
Configures the minimum duration the button must be pressed (held low/active) to trigger a power-off event.
| ms | Duration in milliseconds (chip-specific valid range) |
Implemented in AXP1xxPwron< Regs >, AXP1xxPwron< axp192_regs >, AXP1xxPwron< axp202_regs >, AXP2101Pwron, and AXP517Pwron.
|
pure virtual |
Set button power-on press duration.
Configures the minimum duration the button must be pressed (held low/active) to trigger a power-on event.
| ms | Duration in milliseconds (chip-specific valid range) |
Implemented in AXP1xxPwron< Regs >, AXP1xxPwron< axp192_regs >, AXP1xxPwron< axp202_regs >, AXP2101Pwron, and AXP517Pwron.