Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Bosch BMM350 3-Axis Magnetometer. More...

Files

file  bmm350.h
 Header file for extended sensor API of BMM350 sensor.
 

Functions

int bmm350_magnetic_reset (const struct device *dev)
 Performs a magnetic reset.
 

Detailed Description

Bosch BMM350 3-Axis Magnetometer.

Function Documentation

◆ bmm350_magnetic_reset()

int bmm350_magnetic_reset ( const struct device dev)

#include <include/zephyr/drivers/sensor/bmm350.h>

Performs a magnetic reset.

The BMM350 has measures to recover from excessively strong magnetic fields. A magnetic reset is trigged after reset by the device itself, but if excessive field exposure has occurred in suspend mode, the sensor can not detect that event. If a large offset or sensitvity drift indicates that such an event has occurred, then this function can be called by the application.

"Enhanced" Magnetic Reset supported by later BMM350 Revisions is not yet implemented.

Parameters
devPointer to the sensor device
Returns
0 if successful, negative errno code if failure.