PebbleOS
Loading...
Searching...
No Matches
Modules | Functions
MMC5603NJ

MEMSIC MMC5603NJ magnetometer driver. More...

Modules

 MMC5603NJ registers
 MMC5603NJ register map, from the MEMSIC datasheet (Rev.
 

Functions

void mag_set_rotated (bool rotated)
 Set whether the watch is mounted rotated 180 degrees.
 

Detailed Description

MEMSIC MMC5603NJ magnetometer driver.

Implements Magnetometer. Samples are reported in milligauss, with the axis mapping of the board's magnetometer configuration.

Function Documentation

◆ mag_set_rotated()

void mag_set_rotated ( bool  rotated)

Set whether the watch is mounted rotated 180 degrees.

When rotated, the X and Y axes of subsequent samples are inverted.

Parameters
rotatedtrue if rotated.