Hello,
nRF5340, NCS1.9.99, VSCode
Hello,
nRF5340, NCS1.9.99, VSCode
Hello,
You should be able to use the Power Management API for that.
Add add CONFIG_PM_DEVICE=y to your prj.conf and then you can use the following function to suspend and resume the devices.
pm_device_action_run(i2c_dev, PM_DEVICE_ACTION_SUSPEND); pm_device_action_run(i2c_dev, PM_DEVICE_ACTION_RESUME);
You can read more about it here
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/zephyr/services/pm/device_runtime.html
And here is the API description:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/zephyr/services/pm/api/index.html#c.pm_device_action_run
Best regards,
Michal
Hello,
You should be able to use the Power Management API for that.
Add add CONFIG_PM_DEVICE=y to your prj.conf and then you can use the following function to suspend and resume the devices.
pm_device_action_run(i2c_dev, PM_DEVICE_ACTION_SUSPEND); pm_device_action_run(i2c_dev, PM_DEVICE_ACTION_RESUME);
You can read more about it here
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/zephyr/services/pm/device_runtime.html
And here is the API description:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/zephyr/services/pm/api/index.html#c.pm_device_action_run
Best regards,
Michal