|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
AXP517 PWRON button configuration driver. More...
#include <AXP517Pwron.hpp>
Public Member Functions | |
| AXP517Pwron (AXP517Core &core) | |
| Construct an AXP517 PWRON button driver. | |
| bool | setOnDurationMs (uint16_t ms) override |
| Set the power-on debounce duration. | |
| bool | getOnDurationMs (uint16_t &ms) const override |
| Get the current power-on debounce duration. | |
| bool | setOffDurationMs (uint16_t ms) override |
| Set the power-off debounce duration. | |
| bool | getOffDurationMs (uint16_t &ms) const override |
| Get the current power-off debounce duration. | |
| bool | setIrqDurationMs (uint16_t ms) override |
| Set the button IRQ trigger duration. | |
| bool | getIrqDurationMs (uint16_t &ms) const override |
| Get the current button IRQ trigger duration. | |
Public Member Functions inherited from PmicButtonBase | |
| virtual | ~PmicButtonBase ()=default |
| Virtual destructor. | |
AXP517 PWRON button configuration driver.
Provides debounce and interrupt timing controls for the PMIC PWRON input.
Definition at line 41 of file AXP517Pwron.hpp.
|
explicit |
Construct an AXP517 PWRON button driver.
| core | Shared AXP517 register transport. |
Definition at line 37 of file AXP517Pwron.cpp.
|
overridevirtual |
Get the current button IRQ trigger duration.
| ms | Output parameter receiving the IRQ-level duration in milliseconds. |
| true | on success, false on register access failure. |
Implements PmicButtonBase.
Definition at line 98 of file AXP517Pwron.cpp.
References axp517_regs::ctrl::PWRON_CFG, and SensorCommWrapper::readReg().
|
overridevirtual |
Get the current power-off debounce duration.
| ms | Output parameter receiving the off-level duration in milliseconds. |
| true | on success, false on register access failure. |
Implements PmicButtonBase.
Definition at line 79 of file AXP517Pwron.cpp.
References axp517_regs::ctrl::PWRON_CFG, and SensorCommWrapper::readReg().
|
overridevirtual |
Get the current power-on debounce duration.
| ms | Output parameter receiving the on-level duration in milliseconds. |
| true | on success, false on register access failure. |
Implements PmicButtonBase.
Definition at line 61 of file AXP517Pwron.cpp.
References axp517_regs::ctrl::PWRON_CFG, and SensorCommWrapper::readReg().
|
overridevirtual |
Set the button IRQ trigger duration.
| ms | Desired IRQ-level duration in milliseconds. |
| true | on success, false on register access failure. |
Implements PmicButtonBase.
Definition at line 90 of file AXP517Pwron.cpp.
|
overridevirtual |
Set the power-off debounce duration.
| ms | Desired off-level duration in milliseconds. |
| true | on success, false on register access failure. |
Implements PmicButtonBase.
Definition at line 71 of file AXP517Pwron.cpp.
|
overridevirtual |
Set the power-on debounce duration.
| ms | Desired on-level duration in milliseconds. |
| true | on success, false on register access failure. |
Implements PmicButtonBase.
Definition at line 53 of file AXP517Pwron.cpp.