|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
#include <SensorCommWrapper.hpp>
Public Member Functions | |
| SensorCommWrapper ()=default | |
| int | readReg (uint8_t reg) const |
| int | readRegBuff (uint8_t reg, uint8_t *buf, size_t len) const |
| int | readBuff (uint8_t *buf, size_t len) const |
| int | writeReg (uint8_t reg, uint8_t val) |
| int | writeRegBuff (uint8_t reg, uint8_t *buf, size_t len) |
| int | writeBuff (uint8_t *buf, size_t len) |
| int | writeThenRead (const uint8_t *write_buffer, size_t write_len, uint8_t *read_buffer, size_t read_len) |
| bool | setRegBit (uint8_t reg, uint8_t bit) |
| bool | clrRegBit (uint8_t reg, uint8_t bit) |
| bool | getRegBit (uint8_t reg, uint8_t bit) |
| int | updateBits (uint8_t reg, uint8_t mask, uint8_t value_shifted) |
| void | setAddress (uint8_t address) |
| void | setAck (bool enable) |
Public Member Functions inherited from SensorCommInterface | |
| virtual bool | ensureValid () const =0 |
| virtual SensorCommBase * | getComm () const =0 |
| virtual | ~SensorCommInterface ()=default |
Definition at line 35 of file SensorCommWrapper.hpp.
|
default |
|
inline |
Definition at line 89 of file SensorCommWrapper.hpp.
References SensorCommBase::clrRegisterBit(), SensorCommInterface::ensureValid(), and SensorCommInterface::getComm().
Referenced by GaugeAXP2602::compareGaugeData(), AXP2101Power::compareGaugeData(), SensorQMI8658::configAccel(), SensorQMI8658::configGyro(), SensorQMI8658::configWakeOnMotionAdvanced(), IoExpanderXL9555::digitalWriteImpl(), SensorQMI8658::disableAccel(), SensorPCF85063::disableAlarm(), SensorPCF8563::disableAlarm(), AXP2101Charger::disableBatteryDetection(), AXP2101Charger::disableButtonBatteryCharge(), SensorPCF8563::disableCountdownTimer(), SensorQMI8658::disableGyro(), AXP2101Power::disableInternalDischarge(), SensorQMI8658::disableInterrupt(), SensorLTR553::disableLightSensor(), AXP202PowerEx::disableLongPressShutdown(), AXP2101Power::disableLongPressShutdown(), SensorQMI8658::disableMotionDetect(), AXP2101Power::disableOverTempShutdown(), SensorQMI8658::disablePedometer(), AXP2101Power::disablePowerOffDelay(), AXP2101Power::disablePowerSequence(), SensorLTR553::disablePsIndicator(), AXP2101Power::disablePwrOk(), AXP2101Power::disableSleep(), SensorQMI8658::disableSyncMode(), SensorQMI8658::disableTap(), AXP2101Power::disableWakeup(), GaugeAXP2602::disableWDT(), AXP202Coulomb::enable(), AXP192Channel::enable(), AXP202Channel::enable(), AXP2101Channel::enable(), AXP517Bc12::enableAutoDetect(), AXP202ChargerEx::enableBackupCharger(), AXP1xxCharger< Regs >::enableCharging(), SensorQMI8658::enableDataReadyInterrupt(), AXP2101Power::enableDieTempDetection(), AXP2101Power::enableFastPowerOn(), AXP2101Power::enableFastWakeup(), AXP2101Charger::enableJeita(), AXP2101Core::enableModule(), AXP517Core::enableModule(), SensorQMI8658::enableMotionDetect(), AXP202PowerEx::enableOverTemperatureShutdown(), SensorQMI8658::enablePedometer(), AXP1xxPower< Regs >::enableShipMode(), AXP2101Power::enableShipMode(), PmicAXP202::enableSleep(), AXP202PowerEx::enableVBUSDetection(), IoExpanderXL9555::pinModeImpl(), GaugeAXP2602::reset(), SensorPCF85063::resetAlarm(), SensorPCF8563::resetAlarm(), AXP202Coulomb::resume(), SensorQSTMagnetic::selfTest(), SensorQMI8658::selfTestAccel(), SensorQMI8658::selfTestGyro(), GaugeAXP2602::setBatteryDetection(), SensorPCF8563::setClockOutput(), GaugeAXP2602::setCurrentMeasurement(), AXP202PowerEx::setDCDC2PWMMode(), AXP202PowerEx::setDCDC3PWMMode(), AXP2101Power::setDCDCForceCCM(), AXP2101Power::setDCDCForcePWM(), AXP2101Power::setDCLowVoltageProtection(), AXP2101Power::setDCOverVoltageProtection(), AXP2101Power::setDVMRampSlow(), AXP2101Power::setFrequencySpreadEnable(), AXP2101Power::setFrequencySpreadRange(), SensorLTR553::setIRQLevel(), AXP2101Charger::setJeitaCoolCurrentReduction(), AXP2101Charger::setJeitaWarmCurrentReduction(), AXP202PowerEx::setLDO3Mode(), AXP2101Power::setLongPressAction(), AXP1xxLed< Regs >::setMode(), AXP517Led::setMode(), SensorQMI8658::setOperationMode(), AXP192Gpio::setPull(), GaugeAXP2602::setThermalDieMeasurement(), SensorPCF85063::start(), GaugeAXP2602::wakeup(), AXP192Gpio::write(), GaugeAXP2602::writeGaugeData(), and AXP2101Power::writeGaugeData().
|
inline |
Definition at line 95 of file SensorCommWrapper.hpp.
References SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), and SensorCommBase::getRegisterBit().
Referenced by AXP517Power::enableRBFET(), AXP2101Power::getFrequencySpreadRange(), AXP2101Charger::getJeitaCoolCurrentReduction(), AXP2101Charger::getJeitaWarmCurrentReduction(), SensorLTR553::getLightSensor(), AXP1xxLed< Regs >::getManualState(), AXP1xxLed< Regs >::getMode(), AXP517Led::getMode(), AXP192Gpio::getPull(), SensorPCF85063::isAlarmActive(), SensorPCF8563::isAlarmActive(), AXP202ChargerEx::isBackupChargerEnabled(), PmicAXP192::isBatteryConnect(), PmicAXP202::isBatteryConnect(), PmicAXP2101::isBatteryConnect(), AXP2101Charger::isBatteryDetectionEnabled(), AXP517Power::isBoostEnabled(), AXP2101Charger::isButtonBatteryChargeEnabled(), SensorPCF85063::isClockIntegrityGuaranteed(), SensorPCF8563::isClockIntegrityGuaranteed(), SensorPCF8563::isCountdownTimerActive(), SensorQMC5883L::isDataOverflow(), SensorQMC6309::isDataOverflow(), SensorQSTMagnetic::isDataOverflow(), SensorQMC5883L::isDataReady(), SensorQMC6309::isDataReady(), SensorQSTMagnetic::isDataReady(), SensorQMI8658::isDataReady(), SensorQMC5883L::isDataSkipped(), AXP202PowerEx::isDCDC2PWMMode(), AXP202PowerEx::isDCDC3PWMMode(), AXP2101Power::isDCDCForceCCM(), AXP2101Power::isDCDCForcePWM(), AXP2101Power::isDCLowVoltageProtectionEnabled(), AXP2101Power::isDCOverVoltageProtectionEnabled(), AXP2101Power::isDieTempDetectionEnabled(), AXP2101Power::isDVMRampSlow(), AXP202Coulomb::isEnabled(), AXP192Channel::isEnabled(), AXP202Channel::isEnabled(), AXP2101Channel::isEnabled(), AXP2101Power::isFastPowerOnEnabled(), AXP2101Power::isFastWakeupEnabled(), AXP2101Power::isFrequencySpreadEnabled(), AXP2101Charger::isJeitaEnabled(), AXP2101Core::isModuleEnabled(), AXP517Core::isModuleEnabled(), SensorQMC6309::isNVMLoadDone(), SensorQMC6309::isNVMReady(), AXP202PowerEx::isOverTemperatureShutdownEnabled(), AXP517Power::isRBFETEnabled(), SensorPCF85063::isRunning(), AXP1xxPower< Regs >::isShipModeEnabled(), AXP2101Power::isShipModeEnabled(), AXP517Power::isShipModeEnabled(), GaugeAXP2602::isSleepModeEnabled(), AXP1xxTimer< Regs >::isTimedOut(), AXP202PowerEx::isVBUSDetectionEnabled(), PmicAXP192::isVbusGood(), PmicAXP202::isVbusGood(), PmicAXP2101::isVbusGood(), SensorLTR553::psAvailable(), AXP192Gpio::read(), and SensorQMC6309::selfTest().
|
inline |
Definition at line 52 of file SensorCommWrapper.hpp.
References buf, SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), SensorCommBase::readBuffer(), and SENSOR_ERR_NOT_INITIALIZED.
Referenced by IoExpanderPCA9570::digitalReadPort(), and IoExpanderPCA9570::digitalWritePort().
|
inline |
Definition at line 40 of file SensorCommWrapper.hpp.
References SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), SensorCommBase::readRegister(), and SENSOR_ERR_NOT_INITIALIZED.
Referenced by HapticDriver_DRV2605::autoCal(), SensorQMI8658::calibrate(), SensorPawA350::checkMotion(), SensorPCF8563::clearCountdownTimer(), SensorPawA350::clearFingerState(), AXP517Irq::clearStatus(), GaugeAXP2602::compareGaugeData(), AXP2101Power::compareGaugeData(), IoExpanderXL9555::configPinsImpl(), IoExpanderXL9555::digitalReadImpl(), IoExpanderXL9555::digitalReadPort(), AXP2101Irq::disable(), AXP2101Adc::disableChannels(), AXP517Adc::disableChannels(), AXP2101Charger::disableChargeTermination(), SensorQMI8658::dumpRegisters(), AXP2101Irq::enable(), AXP192Channel::enable(), AXP202Channel::enable(), AXP2101Adc::enableChannels(), AXP517Adc::enableChannels(), AXP2101Charger::enableChargeTermination(), GaugeAXP2602::enableIRQ(), AXP202Adc::getADCInputRange(), AXP202Adc::getADCIrqFallingThreshold(), AXP202Adc::getADCIrqRisingThreshold(), AXP202Adc::getADCSampleRate(), AXP202PowerEx::getAPSWarningLevel1(), AXP202PowerEx::getAPSWarningLevel2(), AXP202ChargerEx::getBackupChargerCurrent(), AXP202ChargerEx::getBackupChargerVoltage(), SY6970Power::getBoostVoltage(), BQ25896Power::getBoostVoltage(), AXP517Power::getBoostVoltage(), SY6970Core::getBusStatus(), BQ25896Core::getBusStatus(), AXP2101Charger::getButtonBatteryChargeVoltage(), AXP2101Charger::getChargeHighTempFaultThreshold(), AXP202ChargerEx::getChargeHighTempThreshold(), AXP2101Charger::getChargeLowTempFaultThreshold(), AXP202ChargerEx::getChargeLowTempThreshold(), SY6970Core::getChargeStatus(), BQ25896Core::getChargeStatus(), SY6970Charger::getChargeVoltage(), BQ25896Charger::getChargeVoltage(), AXP1xxCharger< Regs >::getChargeVoltage(), AXP2101Charger::getChargeVoltage(), AXP517Charger::getChargeVoltage(), PmicAXP192::getChipID(), PmicAXP202::getChipID(), PmicAXP2101::getChipID(), HapticDriver_DRV2605::getChipID(), GaugeAXP2602::getChipID(), SensorQMI8658::getChipID(), AXP202ChargerEx::getConstantCurrentTimeout(), SensorPawA350::getCpi(), AXP202PowerEx::getDCDCFrequency(), AXP2101Power::getDCDCUVPDebounce(), BQ25896Core::getDeviceConfig(), TouchDrvFT6X36::getDeviceMode(), SY6970Core::getDeviceRevision(), BQ25896Core::getDeviceRevision(), AXP2101Power::getDieTempLevel1Threshold(), AXP192Gpio::getDirection(), AXP202Gpio::getDirection(), AXP202ChargerEx::getDischargeHighTempThreshold(), AXP202ChargerEx::getDischargeLowTempThreshold(), TouchDrvFT6X36::getErrorCode(), HapticDriver_DRV2605::getF0(), SY6970Charger::getFastChargeCurrent(), BQ25896Charger::getFastChargeCurrent(), AXP1xxCharger< Regs >::getFastChargeCurrent(), AXP2101Charger::getFastChargeCurrent(), AXP2101Power::getFastPowerOnSequence(), SY6970Core::getFaultStatus(), BQ25896Core::getFaultStatus(), SensorQMI8658::getFifoStatus(), AXP192Gpio::getFunction(), AXP202Gpio::getFunction(), TouchDrvFT6X36::getGesture(), AXP2101Charger::getHighTempHysteresis(), SY6970Power::getInputCurrentLimit(), BQ25896Power::getInputCurrentLimit(), AXP1xxPower< Regs >::getInputCurrentLimit(), AXP2101Power::getInputCurrentLimit(), AXP517Power::getInputCurrentLimit(), SY6970Power::getInputVoltageLimit(), BQ25896Power::getInputVoltageLimit(), AXP2101Power::getInputVoltageLimit(), AXP517Power::getInputVoltageLimit(), SensorQMI8658::getInterruptStatus(), AXP1xxPwron< Regs >::getIrqDurationMs(), AXP2101Pwron::getIrqDurationMs(), AXP517Pwron::getIrqDurationMs(), AXP2101Charger::getJeitaCoolThreshold(), AXP2101Charger::getJeitaCoolVoltageDrop(), AXP2101Charger::getJeitaWarmThreshold(), AXP2101Charger::getJeitaWarmVoltageDrop(), SensorPawA350::getLedDriveCurrent(), SensorPawA350::getLedOn(), AXP2101Power::getLowBatShutdownThreshold(), GaugeAXP2602::getLowBatterySOCThreshold(), AXP2101Power::getLowBatWarnThreshold(), AXP2101Charger::getLowTempHysteresis(), HapticDriver_DRV2605::getLRAFrequency(), AXP1xxLed< Regs >::getManualState(), AXP2101Led::getManualState(), AXP517Led::getManualState(), SensorLTR553::getManufacturerID(), SY6970Power::getMinimumSystemVoltage(), BQ25896Power::getMinimumSystemVoltage(), AXP1xxPower< Regs >::getMinimumSystemVoltage(), AXP2101Power::getMinimumSystemVoltage(), AXP517Power::getMinimumSystemVoltage(), HapticDriver_DRV2605::getMode(), SY6970Led::getMode(), BQ25896Led::getMode(), AXP2101Led::getMode(), AXP517Led::getMode(), TouchDrvFT6X36::getMonitorTime(), SensorPawA350::getMotionData(), SensorPawA350::getMotionInterruptThreshold(), AXP1xxPwron< Regs >::getOffDurationMs(), AXP2101Pwron::getOffDurationMs(), AXP517Pwron::getOffDurationMs(), AXP1xxPwron< Regs >::getOnDurationMs(), AXP2101Pwron::getOnDurationMs(), AXP517Pwron::getOnDurationMs(), GaugeAXP2602::getOperatingMode(), GaugeAXP2602::getOverTemperatureThreshold(), SensorLTR553::getPartID(), AXP2101Power::getPowerOffStatus(), AXP2101Power::getPowerOnStatus(), SY6970Charger::getPreChargeCurrent(), BQ25896Charger::getPreChargeCurrent(), AXP2101Charger::getPreChargeCurrent(), AXP202ChargerEx::getPrechargeTimeout(), SensorPawA350::getProductID(), AXP2101Power::getPwrOkDelay(), HapticDriver_DRV2605::getRealtimeValue(), SensorPawA350::getRest1DownshiftTime(), SensorPawA350::getRest2DownshiftTime(), SensorPawA350::getRest2Period(), SensorPawA350::getRest3Period(), SensorLTR553::getRevisionID(), SensorPawA350::getRevisionID(), SensorPawA350::getRunDownshiftTime(), SensorPawA350::getShutterMax(), PmicAXP192::getStatus(), PmicAXP202::getStatus(), PmicAXP2101::getStatus(), AXP1xxCharger< Regs >::getStatus(), AXP2101Charger::getStatus(), AXP2101Power::getSysPowerDownVoltage(), SensorQMI8658::getTapStatus(), SY6970Charger::getTerminationCurrent(), BQ25896Charger::getTerminationCurrent(), AXP1xxCharger< Regs >::getTerminationCurrent(), AXP2101Charger::getTerminationCurrent(), AXP2101Charger::getThermalRegulationThreshold(), TouchDrvFT6X36::getThreshold(), AXP1xxTimer< Regs >::getTimer(), TouchDrvFT6X36::getTouchPoints(), HapticDriver_DRV2605::getVbat(), TouchDrvFT6X36::getVendorID(), AXP192Channel::getVoltage(), AXP202Channel::getVoltage(), AXP2101Channel::getVoltage(), SY6970Power::getWatchdogTimeout(), BQ25896Power::getWatchdogTimeout(), AXP2101Watchdog::getWatchdogTimeout(), AXP2101Charger::getWorkHighTempFaultThreshold(), AXP2101Charger::getWorkLowTempFaultThreshold(), SensorQMI8658::hardwareSelfTest(), IoExpanderXL9555::initImpl(), SY6970Power::isBoostEnabled(), BQ25896Power::isBoostEnabled(), AXP2101Charger::isChargeTerminationEnabled(), SensorPCF8563::isCountdownTimerEnable(), SensorQMI8658::isDataReady(), AXP517Bc12::isDetecting(), HapticDriver_DRV2605::isDone(), AXP192Channel::isEnabled(), AXP202Channel::isEnabled(), BQ25896Core::isIindpmActive(), BQ25896Core::isInputCurrentOptimizerOptimized(), AXP517Core::isModuleEnabled(), HapticDriver_DRV2605::isPlaying(), SY6970Core::isPowerGood(), BQ25896Core::isPowerGood(), SY6970Power::isShipModeEnabled(), BQ25896Power::isShipModeEnabled(), SY6970Core::isVbusPresent(), BQ25896Core::isVbusPresent(), BQ25896Core::isVindpmActive(), BQ25896Core::isVsysInRegulation(), SY6970Power::isWatchdogEnabled(), BQ25896Power::isWatchdogEnabled(), SY6970Adc::read(), BQ25896Adc::read(), AXP2101Adc::read(), AXP202Gpio::read(), axp1xx::AdcTraitsBase< AXP192Core >::readChannel(), axp1xx::AdcTraitsBase< AXP202Core >::readChannel(), SensorQMC5883L::readData(), SensorQMC6309::readData(), SensorQSTMagnetic::readData(), AXP517Gpio::readRaw(), AXP517Bc12::readResult(), AXP2101Irq::readStatus(), AXP517Irq::readStatus(), GaugeAXP2602::refresh(), SensorQMI8658::reset(), SensorQMC6309::reset(), SensorQMC6309::selfTest(), SensorQMI8658::selfTestAccel(), SensorQMI8658::selfTestGyro(), HapticDriver_DRV2605::setAutoBrake(), AXP517Power::setBoostVoltage(), AXP2101Charger::setButtonBatteryChargeVoltage(), AXP2101Charger::setChargeDoneSafetyTimer(), AXP2101Charger::setChargeVoltage(), AXP517Charger::setChargeVoltage(), SensorPCF85063::setClockOutput(), SensorPCF8563::setCountdownTimer(), GaugeAXP2602::setCurrentSenseResistor(), AXP2101Power::setDieTempLevel1Threshold(), AXP192Gpio::setDirection(), AXP202Gpio::setDirection(), AXP1xxCharger< Regs >::setFastChargeCurrent(), AXP2101Charger::setFastChargeCurrent(), AXP192Gpio::setFunction(), AXP2101Charger::setJeitaCoolThreshold(), AXP2101Charger::setJeitaCoolVoltageDrop(), AXP2101Charger::setJeitaWarmThreshold(), AXP2101Charger::setJeitaWarmVoltageDrop(), SensorPawA350::setLedDriveCurrent(), SensorPawA350::setLedOn(), AXP2101Power::setLowBatShutdownThreshold(), GaugeAXP2602::setLowBatterySOCThreshold(), AXP2101Power::setLowBatWarnThreshold(), SensorPawA350::setMotionInterruptThreshold(), AXP2101Charger::setPreChargeCurrent(), AXP2101Charger::setPreChargeSafetyTimer(), AXP2101Power::setPwrOkDelay(), HapticDriver_DRV2605::setRtpOverdrive(), AXP2101Power::setSysPowerDownVoltage(), AXP2101Charger::setTerminationCurrent(), AXP2101Charger::setThermalRegulationThreshold(), AXP517Bc12::triggerDetect(), AXP202Gpio::write(), and SensorQMI8658::writeCommand().
|
inline |
Definition at line 46 of file SensorCommWrapper.hpp.
References buf, SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), SensorCommBase::readRegister(), and SENSOR_ERR_NOT_INITIALIZED.
Referenced by SensorQMI8658::calibrate(), AXP517Irq::disable(), SensorCM32181::disableINT(), SensorQMI8658::dumpRegisters(), AXP517Irq::enable(), SensorCM32181::enableINT(), SensorPCF85063::getAlarm(), SensorPCF8563::getAlarm(), AXP202Adc::getBatteryPower(), SensorCM32181::getChipID(), SensorPCF85063::getDateTime(), SensorPCF8563::getDateTime(), SensorCM32181::getIrqStatus(), TouchDrvFT6X36::getLibraryVersion(), SensorLTR553::getLightSensor(), GaugeBQ27220::getOperationConfig(), SensorLTR553::getProximity(), SensorCM32181::getRaw(), AXP517Charger::getStatus(), SensorQMI8658::getStepCount(), SensorQMI8658::getTemperature(), SensorQMC5883L::getTemperature(), SensorQMI8658::getTimestamp(), TouchDrvCST226::getTouchPoints(), TouchDrvCST816::getTouchPoints(), TouchDrvFT6X36::getTouchPoints(), SensorQMI8658::hardwareSelfTest(), IoExpanderPCA9570::initImpl(), SensorQMI8658::initImpl(), SensorCM32181::powerDown(), SensorCM32181::powerOn(), SensorCM32181::powerSave(), AXP2101Adc::read(), AXP517Adc::read(), SensorQMI8658::readAccelRaw(), SensorQMC5883L::readData(), SensorQMC6309::readData(), SensorQSTMagnetic::readData(), SensorQMI8658::readFromFifo(), SensorQMI8658::readGyro(), SensorQMI8658::readGyroRaw(), AXP517Irq::readStatus(), GaugeBQ27220::refresh(), SensorQMI8658::selfTestAccel(), SensorQMI8658::selfTestGyro(), SensorCM32181::setSampling(), and SensorQMI8658::update().
|
inline |
Definition at line 114 of file SensorCommWrapper.hpp.
References SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), I2CParam::I2C_SET_FLAG, and SensorCommBase::setParams().
|
inline |
Definition at line 107 of file SensorCommWrapper.hpp.
References SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), I2CParam::I2C_SET_ADDR, and SensorCommBase::setParams().
Referenced by IoExpanderXL9555::initImpl().
|
inline |
Definition at line 83 of file SensorCommWrapper.hpp.
References SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), and SensorCommBase::setRegisterBit().
Referenced by AXP202Coulomb::clear(), AXP1xxTimer< Regs >::clearTimeout(), GaugeAXP2602::compareGaugeData(), AXP2101Power::compareGaugeData(), SensorQMI8658::configAccel(), SensorQMI8658::configGyro(), IoExpanderXL9555::digitalWriteImpl(), AXP202Coulomb::enable(), AXP192Channel::enable(), AXP202Channel::enable(), AXP2101Channel::enable(), SensorQMI8658::enableAccel(), SensorPCF85063::enableAlarm(), SensorPCF8563::enableAlarm(), AXP517Bc12::enableAutoDetect(), AXP202ChargerEx::enableBackupCharger(), AXP2101Charger::enableBatteryDetection(), AXP2101Charger::enableButtonBatteryCharge(), AXP1xxCharger< Regs >::enableCharging(), SensorPCF8563::enableCountdownTimer(), AXP2101Power::enableDieTempDetection(), AXP2101Power::enableFastPowerOn(), AXP2101Power::enableFastWakeup(), SensorQMI8658::enableGyro(), AXP2101Power::enableInternalDischarge(), SensorQMI8658::enableInterrupt(), AXP2101Charger::enableJeita(), SensorLTR553::enableLightSensor(), AXP202PowerEx::enableLongPressShutdown(), AXP2101Power::enableLongPressShutdown(), AXP2101Core::enableModule(), AXP517Core::enableModule(), SensorQMI8658::enableMotionDetect(), AXP202PowerEx::enableOverTemperatureShutdown(), AXP2101Power::enableOverTempShutdown(), SensorQMI8658::enablePedometer(), AXP2101Power::enablePowerOffDelay(), AXP2101Power::enablePowerSequence(), SensorLTR553::enablePsIndicator(), AXP2101Power::enablePwrOk(), AXP1xxPower< Regs >::enableShipMode(), AXP2101Power::enableShipMode(), AXP517Power::enableShipMode(), AXP2101Power::enableSleep(), PmicAXP202::enableSleep(), SensorQMI8658::enableSyncMode(), SensorQMI8658::enableTap(), AXP202PowerEx::enableVBUSDetection(), AXP2101Power::enableWakeup(), GaugeAXP2602::enableWDT(), AXP202Coulomb::pause(), IoExpanderXL9555::pinModeImpl(), SY6970Core::reset(), BQ25896Core::reset(), PmicAXP192::reset(), SensorLTR553::reset(), GaugeAXP2602::reset(), SensorQMI8658::reset(), AXP2101Power::resetSoC(), AXP2101Watchdog::resetWatchdog(), SensorQSTMagnetic::selfTest(), SensorQMI8658::selfTestGyro(), GaugeAXP2602::setBatteryDetection(), GaugeAXP2602::setCurrentMeasurement(), AXP202PowerEx::setDCDC2PWMMode(), AXP202PowerEx::setDCDC3PWMMode(), AXP2101Power::setDCDCForceCCM(), AXP2101Power::setDCDCForcePWM(), AXP2101Power::setDCLowVoltageProtection(), AXP2101Power::setDCOverVoltageProtection(), AXP2101Power::setDVMRampSlow(), AXP2101Power::setFrequencySpreadEnable(), AXP2101Power::setFrequencySpreadRange(), SensorLTR553::setIRQLevel(), AXP2101Charger::setJeitaCoolCurrentReduction(), AXP2101Charger::setJeitaWarmCurrentReduction(), AXP202PowerEx::setLDO3Mode(), AXP2101Power::setLongPressAction(), AXP1xxLed< Regs >::setManualState(), AXP1xxLed< Regs >::setMode(), AXP517Led::setMode(), SensorQMI8658::setOperationMode(), AXP192Gpio::setPull(), GaugeAXP2602::setThermalDieMeasurement(), PmicAXP192::shutdown(), PmicAXP202::shutdown(), GaugeAXP2602::sleep(), AXP2101Power::softShutdown(), SensorPCF85063::stop(), AXP192Gpio::write(), GaugeAXP2602::writeGaugeData(), and AXP2101Power::writeGaugeData().
|
inline |
Definition at line 101 of file SensorCommWrapper.hpp.
References SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), SENSOR_ERR_NOT_INITIALIZED, and SensorCommBase::updateBits().
Referenced by SensorQMI8658::configAccel(), SensorQMI8658::configGyro(), SensorQMI8658::configWakeOnMotionAdvanced(), SensorLTR553::disableIRQ(), SensorLTR553::disableProximity(), SY6970Power::enableBoost(), BQ25896Power::enableBoost(), AXP517Power::enableBoost(), SY6970Charger::enableCharging(), BQ25896Charger::enableCharging(), AXP517Charger::enableCharging(), SensorLTR553::enableIRQ(), SensorLTR553::enableProximity(), AXP517Power::enableRBFET(), SY6970Power::enableShipMode(), BQ25896Power::enableShipMode(), SY6970Power::enableWatchdog(), BQ25896Power::enableWatchdog(), HapticDriver_AW86224::playRtp(), SY6970Power::resetWatchdog(), BQ25896Power::resetWatchdog(), SensorQMI8658::selfTestAccel(), SensorQMI8658::setAccelFullScaleRange(), SensorQMI8658::setAccelOutputDataRate(), HapticDriver_DRV2605::setActuatorType(), AXP202Adc::setADCSampleRate(), AXP202PowerEx::setAPSWarningLevel1(), AXP202PowerEx::setAPSWarningLevel2(), AXP202ChargerEx::setBackupChargerCurrent(), AXP202ChargerEx::setBackupChargerVoltage(), SY6970Power::setBoostVoltage(), BQ25896Power::setBoostVoltage(), AXP517Power::setBoostVoltage(), SY6970Charger::setChargeVoltage(), BQ25896Charger::setChargeVoltage(), AXP1xxCharger< Regs >::setChargeVoltage(), AXP202ChargerEx::setConstantCurrentTimeout(), SY6970Adc::setContinuousMode(), BQ25896Adc::setContinuousMode(), AXP2101Power::setDCDCUVPDebounce(), AXP192Gpio::setDirection(), AXP202Gpio::setDirection(), AXP517Gpio::setDirection(), SensorQSTMagnetic::setDownsamplingRate(), AXP517Gpio::setDrive(), SY6970Charger::setFastChargeCurrent(), BQ25896Charger::setFastChargeCurrent(), AXP2101Power::setFastPowerOnSequence(), SensorQMC5883L::setFullScaleRange(), SensorQMC6309::setFullScaleRange(), SensorQSTMagnetic::setFullScaleRange(), AXP192Gpio::setFunction(), AXP202Gpio::setFunction(), SensorQMI8658::setGyroFullScaleRange(), SensorQMI8658::setGyroOutputDataRate(), SY6970Power::setInputCurrentLimit(), BQ25896Power::setInputCurrentLimit(), AXP1xxPower< Regs >::setInputCurrentLimit(), AXP2101Power::setInputCurrentLimit(), AXP517Power::setInputCurrentLimit(), SY6970Power::setInputVoltageLimit(), BQ25896Power::setInputVoltageLimit(), AXP2101Power::setInputVoltageLimit(), AXP517Power::setInputVoltageLimit(), AXP1xxPwron< Regs >::setIrqDurationMs(), SensorLTR553::setLightSensorGain(), SensorLTR553::setLightSensorPersists(), SensorQMC6309::setLowPassFilter(), AXP1xxLed< Regs >::setManualState(), AXP2101Led::setManualState(), AXP517Led::setManualState(), SY6970Power::setMinimumSystemVoltage(), BQ25896Power::setMinimumSystemVoltage(), AXP1xxPower< Regs >::setMinimumSystemVoltage(), AXP2101Power::setMinimumSystemVoltage(), AXP517Power::setMinimumSystemVoltage(), SY6970Led::setMode(), BQ25896Led::setMode(), AXP1xxLed< Regs >::setMode(), AXP2101Led::setMode(), AXP517Led::setMode(), AXP1xxPwron< Regs >::setOffDurationMs(), AXP1xxPwron< Regs >::setOnDurationMs(), SensorQMC5883L::setOperationMode(), SensorQMC6309::setOperationMode(), SensorQSTMagnetic::setOperationMode(), SensorQMC5883L::setOutputDataRate(), SensorQMC6309::setOutputDataRate(), SensorQSTMagnetic::setOutputDataRate(), AXP517Gpio::setOutputSource(), AXP517Led::setOutputType(), SensorQMC5883L::setOversamplingRate(), SensorQMC6309::setOversamplingRate(), SensorQSTMagnetic::setOversamplingRate(), SY6970Charger::setPreChargeCurrent(), BQ25896Charger::setPreChargeCurrent(), AXP202ChargerEx::setPrechargeTimeout(), SensorLTR553::setProximityPersists(), SensorLTR553::setProximityRate(), SensorLTR553::setPsLedCurrent(), SensorLTR553::setPsLedDutyCycle(), SensorLTR553::setPsLedPulsePeriod(), SensorLTR553::setPsLedPulses(), SensorQMC6309::setSetResetMode(), SY6970Charger::setTerminationCurrent(), BQ25896Charger::setTerminationCurrent(), AXP1xxCharger< Regs >::setTerminationCurrent(), HapticDriver_AW86224::setTrimLRA(), AXP192Channel::setVoltage(), AXP202Channel::setVoltage(), AXP2101Channel::setVoltage(), AXP2101Core::setWatchdogConfig(), SY6970Power::setWatchdogTimeout(), BQ25896Power::setWatchdogTimeout(), AXP2101Watchdog::setWatchdogTimeout(), HapticDriver_AW86224::setWaveLoop(), SY6970Adc::startConversion(), BQ25896Adc::startConversion(), and AXP517Gpio::write().
|
inline |
Definition at line 70 of file SensorCommWrapper.hpp.
References buf, SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), SENSOR_ERR_NOT_INITIALIZED, and SensorCommBase::writeBuffer().
Referenced by TouchDrvCST92xx::getTouchPoints(), TouchDrvCHSC5816::sleep(), TouchDrvCST92xx::sleep(), and TouchDrvGT9895::sleep().
|
inline |
Definition at line 58 of file SensorCommWrapper.hpp.
References SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), SENSOR_ERR_NOT_INITIALIZED, and SensorCommBase::writeRegister().
Referenced by SensorQMI8658::applyMotionConfig(), SensorPCF8563::clearCountdownTimer(), GaugeAXP2602::clearIRQStatus(), AXP2101Irq::clearStatus(), AXP517Irq::clearStatus(), SensorQMI8658::configAccel(), SensorQMI8658::configFifo(), SensorQMI8658::configGyro(), SensorQMI8658::configPedometer(), IoExpanderXL9555::configPinsImpl(), SensorQMI8658::configTap(), SensorQMI8658::configureFifo(), SensorQMI8658::configWakeOnMotionAdvanced(), IoExpanderXL9555::digitalWritePort(), AXP2101Irq::disable(), GaugeAXP2602::disableAllIRQ(), TouchDrvCST816::disableAutoSleep(), AXP2101Adc::disableChannels(), AXP517Adc::disableChannels(), AXP2101Charger::disableChargeTermination(), SensorQMI8658::disableLockingMechanism(), AXP2101Irq::enable(), AXP192Channel::enable(), AXP202Channel::enable(), TouchDrvCST816::enableAutoSleep(), AXP2101Adc::enableChannels(), AXP517Adc::enableChannels(), AXP2101Charger::enableChargeTermination(), GaugeAXP2602::enableIRQ(), SensorQMI8658::enableLockingMechanism(), GaugeBQ27220::getHardwareVersion(), SensorPawA350::getMotionData(), GaugeBQ27220::getOperationConfig(), TouchDrvCST226::getTouchPoints(), SensorQMI8658::hardwareSelfTest(), SensorQMI8658::initImpl(), TouchDrvFT6X36::interruptPolling(), TouchDrvFT6X36::interruptTrigger(), HapticDriver_AW86224::playRtp(), AXP517Adc::read(), SensorQMI8658::readFromFifo(), AXP2101Irq::readStatus(), SensorQMI8658::reset(), SensorQMC5883L::reset(), SensorQMC6309::reset(), SensorQSTMagnetic::reset(), SensorPCF85063::reset(), TouchDrvCST226::reset(), HapticDriver_AW86224::run(), HapticDriver_DRV2605::run(), HapticDriver_DRV2605::selectLibrary(), SensorQMC6309::selfTest(), SensorQMI8658::selfTestAccel(), SensorQMI8658::selfTestGyro(), HapticDriver_DRV2605::setActuatorType(), AXP202Adc::setADCInputRange(), AXP202Adc::setADCIrqFallingThreshold(), AXP202Adc::setADCIrqRisingThreshold(), HapticDriver_DRV2605::setAutoBrake(), HapticDriver_DRV2605::setBrakeTime(), AXP2101Charger::setButtonBatteryChargeVoltage(), AXP2101Charger::setChargeDoneSafetyTimer(), AXP2101Charger::setChargeHighTempFaultThreshold(), AXP202ChargerEx::setChargeHighTempThreshold(), AXP2101Charger::setChargeLowTempFaultThreshold(), AXP202ChargerEx::setChargeLowTempThreshold(), AXP2101Charger::setChargeVoltage(), AXP517Charger::setChargeVoltage(), SensorPCF8563::setClockOutput(), SensorPCF85063::setClockOutput(), SensorPCF8563::setCountdownTimer(), SensorPawA350::setCpi(), HapticDriver_DRV2605::setCtrl4(), GaugeAXP2602::setCurrentSenseResistor(), AXP202PowerEx::setDCDCFrequency(), TouchDrvFT6X36::setDeviceMode(), AXP2101Power::setDieTempLevel1Threshold(), AXP192Gpio::setDirection(), AXP202Gpio::setDirection(), AXP202ChargerEx::setDischargeHighTempThreshold(), AXP202ChargerEx::setDischargeLowTempThreshold(), AXP1xxCharger< Regs >::setFastChargeCurrent(), AXP2101Charger::setFastChargeCurrent(), AXP192Gpio::setFunction(), HapticDriver_AW86224::setGain(), AXP2101Charger::setHighTempHysteresis(), AXP2101Charger::setJeitaCoolThreshold(), AXP2101Charger::setJeitaCoolVoltageDrop(), AXP2101Charger::setJeitaWarmThreshold(), AXP2101Charger::setJeitaWarmVoltageDrop(), SensorPawA350::setLedDriveCurrent(), SensorPawA350::setLedOn(), SensorLTR553::setLightSensorRate(), AXP2101Power::setLowBatShutdownThreshold(), GaugeAXP2602::setLowBatterySOCThreshold(), AXP2101Power::setLowBatWarnThreshold(), AXP2101Charger::setLowTempHysteresis(), HapticDriver_DRV2605::setMode(), TouchDrvFT6X36::setMonitorTime(), SensorPawA350::setMotionInterruptThreshold(), GaugeAXP2602::setOperatingMode(), HapticDriver_DRV2605::setOverdriveClamp(), HapticDriver_DRV2605::setOverdriveTime(), GaugeAXP2602::setOverTemperatureThreshold(), TouchDrvFT6X36::setPowerMode(), AXP2101Charger::setPreChargeCurrent(), AXP2101Charger::setPreChargeSafetyTimer(), SensorLTR553::setProximityThreshold(), AXP192Gpio::setPwmDutyCycle(), AXP192Gpio::setPwmFrequency(), AXP2101Power::setPwrOkDelay(), HapticDriver_DRV2605::setRatedVoltage(), HapticDriver_DRV2605::setRealtimeValue(), SensorPawA350::setRest1DownshiftTime(), SensorPawA350::setRest1Period(), SensorPawA350::setRest2DownshiftTime(), SensorPawA350::setRest2Period(), SensorPawA350::setRest3Period(), HapticDriver_DRV2605::setRtpOverdrive(), SensorPawA350::setRunDownshiftTime(), SensorPawA350::setShutterMax(), AXP2101Power::setSysPowerDownVoltage(), AXP2101Charger::setTerminationCurrent(), AXP2101Charger::setThermalRegulationThreshold(), TouchDrvFT6X36::setThreshold(), AXP1xxTimer< Regs >::setTimer(), HapticDriver_DRV2605::setWaveform(), HapticDriver_AW86224::setWaveSeq(), AXP2101Charger::setWorkHighTempFaultThreshold(), AXP2101Charger::setWorkLowTempFaultThreshold(), TouchDrvCST226::sleep(), TouchDrvCST816::sleep(), TouchDrvFT6X36::sleep(), HapticDriver_AW86224::softReset(), SensorPawA350::softReset(), HapticDriver_DRV2605::stop(), AXP517Bc12::triggerDetect(), AXP202Gpio::write(), SensorQMI8658::writeCommand(), GaugeAXP2602::writeGaugeData(), and AXP2101Power::writeGaugeData().
|
inline |
Definition at line 64 of file SensorCommWrapper.hpp.
References buf, SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), SENSOR_ERR_NOT_INITIALIZED, and SensorCommBase::writeRegister().
Referenced by AXP517Irq::clearStatus(), SensorQMI8658::configPedometer(), IoExpanderPCA9570::digitalWriteImpl(), IoExpanderPCA9570::digitalWritePort(), AXP517Irq::disable(), SensorCM32181::disableINT(), AXP517Irq::enable(), SensorCM32181::enableINT(), HapticDriver_AW86224::loadRamData(), HapticDriver_AW86224::playRtp(), SensorCM32181::powerDown(), SensorCM32181::powerOn(), SensorCM32181::powerSave(), SensorQMI8658::setAccelOffset(), SensorPCF8563::setAlarm(), SensorPCF85063::setAlarm(), SensorPCF85063::setDateTime(), SensorPCF8563::setDateTime(), SensorQMI8658::setGyroOffset(), SensorCM32181::setIntThreshold(), SensorLTR553::setLightSensorThreshold(), HapticDriver_AW86224::setRtpData(), SensorCM32181::setSampling(), and SensorQMI8658::writeCalibration().
|
inline |
Definition at line 76 of file SensorCommWrapper.hpp.
References SensorCommInterface::ensureValid(), SensorCommInterface::getComm(), SENSOR_ERR_NOT_INITIALIZED, and SensorCommBase::writeThenRead().
Referenced by TouchDrvCHSC5816::getTouchPoints(), TouchDrvCST92xx::getTouchPoints(), TouchDrvGT911::getTouchPoints(), TouchDrvGT9895::getTouchPoints(), TouchDrvGT911::loadConfig(), and TouchDrvGT911::reloadConfig().