PX4 Firmware
PX4 Autopilot Software http://px4.io
hmc5883.h File Reference

Shared defines for the hmc5883 driver. More...

Include dependency graph for hmc5883.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADDR_ID_A   0x0a
 
#define ADDR_ID_B   0x0b
 
#define ADDR_ID_C   0x0c
 
#define ID_A_WHO_AM_I   'H'
 
#define ID_B_WHO_AM_I   '4'
 
#define ID_C_WHO_AM_I   '3'
 

Typedefs

typedef device::Device *(* HMC5883_constructor) (int)
 

Functions

device::DeviceHMC5883_SPI_interface (int bus)
 
device::DeviceHMC5883_I2C_interface (int bus)
 

Detailed Description

Shared defines for the hmc5883 driver.

Definition in file hmc5883.h.

Macro Definition Documentation

◆ ADDR_ID_A

#define ADDR_ID_A   0x0a

Definition at line 44 of file hmc5883.h.

Referenced by HMC5883_I2C::probe(), and QMC5883_I2C::probe().

◆ ADDR_ID_B

#define ADDR_ID_B   0x0b

Definition at line 45 of file hmc5883.h.

Referenced by HMC5883_I2C::probe(), and QMC5883_I2C::probe().

◆ ADDR_ID_C

#define ADDR_ID_C   0x0c

Definition at line 46 of file hmc5883.h.

Referenced by HMC5883_I2C::probe().

◆ ID_A_WHO_AM_I

#define ID_A_WHO_AM_I   'H'

Definition at line 48 of file hmc5883.h.

Referenced by HMC5883_I2C::probe(), and QMC5883_I2C::probe().

◆ ID_B_WHO_AM_I

#define ID_B_WHO_AM_I   '4'

Definition at line 49 of file hmc5883.h.

Referenced by HMC5883_I2C::probe(), and QMC5883_I2C::probe().

◆ ID_C_WHO_AM_I

#define ID_C_WHO_AM_I   '3'

Definition at line 50 of file hmc5883.h.

Referenced by HMC5883_I2C::probe().

Typedef Documentation

◆ HMC5883_constructor

typedef device::Device*(* HMC5883_constructor) (int)

Definition at line 55 of file hmc5883.h.

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:

◆ HMC5883_SPI_interface()

device::Device* HMC5883_SPI_interface ( int  bus)