SensorLib
0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
AXP192Core.cpp
Go to the documentation of this file.
1
30
#include "../../../SensorBuildOpt.h"
31
#if !SENSORLIB_EXCLUDE_PMIC_AXP192
32
33
#include "
AXP192Core.hpp
"
34
#include "
AXP192Regs.hpp
"
35
36
bool
AXP192Core::initImpl(uint8_t param)
37
{
38
(void)param;
39
int
id
=
readReg
(
axp192_regs::bmu::IC_TYPE
);
40
if
(
id
< 0 ||
id
!=
axp192_regs::CHIP_ID
) {
41
return
false
;
42
}
43
return
true
;
44
}
45
46
#endif
AXP192Core.hpp
@license MIT License
AXP192Regs.hpp
@license MIT License
SensorCommWrapper::readReg
int readReg(uint8_t reg) const
Definition
SensorCommWrapper.hpp:40
axp192_regs::bmu::IC_TYPE
static constexpr uint8_t IC_TYPE
Definition
AXP192Regs.hpp:52
axp192_regs::CHIP_ID
static constexpr uint8_t CHIP_ID
Definition
AXP192Regs.hpp:244
src
pmic
xpowers
axp192
AXP192Core.cpp
Generated by
1.9.8