Stepan Oslejsek / Mbed 2 deprecated OLEDMag

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

MMC5883L Class Reference

The MMC5883L 3-Axis Digital Compass IC. More...

#include <MMC5883L.h>

Public Member Functions

 MMC5883L (PinName sda, PinName scl)
 Constructor.
 MMC5883L (I2C &i2c)
 Constructor that accepts external i2c interface object.

Static Public Attributes

static const int I2C_ADDRESS = 0x60
 The I2C address that can be passed directly to i2c object (it's already shifted 1 bit left).

Detailed Description

The MMC5883L 3-Axis Digital Compass IC.

Definition at line 77 of file MMC5883L.h.


Constructor & Destructor Documentation

MMC5883L ( PinName  sda,
PinName  scl 
)

Constructor.

Calls init function

Parameters:
sda- mbed pin to use for the SDA I2C line.
scl- mbed pin to use for the SCL I2C line.

Definition at line 4 of file MMC5883L.cpp.

MMC5883L ( I2C &  i2c )

Constructor that accepts external i2c interface object.

Calls init function

Parameters:
i2cThe I2C interface object to use.

Definition at line 104 of file MMC5883L.h.


Field Documentation

const int I2C_ADDRESS = 0x60 [static]

The I2C address that can be passed directly to i2c object (it's already shifted 1 bit left).

Definition at line 85 of file MMC5883L.h.