SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
AXP517Bc12.hpp
Go to the documentation of this file.
1
31#pragma once
32
33#include "../../PmicBc12Base.hpp"
34#include "AXP517Core.hpp"
35
44{
45public:
50 explicit AXP517Bc12(AXP517Core &core);
57 bool enableAutoDetect(bool enable) override;
58
64 bool triggerDetect() override;
65
71 bool isDetecting() override;
72
78 Result readResult() override;
79
80private:
86 static PortType mapResult(uint8_t code);
87
88 AXP517Core &_core;
89};
@license MIT License
AXP517 BC1.2 detection module.
Result readResult() override
Read the current BC1.2 detection result.
bool enableAutoDetect(bool enable) override
Enable or disable automatic BC1.2 detection.
bool isDetecting() override
Check if BC1.2 detection is currently in progress.
bool triggerDetect() override
Trigger a BC1.2 detection cycle.
AXP517 low-level core driver.
PortType
Common detected port/source type.