PebbleOS v4.47.0
Loading...
Searching...
No Matches
Simulator

Simulated magnetometer, measuring the field pbl_mag_sim_set() sets. More...

Macros

#define SIM_MAG   (&pbl_mag_sim)
 The simulated magnetometer.
 

Functions

void pbl_mag_sim_set (const struct pbl_mag *mag, const MagData *field)
 Set the magnetic field the magnetometer measures.
 

Detailed Description

Simulated magnetometer, measuring the field pbl_mag_sim_set() sets.

While sampling, the field is reported once per sampling interval. It is zero until set.

Macro Definition Documentation

◆ SIM_MAG

#define SIM_MAG   (&pbl_mag_sim)

The simulated magnetometer.

Function Documentation

◆ pbl_mag_sim_set()

void pbl_mag_sim_set ( const struct pbl_mag *  mag,
const MagData *  field 
)

Set the magnetic field the magnetometer measures.

Parameters
magDevice.
fieldField, in milligauss, in the watch frame.