Skip to content

Conversation

@kaessert
Copy link
Contributor

@kaessert kaessert commented Dec 7, 2025

Add support for the Zephyr device power management framework to enable runtime power control of the ADXL345 accelerometer.

This implementation adds a pm_device_action callback that handles SUSPEND and RESUME actions. When suspended, the sensor enters standby mode for low power operation. On resume, it returns to measurement mode.

The implementation follows the standard pattern used by other sensor drivers (lis2dh, bme280, vcnl4040) and integrates with the PM_DEVICE_DT_INST_DEFINE macro for automatic PM setup.

Tested on nRF52832 with CONFIG_PM_DEVICE enabled.

Add support for the Zephyr device power management framework to
enable runtime power control of the ADXL345 accelerometer.

This implementation adds a pm_device_action callback that handles
SUSPEND and RESUME actions. When suspended, the sensor enters
standby mode for low power operation. On resume, it returns to
measurement mode.

The implementation follows the standard pattern used by other
sensor drivers (lis2dh, bme280, vcnl4040) and integrates with
the PM_DEVICE_DT_INST_DEFINE macro for automatic PM setup.

Tested on nRF52832 with CONFIG_PM_DEVICE enabled.

Signed-off-by: Tobias Kässer <t.kaesser@gmail.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Sensors Sensors platform: ADI Analog Devices, Inc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants