|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
#include <PmicBc12Base.hpp>
Classes | |
| struct | Result |
Public Types | |
| enum class | PortType : uint8_t { Unknown = 0 , None , SDP , CDP , DCP , Apple_1A , Apple_2A , Apple_2_4A } |
| Common detected port/source type. More... | |
Public Member Functions | |
| virtual | ~PmicBc12Base ()=default |
| virtual bool | enableAutoDetect (bool enable)=0 |
| Enable/disable auto BC1.2 detection (if supported). | |
| virtual bool | triggerDetect ()=0 |
| Force/trigger a BC1.2 detection cycle (if supported). | |
| virtual bool | isDetecting ()=0 |
| Query whether PMIC is currently detecting. | |
| virtual Result | readResult ()=0 |
| Read current BC1.2 result. | |
Definition at line 39 of file PmicBc12Base.hpp.
|
strong |
Common detected port/source type.
Definition at line 47 of file PmicBc12Base.hpp.
|
virtualdefault |
|
pure virtual |
Enable/disable auto BC1.2 detection (if supported).
Implemented in AXP517Bc12.
|
pure virtual |
Query whether PMIC is currently detecting.
Implemented in AXP517Bc12.
|
pure virtual |
Read current BC1.2 result.
Implemented in AXP517Bc12.
|
pure virtual |
Force/trigger a BC1.2 detection cycle (if supported).
Implemented in AXP517Bc12.