upm  0.1.8
Sensor/Actuator repository for libmraa (v0.4.5)
 All Data Structures Files Functions Variables Macros Pages
Public Member Functions
Hmc5883l Class Reference

C++ API for HMC5883l (3-axis digital compass) More...

Detailed Description

This file defines the HMC5883l C++ interface for libhmc5883l

Public Member Functions

 Hmc5883l (int bus)
 
float direction ()
 
float heading ()
 
int * coordinates ()
 
int update ()
 

Constructor & Destructor Documentation

Hmc5883l ( int  bus)

Creates a Hmc5883l object

Parameters
busnumber of used i2c bus

Here is the call graph for this function:

Member Function Documentation

int * coordinates ( void  )

Returns a pointer to an int[3] that contains the coordinates as ints

Returns
*int to an int[3]
int update ( void  )

Updates the values by reading from i2c

Returns
0 for success

Here is the caller graph for this function:


The documentation for this class was generated from the following files: