|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Shared defines for the hmc5883 driver. More...
#include <drivers/device/Device.hpp>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::Device * | HMC5883_SPI_interface (int bus) |
| device::Device * | HMC5883_I2C_interface (int bus) |
| #define ADDR_ID_A 0x0a |
Definition at line 44 of file hmc5883.h.
Referenced by HMC5883_I2C::probe(), and QMC5883_I2C::probe().
| #define ADDR_ID_B 0x0b |
Definition at line 45 of file hmc5883.h.
Referenced by HMC5883_I2C::probe(), and QMC5883_I2C::probe().
| #define ADDR_ID_C 0x0c |
Definition at line 46 of file hmc5883.h.
Referenced by HMC5883_I2C::probe().
| #define ID_A_WHO_AM_I 'H' |
Definition at line 48 of file hmc5883.h.
Referenced by HMC5883_I2C::probe(), and QMC5883_I2C::probe().
| #define ID_B_WHO_AM_I '4' |
Definition at line 49 of file hmc5883.h.
Referenced by HMC5883_I2C::probe(), and QMC5883_I2C::probe().
| #define ID_C_WHO_AM_I '3' |
Definition at line 50 of file hmc5883.h.
Referenced by HMC5883_I2C::probe().
| typedef device::Device*(* HMC5883_constructor) (int) |
| device::Device * HMC5883_I2C_interface | ( | int | bus | ) |
Definition at line 68 of file hmc5883_i2c.cpp.
References HMC5883_I2C::HMC5883_I2C().
| device::Device* HMC5883_SPI_interface | ( | int | bus | ) |