public interface MagnetometerBmm150 extends MetaWearBoard.Module, Configurable<MagnetometerBmm150.ConfigEditor>
Modifier and Type | Interface and Description |
---|---|
static interface |
MagnetometerBmm150.ConfigEditor
Sensor configuration editor, only for advanced users.
|
static interface |
MagnetometerBmm150.MagneticFieldDataProducer
Reports measured magnetic field strength, in units of Telsa (T) from the magnetometer.
|
static class |
MagnetometerBmm150.OutputDataRate
Supported output data rates for the BMM150 sensor
|
static class |
MagnetometerBmm150.Preset
Recommended configurations for the magnetometer as outlined in the specs sheet.
|
Modifier and Type | Method and Description |
---|---|
MagnetometerBmm150.MagneticFieldDataProducer |
magneticField()
Get an implementation of the MagneticFieldDataProducer interface
|
AsyncDataProducer |
packedMagneticField()
Variant of B field data that packs multiple data samples into 1 BLE packet to increase the
data throughput.
|
void |
start()
Switch the magnetometer into normal mode
|
void |
stop()
Switch the magnetometer into sleep mode
|
void |
suspend()
Switch the magnetometer into suspend mode.
|
void |
usePreset(MagnetometerBmm150.Preset preset)
Sets the power mode to one of the preset configurations
|
configure
void usePreset(MagnetometerBmm150.Preset preset)
preset
- Preset to useMagnetometerBmm150.MagneticFieldDataProducer magneticField()
AsyncDataProducer packedMagneticField()
void start()
void stop()
void suspend()