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

Shared defines for the qmc5883 driver. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADDR_ID_A   0x0C
 
#define ADDR_ID_B   0x0D
 
#define ID_A_WHO_AM_I   0x01
 
#define ID_B_WHO_AM_I   0xFF
 

Typedefs

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

Functions

device::DeviceQMC5883_SPI_interface (int bus)
 
device::DeviceQMC5883_I2C_interface (int bus)
 

Detailed Description

Shared defines for the qmc5883 driver.

Definition in file qmc5883.h.

Macro Definition Documentation

◆ ADDR_ID_A

#define ADDR_ID_A   0x0C

Definition at line 42 of file qmc5883.h.

◆ ADDR_ID_B

#define ADDR_ID_B   0x0D

Definition at line 43 of file qmc5883.h.

◆ ID_A_WHO_AM_I

#define ID_A_WHO_AM_I   0x01

Definition at line 45 of file qmc5883.h.

◆ ID_B_WHO_AM_I

#define ID_B_WHO_AM_I   0xFF

Definition at line 46 of file qmc5883.h.

Typedef Documentation

◆ QMC5883_constructor

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

Definition at line 52 of file qmc5883.h.

Function Documentation

◆ QMC5883_I2C_interface()

device::Device * QMC5883_I2C_interface ( int  bus)

Definition at line 83 of file qmc5883_i2c.cpp.

References QMC5883_I2C::QMC5883_I2C().

Here is the call graph for this function:

◆ QMC5883_SPI_interface()

device::Device* QMC5883_SPI_interface ( int  bus)