PX4 Firmware
PX4 Autopilot Software http://px4.io
hmc5883_i2c.cpp File Reference

I2C interface for HMC5883 / HMC 5983. More...

#include <px4_platform_common/px4_config.h>
#include <drivers/device/i2c.h>
#include <drivers/drv_mag.h>
#include <drivers/drv_device.h>
#include "hmc5883.h"
Include dependency graph for hmc5883_i2c.cpp:

Go to the source code of this file.

Classes

class  HMC5883_I2C
 

Macros

#define HMC5883L_ADDRESS   0x1E
 

Functions

device::DeviceHMC5883_I2C_interface (int bus)
 

Detailed Description

I2C interface for HMC5883 / HMC 5983.

Definition in file hmc5883_i2c.cpp.

Macro Definition Documentation

◆ HMC5883L_ADDRESS

#define HMC5883L_ADDRESS   0x1E

Definition at line 47 of file hmc5883_i2c.cpp.

Function Documentation

◆ HMC5883_I2C_interface()

device::Device* HMC5883_I2C_interface ( int  bus)

Definition at line 68 of file hmc5883_i2c.cpp.

References HMC5883_I2C::HMC5883_I2C().

Here is the call graph for this function: