modm API documentation
modm::Mmc5603< I2cMaster >::Data Struct Reference

Public Member Functions

int8_t getTemperature () const
 returns the temperature in Celcius
 
int32_t operator[] (uint8_t index) const
 
int32_t getX () const
 
int32_t getY () const
 
int32_t getZ () const
 
float getXf () const
 
float getYf () const
 
float getZf () const
 

Protected Member Functions

int32_t swapData (uint8_t index) const
 
float swapDataFloat (uint8_t index) const
 

Protected Attributes

uint8_t data [10]
 

Friends

template<class I2cMaster >
class Mmc5603
 

Member Function Documentation

template<class I2cMaster >
int32_t modm::Mmc5603< I2cMaster >::Data::getX ( ) const
inline

returns the magnetic field as signed 32-bit value with 16384 counts/Gauss

template<class I2cMaster >
float modm::Mmc5603< I2cMaster >::Data::getXf ( ) const
inline

returns the magnetic field in Gauss as floating point


The documentation for this struct was generated from the following file: